-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgruntfile.js
52 lines (45 loc) · 961 Bytes
/
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
48
49
50
51
52
require("./lib/env")
var grunt = require('grunt')
, fs = require('fs')
;
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
files: {
"public/stylesheets/style.css" : "sass/main.scss"
}
}
},
nodemon: {
target: {
script: "bin/www",
options: {
ext: "hbs,js,json",
ignore: ['node_modules/**'],
}
}
},
watch: {
sass: {
files: ["sass/**/*"],
tasks: ["sass"]
}
},
mochaTest: {
files: [
'test/bootstrap.js',
'test/**/*.test.js'
],
options: {
timeout: 30000
}
}
})
}
grunt.loadNpmTasks("grunt-nodemon");
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('test' , ['mochaTest']);
grunt.registerTask('serve', ['nodemon', 'watch']);