-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
26 lines (19 loc) · 915 Bytes
/
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 build = require('./gulp/build'),
clean = require('./gulp/clean'),
copy = require('./gulp/copy'),
iconfont = require('./gulp/iconfont'),
styles = require('./gulp/styles'),
templates = require('./gulp/templates'),
watch = require('./gulp/watch');
// Start a development server
gulp.task('server', gulp.series('clean:tmp', gulp.parallel('icon-font', 'sass', 'render-templates', 'sass-lint'), 'watch'));
// Create a build
gulp.task('build', gulp.series('clean:dist', gulp.parallel('icon-font', 'sass:dist'), 'copy'));
// Build documentation
gulp.task('docs', gulp.series('clean:docs', gulp.parallel('icon-font', 'sass', 'render-templates', 'readme'), 'copy:docs', 'replace'));
// Run AWS task: publish to CDN
gulp.task('aws', gulp.series('build', 'copy:aws', 'clean:aws', 'cdn'));
// Default task
gulp.task('default', gulp.series('server'));