-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
34 lines (30 loc) · 886 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
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
nodemon: {
prod: {
options: {
file: 'app.js',
ignoredFiles: ['README.md', 'node_modules/**'],
}
},
},
jshint: {
all: ['*.js']
},
sass: {
dist: {
files: {
'assets/css/application.css': 'assets/css/application.scss',
'assets/css/mobile.css': 'assets/css/mobile.scss'
}
}
}
});
// load tasks
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-contrib-jshint');
// running tasks
grunt.registerTask('default', ['sass', 'jshint', 'nodemon']);
};