test for grunt dependency
This commit is contained in:
parent
b6f2ca548a
commit
2e26818904
2 changed files with 69 additions and 0 deletions
23
tests/samples/codefiles/Gruntfile
Normal file
23
tests/samples/codefiles/Gruntfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
jshint: {
|
||||
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
|
||||
options: {
|
||||
globals: {
|
||||
jQuery: true
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
files: ['<%= jshint.files %>'],
|
||||
tasks: ['jshint']
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.registerTask('default', ['jshint']);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue