Update project config files to work with Grunt 0.4.
This commit is contained in:
parent
d783bdedb9
commit
847b3f3697
2 changed files with 20 additions and 12 deletions
|
@ -1,12 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
// Load grunt tasks automatically
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
test: {
|
||||
files: ['test/**/*.js']
|
||||
},
|
||||
lint: {
|
||||
files: ['grunt.js', 'tasks/**/*.js', 'test/**/*.js']
|
||||
nodeunit: {
|
||||
all: ['test/**/_test.js']
|
||||
},
|
||||
watch: {
|
||||
files: '<config:lint.files>',
|
||||
|
@ -25,16 +27,19 @@ module.exports = function(grunt) {
|
|||
boss: true,
|
||||
eqnull: true,
|
||||
node: true,
|
||||
es5: true
|
||||
},
|
||||
globals: {}
|
||||
all: [
|
||||
'Gruntfile.js',
|
||||
'tasks/{,*/}*.js',
|
||||
'test/{,*/}*.js',
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
// Load local tasks.
|
||||
grunt.loadTasks('tasks');
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask('default', 'lint test');
|
||||
grunt.registerTask('default', [
|
||||
'jshint',
|
||||
'nodeunit:all'
|
||||
]);
|
||||
|
||||
};
|
|
@ -33,7 +33,10 @@
|
|||
"grunt": "~0.3.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.3.9"
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-jshint": "^0.10.0",
|
||||
"grunt-contrib-nodeunit": "^0.4.0",
|
||||
"load-grunt-tasks": "^0.4.0"
|
||||
},
|
||||
"keywords": [
|
||||
"gruntplugin",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue