-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
39 lines (37 loc) · 864 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
35
36
37
38
39
module.exports = function (grunt) {
grunt.initConfig({
connect: {
dev: {
options: {
base: 'public',
port: 8888,
keepalive: true
}
}
},
jasmine: {
src: 'public/js/*.js',
options: {
specs: 'tests/specs/*.spec.js'
}
},
jshint: {
files: ['public/js/*.js'],
options: {
jshintrc: '.jshintrc'
}
},
open: {
dev: {
path: 'http://127.0.0.1:<%=connect.dev.options.port%>/index.html',
app: 'chrome'
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-open');
grunt.registerTask('default', ['open:dev', 'connect:dev']);
grunt.registerTask('test', ['jshint', 'jasmine']);
};