-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor gulp build code #589
Conversation
(replaced by globs)
use `projects.map()` to build array once and avoid duplicating strings
gulp/index.js
Outdated
@@ -8,27 +8,10 @@ const plugins = require("gulp-load-plugins")(); | |||
const assign = require("lodash/assign"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused import?
…or-gulp Conflicts: gulp/util/karma-config.js
fe57c2d
to
622bb7e
Compare
refactor away from the taskNames map pattern.
I have an even sweeter refactor ready to go on top of this that hopefully resolves a lot of the ambient pain with this gulp build by making things much more explicit. But I'd like to open that as a separate review, so let's please get this one reviewed ASAP cuz it's still got some good relevant cleanup (like removing all those obsolete |
@@ -111,5 +33,7 @@ module.exports = (gulp, plugins, blueprint) => { | |||
}); | |||
}); | |||
|
|||
gulp.task("karma", (done) => rs(...blueprint.taskMapper("karma", "karma-"), done)); | |||
// running in sequence so output is human-friendly | |||
// (in parallel, all suites get interspersed and it's a mess) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for another PR: try running expensive parallel tasks in separate CircleCI containers
gulp/util/task.js
Outdated
@@ -1,3 +1,6 @@ | |||
/* | |||
* Copyright 2015 Palantir Technologies, Inc. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016?
gulp/util/karma-config.js
Outdated
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2015 Palantir Technologies, Inc. All rights reserved. | |||
* Copyright 2017 Palantir Technologies, Inc. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016?
move blueprint to the beginning so it's like two key libraries, then a mess of auxiliary plugins all at once. also now it's alphabetized 👌
replaced by lerna in scripts/prepRelease.sh
pushed some last-minute tweaks that came up in my other feature work but make sense to get in here. review the last few commits individually for best results. |
decided to give the gulp code a little polishing ✨
getTypescriptSources
(replaced by globs)blueprint.dest()
: unnecessary complexityblueprint.taskMapper()
: useprojects.map()
to build array once and avoid duplicating strings