generated from itw-creative-works/ultimate-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
executable file
·26 lines (21 loc) · 749 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';
const config = require('./_websrc/master.config.js');
const gulp = require('gulp');
const requireDir = require('require-dir');
const argv = require('yargs').argv;
const tasks = [];
requireDir('./_websrc/gulp_tasks', {recurse: true});
// Log important stuff
console.log(`Using Node.js v${process.versions.node}`);
console.log('Command line args => ', argv);
Object.keys(config.tasks).forEach(function (key) {
if (config.tasks[key] && key !== 'eslint') {
tasks.push((key === 'webpack' && config.tasks.watch) ? '_' + key : key);
}
});
/**
* Default task, running just `gulp` will minify the images,
* compile the sass, bundle the js, launch BrowserSync, and
* watch files.
*/
gulp.task('default', tasks);