Skip to content
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

Ensure that incremental builds work with 'gulp build'. #5561

Merged
merged 1 commit into from
Mar 28, 2017

Conversation

loganfsmyth
Copy link
Member

Q A
Patch: Bug Fix? N
Major: Breaking Change? N
Minor: New Feature? N
Deprecations?
Spec Compliancy?
Tests Added/Pass?
Fixed Tickets
License MIT
Doc PR
Dependency Changes

@mention-bot
Copy link

@loganfsmyth, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hzoo and @bcoe to be potential reviewers.

} else {
srcEx = new RegExp("(packages/[^/]+)/src/");
libFragment = "$1/lib/";
function swapSrcWithLib(srcPath) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These regexes were gross, so figured this would be easier to follow.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol much easier 😄

gulp.task("default", ["build"]);

gulp.task("build", function () {
return gulp.src(scripts)
return gulp.src(scripts, { base: base })
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the core of the problem, we weren't setting a base, so all the filepaths were babel-core/src/index.js, and the regexes all expected the path to start with packages.

.pipe(through.obj(function (file, enc, callback) {
gutil.log("Compiling", "'" + chalk.cyan(file.path) + "'...");
gutil.log("Compiling", "'" + chalk.cyan(file.relative) + "'...");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I just changed since it seems easier to read.

@loganfsmyth loganfsmyth merged commit d349734 into babel:7.0 Mar 28, 2017
@loganfsmyth loganfsmyth deleted the fix-incremental-build branch March 28, 2017 22:18
@existentialism
Copy link
Member

Nice work!

@existentialism existentialism added the PR: Internal 🏠 A type of pull request used for our changelog categories label Apr 5, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants