forked from canonical/vanilla-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
32 lines (27 loc) · 1.08 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
'use strict'
require('es6-promise').polyfill();
var gulp = require('gulp');
var wrench = require('wrench');
/*
concatenate all *.js / *.coffee files in the 'gulp' folder
*/
wrench.readdirSyncRecursive('./gulp').filter(function(file) {
return (/\.(js|coffee)$/i).test(file);
}).map(function(file) {
require('./gulp/' + file);
});
/* Gulp help instructions triggered as Gulp default task */
gulp.task('help', function() {
console.log('develop - Watch sass files and generate unminified CSS for development');
console.log('jekyll - Run gulp develop with Jekyll instance to demo examples');
console.log('test - Lint Sass');
console.log('build - Lint Sass files and generate minified CSS for production');
});
/* Gulp default task list */
gulp.task('default', ['help']);
gulp.task('develop', ['watch', 'sass:develop']);
gulp.task('jekyll', ['watch', 'sass:develop', 'jekyll:serve']);
gulp.task('test', ['lint:sass', 'lint:spellcheck', 'parker:test']);
gulp.task('report', ['parker:report']);
gulp.task('build', ['lint:sass', 'sass:build']);
gulp.task('build-examples', ['jekyll:build']);