forked from usagov/vote-gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
41 lines (38 loc) · 1.42 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// This gulp asset pipeline supports linting of scss and js files along with
// compiling and bundling css and js files into static/assets/ directories to
// be used by Hugo.
// Bring in individual gulp configs
require('./config/gulp/flags');
require('./config/gulp/styles');
require('./config/gulp/scripts');
require('./config/gulp/images');
require('./config/gulp/fonts');
require('./config/gulp/translation');
require('./config/gulp/deploy');
var build = require('./config/gulp/build');
var runSequence = require('run-sequence');
var gulp = require('gulp');
var gutil = require('gulp-util');
gulp.task('default', function (done) {
build.printPackageInfo();
gutil.log('Available tasks');
gutil.log('$', gutil.colors.magenta('gulp watch'));
gutil.log('Watch for changes and build the asset-pipeline');
gutil.log('$', gutil.colors.magenta('gulp build'));
gutil.log('Build the asset-pipeline with optional production and no-test flags');
gutil.log('$', gutil.colors.magenta('gulp clean-all'));
gutil.log('Removes files and directories generated by gulp');
gutil.log('$', gutil.colors.magenta('gulp website'));
gutil.log('Runs the gulp watch and hugo serve');
gutil.log('$', gutil.colors.magenta('gulp build:website'));
gutil.log('Build the asset-pipeline and the website using Hugo');
done();
});
gulp.task('test', function (done) {
build.printPackageInfo();
runSequence(
'eslint',
'scss-lint',
done
);
})