-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathGruntfile.js
52 lines (49 loc) · 1.34 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
module.exports = function(grunt) {
grunt.initConfig({
nodemon: {
dev: {
options: {
file: 'server.js',
ignoredFiles: ['node_modules/**', 'public/**'],
watchedExtensions: ['js']
}
}
},
watch:{
scripts:{
files:['**/*.coffee'],
tasks:['coffee']
}
},
coffee: {
compile: {
files: {
'modules/blog.js': ['modules/blog.coffee'], // 1:1 compile
'modules/builder.js': ['modules/builder.coffee'], // 1:1 compile
'modules/category.js': ['modules/category.coffee'], // 1:1 compile
'modules/user.js': ['modules/user.coffee'], // 1:1 compile
'modules/media.js': ['modules/media.coffee'], // 1:1 compile
'modules/request.js': ['modules/request.coffee'], // 1:1 compile
'config.js': ['config.coffee'],
'helper.js': ['helper.coffee'],
'routes.js': ['routes.coffee'],
'settings.js': ['settings.coffee'],
'schema.js': ['schema.coffee']
}
}
},
concurrent: {
dev: {
tasks: ['nodemon', 'watch'],
options: {
logConcurrentOutput: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-nodemon');
grunt.registerTask('default', ['coffee', 'concurrent']);
};