@@ -19,8 +19,14 @@ module.exports = function(grunt) {
19
19
{
20
20
expand : true ,
21
21
cwd : 'app/' ,
22
- src : [ 'index.html' ] ,
22
+ src : [ 'index.html' , 'assets/fonts/**' ] ,
23
23
dest : 'public/'
24
+ } ,
25
+ {
26
+ expand : true ,
27
+ cwd : 'vendor/js-no-compile' ,
28
+ src : [ '**/*.*' ] ,
29
+ dest : 'public/js/'
24
30
}
25
31
]
26
32
} ,
@@ -29,14 +35,20 @@ module.exports = function(grunt) {
29
35
{
30
36
expand : true ,
31
37
cwd : 'app/' ,
32
- src : [ 'index.html' , 'images/**/*. *' ] ,
38
+ src : [ 'index.html' , 'assets/ images/**' , 'assets/fonts/* *'] ,
33
39
dest : 'public/'
34
40
} ,
35
41
{
36
42
expand : true ,
37
43
cwd : 'vendor/' ,
38
44
src : [ 'images/**/*.*' ] ,
39
- dest : 'public/'
45
+ dest : 'public/assets/'
46
+ } ,
47
+ {
48
+ expand : true ,
49
+ cwd : 'vendor/js-no-compile' ,
50
+ src : [ '**/*.*' ] ,
51
+ dest : 'public/js/'
40
52
}
41
53
]
42
54
}
@@ -53,7 +65,7 @@ module.exports = function(grunt) {
53
65
less : {
54
66
dist : {
55
67
files : {
56
- "public/css/style.min.css" : "app/less/**.less "
68
+ "public/assets/ css/style.min.css" : "public/assets/css/style.min.css "
57
69
}
58
70
}
59
71
} ,
@@ -74,36 +86,32 @@ module.exports = function(grunt) {
74
86
concat : {
75
87
dist : {
76
88
files : {
77
- 'public/js/vendor-scripts.min.js' : 'vendor/js/**/*.js' ,
78
- 'public/css/vendor-css.min.css' : 'vendor/css/**/*.css'
89
+ 'public/js/vendor-scripts.min.js' : [
90
+ 'vendor/js/jquery-1.9.1.js' ,
91
+ 'vendor/js/lodash.js' ,
92
+ 'vendor/js/bootstrap.js' ,
93
+ 'vendor/js/angular.js' ,
94
+ 'vendor/js/angular-resource.js'
95
+ ] ,
96
+ 'public/assets/css/vendor-css.min.css' : 'vendor/css/**/*.css' ,
97
+ 'public/assets/css/style.min.css' : 'app/assets/less/**.less'
79
98
}
80
99
}
81
100
} ,
82
101
83
102
ngtemplates : {
84
- dist : {
103
+ Weblight : {
85
104
options : { base : 'app/views' } ,
86
105
src : [ 'app/views/**.html' ] ,
87
- dest : 'public/templates.js'
88
- }
106
+ dest : 'public/js/ templates.js'
107
+ }
89
108
} ,
90
109
91
110
cssmin : {
92
111
compress : {
93
112
files : {
94
- "public/css/vendor-css.min.css" : [ "public/css/vendor-css.min.css" ] ,
95
- "public/css/style.min.css" : [ "public/css/style.min.css" ]
96
- }
97
- }
98
- } ,
99
-
100
- imagemin : {
101
- dist : {
102
- options : {
103
- optimizationLevel : 1
104
- } ,
105
- files : {
106
- 'public/images/' : [ 'app/images/**/*.*' , 'vendor/images/**/*.*' ]
113
+ "public/assets/css/vendor-css.min.css" : [ "public/assets/css/vendor-css.min.css" ] ,
114
+ "public/assets/css/style.min.css" : [ "public/assets/css/style.min.css" ]
107
115
}
108
116
}
109
117
} ,
@@ -128,12 +136,11 @@ module.exports = function(grunt) {
128
136
grunt . loadNpmTasks ( 'grunt-angular-templates' ) ;
129
137
grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
130
138
grunt . loadNpmTasks ( 'grunt-contrib-cssmin' ) ;
131
- grunt . loadNpmTasks ( 'grunt-contrib-imagemin' ) ;
132
139
grunt . loadNpmTasks ( 'grunt-regarde' ) ;
133
140
grunt . loadNpmTasks ( 'grunt-contrib-connect' ) ;
134
141
135
142
// Define your tasks here
136
- grunt . registerTask ( 'default' , [ 'copy:dist' , 'concat' , 'coffee' , 'jshint' , 'uglify' , 'less' , 'cssmin' , 'ngtemplates' , 'imagemin' ] ) ;
143
+ grunt . registerTask ( 'default' , [ 'copy:dist' , 'concat' , 'coffee' , 'jshint' , 'uglify' , 'less' , 'cssmin' , 'ngtemplates' ] ) ;
137
144
grunt . registerTask ( 'rebuild-dev' , [ 'copy:dev' , 'concat' , 'coffee' , 'jshint' , 'less' , 'ngtemplates' ] ) ;
138
145
grunt . registerTask ( 'server' , [ 'rebuild-dev' , 'connect' , 'regarde' ] ) ;
139
146
} ;
0 commit comments