-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
47 lines (43 loc) · 1.08 KB
/
Gruntfile.js
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
37
38
39
40
41
42
43
44
45
46
47
"use strict";
module.exports = function(grunt) {
var jshint_watched_files = ["Gruntfile.js", "lib/**/*.js", "test/**/*.js", "webservers/**/*.js"];
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jshint: {
options: {
jshintrc: true
},
all: jshint_watched_files
},
wiredep: {
task: {
src: [
"lib/views/**/*.html",
"lib/views/**/*.jade"
]
}
},
mochaTest: {
test: {
options: {
reporter: "list"
},
src: ["test/**/test*.js"]
}
},
watch: {
files: jshint_watched_files,
tasks: ["mochaTest"]
},
shell: {
bootstrap: {
command: "npm-check-updates && rm -rf node_modules && rm -rf lib/public/vendor && npm-check-updates -u && npm cache clean && npm install && bower install"
}
}
});
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-mocha-test");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-shell");
grunt.registerTask("default", ["watch"]);
};