This repository was archived by the owner on Mar 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGruntFile.js
More file actions
90 lines (87 loc) · 2.82 KB
/
GruntFile.js
File metadata and controls
90 lines (87 loc) · 2.82 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
assets: {
expand: true,
cwd: 'client/assets',
src: ['**/*.js', '**/**/*.js', '**/*.css'],
dest: 'server/public/assets/'
},
views: {
expand: true,
cwd: 'client/views',
src: ['*.html', '**/*.html'],
dest: 'server/public/views/'
},
angular: {
expand: true,
cwd: 'node_modules/angular/',
src: ['angular.js',
'angular.min.js',
'angular.min.js.map'],
dest: 'server/public/vendors/angular/'
},
angularRoute: {
expand: true,
cwd: 'node_modules/angular-route/',
src: ['angular-route.js',
'angular-route.min.js',
'angular-route.min.js.map'],
dest: 'server/public/vendors/angular-route/'
},
angularAnimate: {
expand: true,
cwd: 'node_modules/angular-animate/',
src: ['angular-animate.js',
'angular-animate.min.js',
'angular-animate.min.js.map'],
dest: 'server/public/vendors/angular-animate/'
},
angularAria: {
expand: true,
cwd: 'node_modules/angular-aria/',
src: ['angular-aria.js',
'angular-aria.min.js',
'angular-aria.min.js.map'],
dest: 'server/public/vendors/angular-aria/'
},
angularMaterial: {
expand: true,
cwd: 'node_modules/angular-material/',
src: ['angular-material.min.css',
'angular-material.js',
'angular-material.min.js',
'angular-material.min.js.map'],
dest: 'server/public/vendors/angular-material/'
},
angularMaterialDataTable: {
expand: true,
cwd: 'node_modules/angular-material-data-table/dist',
src: ['md-data-table.min.css',
'md-data-table.min.js',
'md-data-table.css',
'md-data-table.js'],
dest: 'server/public/vendors/angular-material-data-table/'
},
angularMessages: {
expand: true,
cwd: 'node_modules/angular-messages/',
src: ['angular-messages.js',
'angular-messages.min.js',
'angular-messages.min.js.map'],
dest: 'server/public/vendors/angular-messages/'
},
// you'll need to write copy configs for
// angular-animate, angular-aria, angular-material, angular-material-data-table, angular-messages
// before you begin to use angular materials
},
watch: {
files : ['client/**/*.*', 'client/**/**/*.*', 'client/**/**/**/*.*'],
tasks : ['copy'],
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['copy', 'watch']);
};