This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dillon Bailey <[email protected]>
- Loading branch information
1 parent
12475be
commit 6626413
Showing
10 changed files
with
55 additions
and
46 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
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
const gulp = require('gulp') | ||
const gutil = require('gulp-util') | ||
const log = require('fancy-log') | ||
const colors = require('ansi-colors') | ||
const mergeStream = require('merge-stream') | ||
const path = require('path') | ||
const del = require('del') | ||
|
||
gulp.task('http2-upgrade', function() { | ||
del([path.resolve(process.env.PWD, PATH_CONFIG.src, PATH_CONFIG.stylesheets.src)], { force: true }) | ||
gutil.log(gutil.colors.green('Cleaned stylesheets directory')) | ||
log(colors.green('Cleaned stylesheets directory')) | ||
|
||
const configStream = gulp.src('extras/http2/**/*') | ||
.pipe(gulp.dest(process.env.PWD)) | ||
|
||
const srcStream = gulp.src(['src/stylesheets', 'src/javascripts', 'src/html']) | ||
.pipe(gulp.dest(path.join(process.env.PWD, PATH_CONFIG.src))) | ||
|
||
gutil.log(gutil.colors.green('Created HTTP/2 ready stylesheets directory')) | ||
gutil.log(gutil.colors.green('Added some HTTP/2 helpers to the html directory')) | ||
gutil.log(gutil.colors.green('Created config/path-config.json')) | ||
log(colors.green('Created HTTP/2 ready stylesheets directory')) | ||
log(colors.green('Added some HTTP/2 helpers to the html directory')) | ||
log(colors.green('Created config/path-config.json')) | ||
|
||
return mergeStream(configStream, srcStream) | ||
}) |
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,13 +1,14 @@ | ||
var gulp = require('gulp') | ||
var gutil = require('gulp-util') | ||
var log = require('fancy-log') | ||
var colors = require('ansi-colors') | ||
var path = require('path') | ||
var merge = require('merge-stream') | ||
|
||
gulp.task('init-config', function() { | ||
var configStream = gulp.src(['gulpfile.js/path-config.json', 'gulpfile.js/task-config.js']) | ||
.pipe(gulp.dest(path.join(process.env.PWD, 'config'))) | ||
|
||
gutil.log(gutil.colors.green('Adding default path-config.json and task-config.js files to ./config/')) | ||
log(colors.green('Adding default path-config.json and task-config.js files to ./config/')) | ||
|
||
return configStream | ||
}) |
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