-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
161aaf0
commit 85390d6
Showing
29 changed files
with
1,280 additions
and
1,494 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6 | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- "6" | ||
- "10" | ||
cache: node_modules | ||
before_script: | ||
- export DISPLAY=:99.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# HEAD | ||
|
||
## Features | ||
|
||
* **gulp:** Update to Gulp 4.0 (#285) | ||
|
||
# 4.0.0 | ||
|
||
## Features | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
gulpfile.js | ||
=========== | ||
Rather than manage one giant configuration file responsible | ||
for creating multiple tasks, each task has been broken out into | ||
its own file in gulpfile.js/tasks. Any files in that directory get | ||
automatically required below. | ||
To add a new task, simply add a new task file that directory. | ||
gulpfile.js/tasks/default.js specifies the default set of tasks to run | ||
when you run `gulp`. | ||
*/ | ||
|
||
const requireDir = require('require-dir'); | ||
|
||
// Require all tasks in gulpfile.js/tasks, including subfolders | ||
requireDir('./tasks', { recurse: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const gulp = require('gulp'); | ||
const clean = require('./clean'); | ||
const lintCSS = require('./lint-css'); | ||
const lintJS = require('./lint-js'); | ||
const copyStaticFiles = require('./copy-static'); | ||
const drizzleTask = require('./drizzle'); | ||
const compileSass = require('./compile-sass'); | ||
const copySass = require('./copy-sass'); | ||
const copyJS = require('./copy-js'); | ||
const concatJS = require('./concat-js'); | ||
const compressCSS = require('./compress-css'); | ||
const compressJS = require('./compress-js'); | ||
|
||
/* | ||
Build task | ||
========== | ||
This is the main Protocol build task which is responsible | ||
for compiling and building all assets including html, css, | ||
js, and static media. The build task consists of a number of | ||
smaller composite tasks, each having a singular responsibility. | ||
Composite tasks are performed serially when they depend on one | ||
another. When there is no dependency, they run in parallel to | ||
help reduce build times. | ||
*/ | ||
|
||
const build = gulp.series( | ||
clean, | ||
gulp.parallel(lintCSS, lintJS), | ||
copyStaticFiles, | ||
drizzleTask, | ||
gulp.parallel(compileSass, copySass, copyJS, concatJS), | ||
gulp.parallel(compressCSS, compressJS) | ||
); | ||
|
||
// Register build task (for continuous deployment via Netlify) | ||
gulp.task('build', build); | ||
module.exports = build; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const del = require('del'); | ||
const config = require('../config').clean; | ||
|
||
function clean(cb) { | ||
del([config.dest]).then(() => { | ||
cb(); | ||
}); | ||
} | ||
|
||
module.exports = clean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const gulp = require('gulp'); | ||
const build = require('./build'); | ||
const serve = require('./serve'); | ||
const watch = require('./watch'); | ||
const argv = require('yargs').argv; | ||
|
||
function defaultTask(cb) { | ||
serve(); | ||
|
||
if (argv.dev) { | ||
watch(); | ||
} | ||
|
||
cb(); | ||
} | ||
|
||
gulp.task('default', gulp.series(build, defaultTask)); | ||
module.exports = gulp.series(build, defaultTask); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
const drizzle = require('drizzle-builder'); | ||
const gulp = require('gulp'); | ||
const config = require('../config'); | ||
const helpers = require('@cloudfour/hbs-helpers'); | ||
|
||
// Append config | ||
Object.assign(config.drizzle, { helpers }); | ||
|
||
// Register Drizzle builder task | ||
gulp.task('drizzle', () => { | ||
function drizzleTask() { | ||
return drizzle(config.drizzle); | ||
}); | ||
} | ||
|
||
module.exports = drizzleTask; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.