-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
41 lines (34 loc) · 1.36 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
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
files: ['Gruntfile.js', 'public/scripts/*.js', 'routes/*.js']
},
watch: {
files: ['client/*.js'],
tasks: ['uglify']
},
copy: {
main: {
files: [
// makes all src relative to cwd
{expand: true, cwd: 'node_modules', src: ['angular/**', 'bootstrap/**'], dest: 'dest/'}
]
}
},
uglify: {
my_target: {
// options: {
// mangle: false
// },
files: {
'public/assets/client.min.js': ['client/app.module.js', 'client/app.config.js', 'client/MainController.js', 'client/DataService.js', 'client/LoginController.js','client/GettingDataController.js', 'client/HomeController.js', 'client/EditController.js', 'client/SettingsController.js', 'client/RouteService.js', 'client/EmailService.js', 'client/TemplateService.js', 'client/ModalController.js', 'client/DonationService.js', 'client/OverviewController.js', 'client/UserService.js', 'client/SettingsService.js', 'client/SettingsModalController.js', 'client/SettingsController.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['uglify', 'watch']);
};