Skip to content
Permalink
Browse files

feat(gulp 4): boost performance by upgrading the build to use gulp 4

BREAKING CHANGE:
Probably won't affect anyone.
This breaking change only applies to people using gulp <= v3 and rapid-build in there own gulp file or gulp tasks, not via the cli.

To migrate, upgrade your gulp to version 4.

Find gulp 4 breaking changes here:
v4 changelog: https://git.io/vdgze
  • Loading branch information
jyounce committed Oct 9, 2017
1 parent 117372f commit d1fc1d4c6fd2db1abaec1307d20cd7de48f1d0d5
@@ -1,13 +1,13 @@
--------------------------
FIX BEFORE UPDATING (v0.x)
--------------------------
Package Current Upgrade Failure
------- ------- ---------------
coffee-script 1.10.0 (errors when creating build lib)
find-port 1.0.1 (api changed)
gulp-angular-templatecache 1.9.1 (only supports node v4.2.x)
gulp-bless 3.0.1 (test fails)
gulp-typescript 2.13.6 (filter method was removed)
jasmine 2.5.1 (test results report shows twice)
postcss-import 7.1.3 (sync mode was removed)
tar 2.2.1 (breaking changes not documented and getting error, have to newup something)
Package Current Upgrade Failure
------- ------- ---------------
1. coffee-script 1.10.0 (errors when creating build lib)
2. find-port 1.0.1 (api changed)
3. gulp-angular-templatecache 1.9.1 (only supports node v4.2.x)
4. gulp-bless 3.0.1 (test fails)
5. gulp-typescript 2.13.6 (filter method was removed)
6. jasmine 2.5.1 (test results report shows twice)
7. postcss-import 7.1.3 (sync mode was removed)
8. tar 2.2.1 (breaking changes not documented and getting error, have to newup something)
@@ -0,0 +1,23 @@
-------------------------------
BUILD'S CUSTOM PROCESS ENV VARS
-------------------------------
Type: string
Format: process.env.RB_{X}
-------------------------------
Value Formats:
• First value is default.
• RB_MODE:
◦ optionally stacks
◦ example: prod[:server] = prod | prod:server
• RB_TEST_OPTIONS
◦ must have at least 1 option
◦ and start with 'options:' then optionally stacks
----------------------------------------------------
Var Bin Src Test Value
--- --- --- ---- -----
1. RB_LIB ✔ ✔ ✔ lib | src
2. RB_MODE ✔ default | dev[:test[:client|:server]] | prod[:server|:test[:client|:server]] | test[:client|:server]
3. RB_MODE_OVERRIDE ✔ ✔ same as RB_MODE
4. RB_TEST ✔ undefined | true
5. RB_TEST_WATCH ✔ same as RB_TEST
6. RB_TEST_OPTIONS ✔ options:*|:opt[:opt]...
@@ -7,5 +7,7 @@ module.exports = ->
attn: ['cyan', 'bold']
error: ['red', 'bold']
info: 'cyan'
minor: 'gray'
success: ['green', 'bold']
warn: 'magenta'
colors
@@ -16,12 +16,12 @@ module.exports = function() {
var gulp, options;
if (arguments.length) {
var getGulp = function(args) {
if (!!args[0].seq) return args[0]
else if (!!args[1] && !!args[1].seq) return args[1]
if (!!args[0].task) return args[0]
else if (!!args[1] && !!args[1].task) return args[1]
}
var getOptions = function(args) {
if (!args[0].seq) return args[0]
else if (!!args[1] && !args[1].seq) return args[1]
if (!args[0].task) return args[0]
else if (!!args[1] && !args[1].task) return args[1]
}
gulp = getGulp(arguments)
options = getOptions(arguments)

0 comments on commit d1fc1d4

Please sign in to comment.
You can’t perform that action at this time.