File tree Expand file tree Collapse file tree 2 files changed +29
-23
lines changed Expand file tree Collapse file tree 2 files changed +29
-23
lines changed Original file line number Diff line number Diff line change 1+ var gulp = require ( 'gulp' ) ,
2+ streamqueue = require ( 'streamqueue' ) ,
3+ minifyHtml = require ( 'gulp-minify-html' ) ,
4+ templateCache = require ( 'gulp-angular-templatecache' ) ,
5+ concat = require ( 'gulp-concat' ) ,
6+ uglify = require ( 'gulp-uglify' ) ;
7+
8+ gulp . task ( 'bootstrap-datepicker' , function ( ) {
9+ var stream = streamqueue ( { objectMode : true } ) ;
10+ stream . queue (
11+ gulp . src ( './src/directives/decorators/bootstrap/datepicker/*.html' )
12+ . pipe ( minifyHtml ( {
13+ empty : true ,
14+ spare : true ,
15+ quotes : true
16+ } ) )
17+ . pipe ( templateCache ( {
18+ module : 'schemaForm' ,
19+ root : 'directives/decorators/bootstrap/datepicker/'
20+ } ) )
21+ ) ;
22+ stream . queue ( gulp . src ( './src/directives/decorators/bootstrap/datepicker/*.js' ) ) ;
23+
24+ stream . done ( )
25+ . pipe ( concat ( 'bootstrap-datepicker.min.js' ) )
26+ . pipe ( uglify ( ) )
27+ . pipe ( gulp . dest ( './dist/' ) ) ;
28+
29+ } ) ;
Original file line number Diff line number Diff line change @@ -12,29 +12,6 @@ var jscs = require('gulp-jscs');
1212
1313require ( './gulp' ) ;
1414
15- gulp . task ( 'bootstrap-datepicker' , function ( ) {
16- var stream = streamqueue ( { objectMode : true } ) ;
17- stream . queue (
18- gulp . src ( './src/directives/decorators/bootstrap/datepicker/*.html' )
19- . pipe ( minifyHtml ( {
20- empty : true ,
21- spare : true ,
22- quotes : true
23- } ) )
24- . pipe ( templateCache ( {
25- module : 'schemaForm' ,
26- root : 'directives/decorators/bootstrap/datepicker/'
27- } ) )
28- ) ;
29- stream . queue ( gulp . src ( './src/directives/decorators/bootstrap/datepicker/*.js' ) ) ;
30-
31- stream . done ( )
32- . pipe ( concat ( 'bootstrap-datepicker.min.js' ) )
33- . pipe ( uglify ( ) )
34- . pipe ( gulp . dest ( './dist/' ) ) ;
35-
36- } ) ;
37-
3815gulp . task ( 'minify' , function ( ) {
3916 gulp . src ( [
4017 './src/module.js' ,
You can’t perform that action at this time.
0 commit comments