Skip to content

Commit b9780d6

Browse files
Move bootstrap-datepicker into gulp/tasks
1 parent 8e4cba9 commit b9780d6

File tree

2 files changed

+29
-23
lines changed

2 files changed

+29
-23
lines changed

gulp/tasks/bootstrap-datepicker.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
});

gulpfile.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,6 @@ var jscs = require('gulp-jscs');
1212

1313
require('./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-
3815
gulp.task('minify', function() {
3916
gulp.src([
4017
'./src/module.js',

0 commit comments

Comments
 (0)