forked from SebastianMetzger/angular-material-inbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
54 lines (50 loc) · 1.35 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
module.exports = function(grunt) {
// Load Grunt tasks declared in the package.json file
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('grunt-contrib-jshint');
// Configure Grunt
grunt.initConfig({
// Grunt express - our webserver
// https://github.com/blai/grunt-express
express: {
all: {
options: {
bases: ['.'],
port: 8080,
hostname: "0.0.0.0",
livereload: true
}
}
},
// grunt-watch will monitor the projects files
// https://github.com/gruntjs/grunt-contrib-watch
watch: {
all: {
files: '**/*.html',
options: {
livereload: true
}
}
},
// grunt-open will open your browser at the project's URL
// https://www.npmjs.org/package/grunt-open
open: {
all: {
path: 'http://localhost:8080/index.html'
}
},
jshint: {
all: ['Gruntfile.js', 'controllers/**/*.js']
}
});
// Creates the `server` task
grunt.registerTask('server', [
'jshint',
'express',
'open',
'watch'
]);
grunt.registerTask('default', [
'jshint'
]);
};