-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.student.js
131 lines (122 loc) · 3.64 KB
/
grunt.student.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
console.log('Evaluating grunt.student.js');
exports.concat = {
js: {
src: [
'client/student/app/student.module.js',
'client/shared/shared.module.js',
'release/concat/student.js',
],
dest: 'release/concat/student.js'
},
css: {
src: ['client/student/content/css/*.css'],
dest: 'release/concat/student.css'
}
};
exports.copy = {
main: {
files: [
{
expand: true,
flatten: true,
src: ['bower_components/bootstrap/dist/css/bootstrap.min.css'],
dest: 'release/min/'
},
{
expand: true,
flatten: true,
src: ['bower_components/bootstrap/fonts/*'],
dest: 'release/fonts/',
filter: 'isFile'
}
]
}
};
exports.uglify = {
files: {
'release/min/student.min.js': ['release/concat/student.js']
}
};
exports.cssmin = {
files: {
'release/min/student.min.css': ['release/concat/student.css']
}
};
exports.jshint = 'client/student/**/*.js';
exports.watch = {
change: {
files: ['client/student/app/**/*.js'],
tasks: ['jshint:student']
}
};
exports.tags = {
scripts: {
dev: {
options: {
scriptTemplate: '<script src="{{ path }}"></script>',
openTag: '<!-- Start of generated js tag -->',
closeTag: '<!-- End of generated js tag -->'
},
src: [
'bower_components/jquery/dist/jquery.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular/angular.js',
'bower_components/angular-resource/angular-resource.js',
'bower_components/angular-route/angular-route.js',
'client/student/app/student.module.js',
'client/student/app/**/*.js',
'client/shared/shared.module.js',
'client/shared/**/*.js'
],
dest: 'client/student/index.html'
},
release: {
options: {
scriptTemplate: '<script src="{{ path }}"></script>',
openTag: '<!-- Start of generated js tag -->',
closeTag: '<!-- End of generated js tag -->'
},
src: [
'release/min/IFS-deps.min.js',
'release/min/student.min.js'
],
dest: 'client/student/index.html'
}
},
links: {
dev: {
options: {
linkTemplate: '<link rel="stylesheet" href="{{ path }}"/>',
openTag: '<!-- Start of generated css tag -->',
closeTag: '<!-- End of generated css tag -->'
},
src: [
'bower_components/bootstrap/dist/css/bootstrap.css',
'client/student/content/css/*.css'
],
dest: 'client/student/index.html'
},
release: {
options: {
linkTemplate: '<link rel="stylesheet" href="{{ path }}"/>',
openTag: '<!-- Start of generated css tag -->',
closeTag: '<!-- End of generated css tag -->'
},
src: [
'release/min/bootstrap.min.css',
'release/min/student.min.css'
],
dest: 'client/student/index.html'
}
}
};
exports.ngAnnotate = {
files: {
'release/concat/student.js': [
'client/student/app/**/*.js',
'!client/student/app/student.module.js',
'client/shared/**/*.js',
'!client/shared/shared.module.js'
]
}
};