Skip to content

Commit d96983f

Browse files
author
Guy Nesher
committed
upgraded angular.js to 1.06, removed imagmin and fixed some Gruntfile bugs
1 parent 8f75ff5 commit d96983f

File tree

2 files changed

+119
-85
lines changed

2 files changed

+119
-85
lines changed

Gruntfile.js

100644100755
+31-24
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ module.exports = function(grunt) {
1919
{
2020
expand: true,
2121
cwd: 'app/',
22-
src: ['index.html'],
22+
src: ['index.html', 'assets/fonts/**'],
2323
dest: 'public/'
24+
},
25+
{
26+
expand: true,
27+
cwd: 'vendor/js-no-compile',
28+
src: ['**/*.*'],
29+
dest: 'public/js/'
2430
}
2531
]
2632
},
@@ -29,14 +35,20 @@ module.exports = function(grunt) {
2935
{
3036
expand: true,
3137
cwd: 'app/',
32-
src: ['index.html', 'images/**/*.*'],
38+
src: ['index.html', 'assets/images/**', 'assets/fonts/**'],
3339
dest: 'public/'
3440
},
3541
{
3642
expand: true,
3743
cwd: 'vendor/',
3844
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/'
4052
}
4153
]
4254
}
@@ -53,7 +65,7 @@ module.exports = function(grunt) {
5365
less: {
5466
dist: {
5567
files: {
56-
"public/css/style.min.css": "app/less/**.less"
68+
"public/assets/css/style.min.css": "public/assets/css/style.min.css"
5769
}
5870
}
5971
},
@@ -74,36 +86,32 @@ module.exports = function(grunt) {
7486
concat: {
7587
dist: {
7688
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'
7998
}
8099
}
81100
},
82101

83102
ngtemplates: {
84-
dist: {
103+
Weblight: {
85104
options: { base: 'app/views' },
86105
src: [ 'app/views/**.html' ],
87-
dest: 'public/templates.js'
88-
}
106+
dest: 'public/js/templates.js'
107+
}
89108
},
90109

91110
cssmin: {
92111
compress: {
93112
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"]
107115
}
108116
}
109117
},
@@ -128,12 +136,11 @@ module.exports = function(grunt) {
128136
grunt.loadNpmTasks('grunt-angular-templates');
129137
grunt.loadNpmTasks('grunt-contrib-concat');
130138
grunt.loadNpmTasks('grunt-contrib-cssmin');
131-
grunt.loadNpmTasks('grunt-contrib-imagemin');
132139
grunt.loadNpmTasks('grunt-regarde');
133140
grunt.loadNpmTasks('grunt-contrib-connect');
134141

135142
// 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']);
137144
grunt.registerTask('rebuild-dev', ['copy:dev', 'concat', 'coffee', 'jshint', 'less', 'ngtemplates']);
138145
grunt.registerTask('server', ['rebuild-dev', 'connect', 'regarde']);
139146
};

0 commit comments

Comments
 (0)