This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
57 lines (53 loc) · 1.43 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
/*
* My little Gruntfile.js – Task runnin' is magic.
*/
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
application: {
package: grunt.file.readJSON('package.json'),
bower: grunt.file.readJSON('bower.json')
},
connect: {
options: {
port: 9000,
// change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
server: {}
},
jshint: {
options: {
node: true
},
files: ['Gruntfile.js', 'app/**/*.js', 'test/**/*.js', '!app/bower_components/**/*.js']
},
watch: {
scripts: {
files: ['<%= jshint.files %>'],
tasks: ['jshint']
},
'bower-install': {
files: ['<%= wiredep.task.src %>', 'bower.json'],
tasks: ['wiredep']
}
},
wiredep: {
task: {
src: ['app/**/*.html', '!app/bower_components/**/*.html'],
options: {
// See wiredep's configuration documentation for the options
// you may pass:
// https://github.com/taptapship/wiredep#configuration
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-wiredep');
grunt.registerTask('test', ['jshint']);
grunt.registerTask('default', ['test']);
grunt.registerTask('serve', ['connect:server:keepalive']);
};