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) {
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
|
// Load grunt tasks automatically
|
||||||
|
require('load-grunt-tasks')(grunt);
|
||||||
|
|
||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
test: {
|
nodeunit: {
|
||||||
files: ['test/**/*.js']
|
all: ['test/**/_test.js']
|
||||||
},
|
|
||||||
lint: {
|
|
||||||
files: ['grunt.js', 'tasks/**/*.js', 'test/**/*.js']
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
files: '<config:lint.files>',
|
files: '<config:lint.files>',
|
||||||
|
@ -25,16 +27,19 @@ module.exports = function(grunt) {
|
||||||
boss: true,
|
boss: true,
|
||||||
eqnull: true,
|
eqnull: true,
|
||||||
node: true,
|
node: true,
|
||||||
es5: true
|
|
||||||
},
|
},
|
||||||
globals: {}
|
all: [
|
||||||
|
'Gruntfile.js',
|
||||||
|
'tasks/{,*/}*.js',
|
||||||
|
'test/{,*/}*.js',
|
||||||
|
]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Load local tasks.
|
|
||||||
grunt.loadTasks('tasks');
|
|
||||||
|
|
||||||
// Default task.
|
// Default task.
|
||||||
grunt.registerTask('default', 'lint test');
|
grunt.registerTask('default', [
|
||||||
|
'jshint',
|
||||||
|
'nodeunit:all'
|
||||||
|
]);
|
||||||
|
|
||||||
};
|
};
|
|
@ -33,7 +33,10 @@
|
||||||
"grunt": "~0.3.9"
|
"grunt": "~0.3.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"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": [
|
"keywords": [
|
||||||
"gruntplugin",
|
"gruntplugin",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue