diff --git a/Gruntfile.js b/Gruntfile.js index 5947b84..8e03d18 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -48,7 +48,18 @@ module.exports = function(grunt) { watch: { files: ['<%= jshint.files %>'], tasks: ['jshint', 'qunit'] - } + }, + 'npm-contributors': { + options: { + commitMessage: 'chore: update contributors' + } + }, + bump: { + options: { + commitMessage: 'chore: release v%VERSION%', + pushTo: 'origin' + } + } }); grunt.loadNpmTasks('grunt-contrib-uglify'); @@ -56,9 +67,14 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-npm'); + grunt.loadNpmTasks('grunt-bump'); grunt.registerTask('test', ['jshint', 'qunit']); grunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']); + grunt.registerTask('release', 'Bump the version and publish to NPM.', function(type) { + grunt.task.run(['npm-contributors', "bump:#{type||'patch'}", 'npm-publish']); + }); }; \ No newline at end of file diff --git a/package.js b/package.js new file mode 100644 index 0000000..51bda7e --- /dev/null +++ b/package.js @@ -0,0 +1,8 @@ +Package.describe({ + summary: "Live Query utilizes the power of jQuery selectors by firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated." +}); + +Package.on_use(function(api, where) { + api.use('jquery', ['client']); + api.add_files('./dist/jquery.livequery.js', ['client']); +}); diff --git a/package.json b/package.json index 4398ff9..4b9dce4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery.livequery", - "version": "1.3.6", + "version": "1.3.7", "description": "Live Query utilizes the power of jQuery selectors by firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.", "main": "Gruntfile.js", "directories": { @@ -11,7 +11,10 @@ "grunt-contrib-uglify": "~0.2.2", "grunt-contrib-jshint": "~0.6.3", "grunt-contrib-qunit": "~0.2.2", - "grunt-contrib-watch": "~0.4.4" + "grunt-contrib-watch": "~0.4.4", + "grunt-npm": "0.0.2", + "grunt-bump": "0.0.13", + "grunt-contrib-concat": "~0.3.0" }, "scripts": { "test": "grunt test" @@ -54,5 +57,16 @@ ], "bugs": { "url": "https://github.com/hazzik/livequery/issues" - } + }, + "contributors": [ + "Alexander I. Zaytsev ", + "Brandon Aaron ", + "Alexander I. Zaytsev ", + "brandonaaron ", + "sergeyt ", + "Alexander Zaytsev ", + "Alexander Zaytsev ", + "Tianon Gravi ", + "Whoahbot " + ] } diff --git a/smart.json b/smart.json new file mode 100644 index 0000000..b835ad4 --- /dev/null +++ b/smart.json @@ -0,0 +1,8 @@ +{ + "name": "livequery", + "description": "Live Query utilizes the power of jQuery selectors by firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.", + "homepage": "https://github.com/sergeyt/livequery", + "author": "Brandon Aaron, Alexander Zaytsev", + "version": "1.3.7", + "git": "https://github.com/sergeyt/livequery.git" +}