forked from westonplatter/learning_javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
38 lines (30 loc) · 853 Bytes
/
Gruntfile.js
File metadata and controls
38 lines (30 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
specs: "./resources/**/*.js"
},
watch: {
scripts: {
files: "./resources/**/*.js",
tasks: ["jasmine"],
options: {
interrupt: true
},
},
},
jshint: {
professional_javascript: {
options: {
'-W085': true, // allow with statement for Ch3 example
},
src: ["resources/professional_javascript-zakas/**/*.js"],
},
},
});
grunt.loadNpmTasks("grunt-contrib-jasmine");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask("test", ["default"]);
grunt.registerTask("default", ["jasmine", "jshint:professional_javascript"]);
};