forked from RyanHirsch/firem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
61 lines (60 loc) · 1.42 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
watch: {
options: {
livereload: true,
},
emberTemplates: {
files: 'app/templates/**/*.handlebars',
tasks: ['emberTemplates']
},
jshint: {
files: [ 'app/**/*.js', '!app/server.js', '!app/templates.js' ],
task: [ 'jshint' ]
},
express: {
files: [ 'app/server.js', 'app/index.html' ],
tasks: [ 'express:dev' ],
options: {
spawn: false // Without this option specified express won't be reloaded
}
}
},
emberTemplates: {
options: {
templateBasePath: /app\/templates/
},
compile: {
files: {
"app/templates.js": "app/templates/**/*.handlebars"
}
}
},
jshint: {
all: ['Gruntfile.js', 'app/**/*.js', 'test/**/*.js', '!app/templates.js', '!app/public/**']
},
express: {
options: {
},
dev: {
options: {
script: 'app/server.js'
}
},
prod: {
options: {
script: 'path/to/prod/server.js',
node_env: 'production'
}
},
test: {
options: {
script: 'path/to/test/server.js'
}
}
}
});
grunt.registerTask('default', ['emberTemplates', /*'jshint',*/ 'express:dev', 'watch']);
};