forked from formio/ngFormBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
26 lines (24 loc) · 1.25 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'use strict';
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
plugins.source = require('vinyl-source-stream');
plugins.browserify = require('browserify');
plugins.watchify = require('watchify');
plugins.runSeq = require('run-sequence');
plugins.bowerFiles = require('main-bower-files');
plugins.packageJson = require('./package.json');
gulp.task('clean', require('del').bind(null, ['dist']));
gulp.task('eslint', require('./gulp/eslint')(gulp, plugins));
gulp.task('styles:basic', require('./gulp/styles-basic')(gulp, plugins));
gulp.task('styles:full', require('./gulp/styles-full')(gulp, plugins));
gulp.task('styles:complete', require('./gulp/styles-complete')(gulp, plugins));
gulp.task('styles', ['styles:basic', 'styles:complete', 'styles:full']);
gulp.task('scripts:basic', require('./gulp/scripts')(gulp, plugins));
gulp.task('scripts:full', require('./gulp/scripts-full')(gulp, plugins));
gulp.task('scripts:complete', require('./gulp/scripts-complete')(gulp, plugins));
gulp.task('scripts', ['scripts:basic', 'scripts:complete', 'scripts:full']);
gulp.task('build', function(cb) {
plugins.runSeq(['clean'], 'scripts', 'styles', cb)
});
gulp.task('watch', require('./gulp/watch')(gulp, plugins));
gulp.task('default', ['build', 'watch']);