forked from grancalavera/first-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
44 lines (40 loc) · 791 Bytes
/
grunt.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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
lint: {
all: ['grunt.js', 'www/js/app/**/*.js']
},
jshint: {
options: {
browser: true
}
},
less: {
development: {
options: {
},
files: {
'www/css/app.css': 'www/less/app.less'
}
}
},
server: {
port: 8000,
base: 'www'
},
reload: {
port: 6001,
proxy: {
host: 'localhost'
}
},
watch: {
files: ['www/**/*'],
tasks: 'lint less reload'
}
});
grunt.loadNpmTasks('grunt-volo');
grunt.loadNpmTasks('grunt-reload');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('default', 'server lint less reload watch');
};