-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGruntfile.js
More file actions
63 lines (59 loc) · 1.83 KB
/
Copy pathGruntfile.js
File metadata and controls
63 lines (59 loc) · 1.83 KB
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
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
force: true
},
client: {
src: ['client/services/*.js','client/src/*.js','client/app.js',
'server/index.js','server/*/*.js']
}
},
mochaTest: {
test: 'spec/serverSpec.js'
},
concat: {
client: {
src: [
'client/bower_components/lodash/lodash.min.js',
'client/bower_components/jquery/dist/jquery.min.js',
'client/bower_components/angular/angular.min.js',
'client/bower_components/angular-route/angular-route.min.js',
'client/bower_components/angular-simple-logger/dist/angular-simple-logger.min.js',
'client/bower_components/angular-google-maps/dist/angular-google-maps.min.js',
'client/src/APIKey.js',
'client/src/main.js',
'client/src/login.js',
'client/src/signup.js',
'client/src/signout.js',
'client/src/mapview.js',
'client/src/profile.js',
'client/src/match.js',
'client/src/mailbox.js',
'client/src/matchHelpers.js',
'client/services/services.js',
'client/app.js'
],
dest: 'client/dist/concat/pegasys.js'
}
},
uglify: {
options: {
screwIE8: true,
mangle: false
},
build: {
src: 'client/dist/concat/pegasys.js',
dest: 'client/dist/pegasys.min.js'
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['jshint','mochaTest','concat','uglify']);
grunt.registerTask('devbuild', ['concat','uglify']);
grunt.registerTask('lint', ['jshint']);
};