forked from EversnapTeam/angular-aviary
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
35 lines (33 loc) · 849 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
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*\n\t<%= pkg.name %> v<%= pkg.version %>\n' +
'\t(c) <%= grunt.template.today("yyyy") %> <%= pkg.author %> \n' +
'\tLicense: <%= pkg.license %> \n*/\n'
},
build: {
options: {
sourceMap: true
},
files: {
'angular-aviary.min.js': ['angular-aviary.js']
}
}
},
karma: {
unit: {
configFile: 'karma.conf.js',
singleRun: true
}
},
jshint: {
src: ['angular-aviary.js', 'tests.js']
}
});
grunt.registerTask('test', ['jshint','karma']);
grunt.registerTask('default', ['jshint']);
grunt.registerTask('build', ['uglify', 'jshint']);
};