forked from a-ui/variant_branding_scss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
26 lines (19 loc) · 848 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';
require('./gulp/build'),
require('./gulp/clean'),
require('./gulp/copy'),
require('./gulp/iconsprite'),
require('./gulp/styles'),
require('./gulp/templates'),
require('./gulp/watch');
var gulp = require('gulp');
// Start a development server
gulp.task('server', gulp.series('clean:tmp', gulp.parallel('icon-sprite', 'sass', 'render-templates', 'stylelint'), 'watch'));
// Create a build
gulp.task('build', gulp.series('clean:dist', gulp.parallel('icon-sprite', 'sass:dist'), 'copy', 'replace:dist'));
// Build documentation
gulp.task('docs', gulp.series('clean:docs', gulp.parallel('icon-sprite', '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'));