Skip to content

Commit c93c6d8

Browse files
committed
Lazyloading and other features added
1 parent 6d5903d commit c93c6d8

File tree

133 files changed

+1683
-47910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+1683
-47910
lines changed

Gruntfile.js

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -215,24 +215,29 @@ module.exports = function (grunt) {
215215
// By default, your `index.html`'s <!-- Usemin block --> will take care of
216216
// minification. These next options are pre-configured if you do not wish
217217
// to use the Usemin blocks.
218-
// cssmin: {
219-
// dist: {
220-
// files: {
221-
// '<%= yeoman.dist %>/styles/main.css': [
222-
// '.tmp/styles/{,*/}*.css'
223-
// ]
224-
// }
225-
// }
226-
// },
227-
// uglify: {
228-
// dist: {
229-
// files: {
230-
// '<%= yeoman.dist %>/scripts/scripts.js': [
231-
// '<%= yeoman.dist %>/scripts/scripts.js'
232-
// ]
233-
// }
234-
// }
235-
// },
218+
cssmin: {
219+
dist: {
220+
files: [{
221+
expand: true,
222+
cwd: '<%= yeoman.dist %>',
223+
src: 'styles/*.css',
224+
dest: '<%= yeoman.dist %>'
225+
}]
226+
}
227+
},
228+
uglify: {
229+
build: {
230+
files: [{
231+
expand: true,
232+
src: '**/*.js',
233+
dest: '<%= yeoman.dist %>/scripts',
234+
cwd: '<%= yeoman.app %>/scripts'
235+
}]
236+
},
237+
options: {
238+
mangle:false
239+
},
240+
},
236241
// concat: {
237242
// dist: {}
238243
// },
@@ -271,7 +276,7 @@ module.exports = function (grunt) {
271276
files: [{
272277
expand: true,
273278
cwd: '<%= yeoman.dist %>',
274-
src: ['*.html', 'views/{,*/}*.html'],
279+
src: '**/*.html',
275280
dest: '<%= yeoman.dist %>'
276281
}]
277282
}
@@ -284,9 +289,9 @@ module.exports = function (grunt) {
284289
dist: {
285290
files: [{
286291
expand: true,
287-
cwd: '.tmp/concat/scripts',
288-
src: '*.js',
289-
dest: '.tmp/concat/scripts'
292+
cwd: '<%= yeoman.app %>/scripts',
293+
src: '**/*.js',
294+
dest: '<%= yeoman.dist %>/scripts',
290295
}]
291296
}
292297
},
@@ -306,15 +311,16 @@ module.exports = function (grunt) {
306311
dot: true,
307312
cwd: '<%= yeoman.app %>',
308313
dest: '<%= yeoman.dist %>',
309-
src: [
310-
'*.{ico,png,txt}',
311-
'.htaccess',
312-
'*.html',
313-
'views/{,*/}*.html',
314-
'images/{,*/}*.{webp}',
315-
'fonts/*'
316-
]
317-
}, {
314+
src: [ '**']
315+
},{
316+
317+
expand:true,
318+
cwd:'bower_components',
319+
dest:'<%= yeoman.dist %>/bower_components',
320+
src:['**']
321+
} ,
322+
323+
{
318324
expand: true,
319325
cwd: '.tmp/images',
320326
dest: '<%= yeoman.dist %>/images',
@@ -389,18 +395,11 @@ module.exports = function (grunt) {
389395

390396
grunt.registerTask('build', [
391397
'clean:dist',
392-
'wiredep',
393-
'useminPrepare',
394398
'concurrent:dist',
395-
'autoprefixer',
396-
'concat',
397-
'ngmin',
398399
'copy:dist',
399-
'cdnify',
400400
'cssmin',
401+
'ngmin',
401402
'uglify',
402-
'filerev',
403-
'usemin',
404403
'htmlmin'
405404
]);
406405

app/flot.tooltip/.bower.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/flot.tooltip/bower.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/flot.tooltip/js/excanvas.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)