forked from cgross/angular-notify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
executable file
·85 lines (80 loc) · 1.67 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
connect: {
main: {
options: {
port: 9001
}
}
},
watch: {
main: {
options: {
livereload: true,
livereloadOnError: false,
spawn: false
},
files: ['angular-notify.css','angular-notify.html','angular-notify.js','dist/**/*','demo/**/*'],
tasks: ['jshint','build']
}
},
jshint: {
main: {
options: {
jshintrc: '.jshintrc'
},
src: 'angular-notify.js'
}
},
jasmine: {
unit: {
src: [''],
options: {
specs: 'test/unit/*.js'
}
}
},
copy: {
main: {
files: [
{src:'angular-notify.css',dest:'dist/'}
]
}
},
ngtemplates: {
main: {
options: {
module:'cgNotify',
base:''
},
src:'angular-notify.html',
dest: 'temp/templates.js'
}
},
concat: {
main: {
src: ['angular-notify.js', 'temp/templates.js'],
dest: 'dist/angular-notify.js'
}
},
uglify: {
main: {
files: [
{src:'dist/angular-notify.js',dest:'dist/angular-notify.min.js'}
]
}
},
cssmin: {
main: {
files: {
'dist/angular-notify.min.css': 'dist/angular-notify.css'
}
}
}
});
grunt.registerTask('serve', ['jshint','connect', 'watch']);
grunt.registerTask('build',['ngtemplates','concat','uglify','copy','cssmin']);
grunt.registerTask('test',['build','jasmine']);
};