This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
58 lines (54 loc) · 2.13 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ngdocs: {
all: ['resource/javascripts/**/**.js'],
options: {
scripts: ['static/javascripts/bower_components/angular/angular.js', 'static/javascripts/bower_components/angular-animate/angular-animate.js'],
html5Mode: false
}
},
connect: {
options: {
keepalive: true
},
server: {}
},
clean: ['docs'],
uglify: {
options: {
sourceMap: true,
compress: true,
beautify: false,
mangle: true,
preserveComments: false
},
my_target: {
files: {
'static/javascripts/krusha.min.js': [
'static/javascripts/bower_components/angular-growl-notifications/dist/angular-growl-notifications.js',
'resource/javascripts/polyfills.js',
'resource/javascripts/scrollfix.js',
'resource/javascripts/recaptcha.js',
'resource/javascripts/krusha.js',
'resource/javascripts/filter.js',
'resource/javascripts/validators.js',
'resource/javascripts/animation.js',
'resource/javascripts/directives/*.js',
'resource/javascripts/factories/*.js',
'resource/javascripts/factories/api/*.js',
'resource/javascripts/controllers/*.js'
]
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-ngdocs');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', ['uglify', 'clean', 'ngdocs', 'connect']);
grunt.registerTask('uglifyit', ['uglify']);
};