Skip to content

Commit

Permalink
"Clean" build task
Browse files Browse the repository at this point in the history
  • Loading branch information
71104 committed Jun 26, 2013
1 parent cdac0c3 commit 7905a21
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
20 changes: 19 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

clean: {
dist: [
'bin'
]
},

jshint: {
options: {
camelcase: true,
Expand Down Expand Up @@ -30,7 +37,17 @@ module.exports = function (grunt) {
'src/plugin.js'
]
},

uglify: {
options: {
banner: '/*!\n' +
' * Handlebars.js for jQuery\n' +
' * A templating engine for jQuery based on Handlebars.js\n' +
' * by Alberto La Rocca <[email protected]> (https://github.com/71104)\n' +
' * Released under the MIT license, copyright 2013 Alberto La Rocca\n' +
' * This script includes Handlebars.js, which is not mine. See <http://handlebarsjs.com/>\n' +
' */\n'
},
dist: {
src: [
'src/handlebars-1.0.0.js',
Expand All @@ -41,8 +58,9 @@ module.exports = function (grunt) {
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['jshint', 'uglify']);
grunt.registerTask('default', ['clean', 'jshint', 'uglify']);
};
9 changes: 9 additions & 0 deletions bin/jquery-handlebars-0.1.2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion handlebars.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "handlebars",
"version": "0.1.1",
"version": "0.1.2",
"title": "Handlebars-based templating engine for jQuery",
"author": {
"name": "Alberto La Rocca",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-handlebars",
"version": "0.1.1",
"version": "0.1.2",
"description": "A templating engine for jQuery based on Handlebars.js",
"keywords": [
"template",
Expand All @@ -21,6 +21,7 @@
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-uglify": "~0.2.2"
},
Expand Down

0 comments on commit 7905a21

Please sign in to comment.