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
45
Gruntfile.js
Normal file
45
Gruntfile.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
// Load grunt tasks automatically
|
||||
require('load-grunt-tasks')(grunt);
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
nodeunit: {
|
||||
all: ['test/**/_test.js']
|
||||
},
|
||||
watch: {
|
||||
files: '<config:lint.files>',
|
||||
tasks: 'default'
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
curly: true,
|
||||
eqeqeq: true,
|
||||
immed: true,
|
||||
latedef: true,
|
||||
newcap: true,
|
||||
noarg: true,
|
||||
sub: true,
|
||||
undef: true,
|
||||
boss: true,
|
||||
eqnull: true,
|
||||
node: true,
|
||||
},
|
||||
all: [
|
||||
'Gruntfile.js',
|
||||
'tasks/{,*/}*.js',
|
||||
'test/{,*/}*.js',
|
||||
]
|
||||
}
|
||||
});
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask('default', [
|
||||
'jshint',
|
||||
'nodeunit:all'
|
||||
]);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue