Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 590ac72

Browse files
committed
update grunt packages, use jit-grunt to build
1 parent 8f6d15c commit 590ac72

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

Gruntfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,15 @@ module.exports = function (grunt) {
211211
});
212212

213213
// These plugins provide necessary tasks.
214-
grunt.loadNpmTasks('grunt-contrib-jshint');
214+
/* grunt.loadNpmTasks('grunt-contrib-jshint');
215215
grunt.loadNpmTasks('grunt-contrib-clean');
216216
grunt.loadNpmTasks('grunt-contrib-copy');
217217
grunt.loadNpmTasks('grunt-contrib-concat');
218218
grunt.loadNpmTasks('grunt-contrib-uglify');
219219
grunt.loadNpmTasks('grunt-contrib-cssmin');
220220
grunt.loadNpmTasks('grunt-contrib-qunit');
221-
grunt.loadNpmTasks('grunt-contrib-watch');
221+
grunt.loadNpmTasks('grunt-contrib-watch'); */
222+
require('jit-grunt')(grunt);
222223

223224
// Default task.
224225
grunt.registerTask('default', ['jshint', 'clean', 'copy', 'concat', 'uglify', 'cssmin', 'qunit']);

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@
5252
"devDependencies": {
5353
"grunt": "~0.4.5",
5454
"grunt-cli": "~0.1.13",
55-
"grunt-contrib-clean": "~0.6.0",
56-
"grunt-contrib-copy": "~0.7.0",
57-
"grunt-contrib-concat": "~0.5.0",
58-
"grunt-contrib-jshint": "~0.10.0",
59-
"grunt-contrib-qunit": "~0.5.2",
60-
"grunt-contrib-uglify": "~0.6.0",
61-
"grunt-contrib-cssmin": "~0.10.0",
62-
"grunt-contrib-watch": "~0.6.1"
55+
"grunt-contrib-clean": "^0.7.0",
56+
"grunt-contrib-concat": "^0.5.1",
57+
"grunt-contrib-copy": "^0.8.2",
58+
"grunt-contrib-cssmin": "^0.14.0",
59+
"grunt-contrib-jshint": "^0.11.3",
60+
"grunt-contrib-qunit": "^0.7.0",
61+
"grunt-contrib-uglify": "^0.11.0",
62+
"grunt-contrib-watch": "^0.6.1",
63+
"jit-grunt": "^0.9.1"
6364
}
64-
}
65+
}

0 commit comments

Comments
 (0)