80922cc5e6
watch:test only watches the test's js files and runs the tests when they change.
24 lines
No EOL
472 B
JavaScript
24 lines
No EOL
472 B
JavaScript
module.exports = function (config) {
|
|
return {
|
|
// just lint the source dir
|
|
source: {
|
|
files: {
|
|
src: [
|
|
'Gruntfile.js',
|
|
'<%= src %>/**/*.js',
|
|
'<%= unitTestDir %>/**/*.js',
|
|
'<%= root %>/tasks/**/*.js'
|
|
]
|
|
}
|
|
},
|
|
options: {
|
|
jshintrc: true,
|
|
ignores: [
|
|
'node_modules/*',
|
|
'dist/*',
|
|
'sample/*',
|
|
'<%= root %>/src/bower_components/**/*'
|
|
]
|
|
}
|
|
};
|
|
}; |