Skip to content

Support project reference builds in gulp builds #25066

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

Merged
merged 10 commits into from
Jun 21, 2018
Merged

Conversation

rbuckton
Copy link
Contributor

@rbuckton rbuckton commented Jun 19, 2018

This restores support for building TypeScript using gulp now that gulp-typescript has minimal support for project references.

This was accomplished using the following changes:

  • Most non-gulp.task related logic has been moved out to individual gulp "plugin" scripts in scripts/build.
  • I've exposed the up-to-date checking logic from src/compiler/tsbuild.ts so that it can be leveraged by scripts/build/upToDate.js.
  • I added scripts/build/project.js, which wraps our project references in a gulp orchestration.

NOTE: I've needed to temporarily disable support for gulp.watch as I still need to clean up/expire changed "projects" from the cache in scripts/build/project.js, but that could happen in a later PR.

Copy link
Member

@RyanCavanaugh RyanCavanaugh left a comment

Choose a reason for hiding this comment

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

Great approach - I'll spend some time later checking over the build script files in more detail but don't want to delay this going in

};
}

if (project === undefined) {
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate block with 1019?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably due to merging master.

@rbuckton
Copy link
Contributor Author

I have some cleanup pending that I'll publish before we merge.

@rbuckton
Copy link
Contributor Author

There are also a number of unexpected differences in the LKG I want to look at before we take this as well.

@rbuckton rbuckton merged commit e200e68 into master Jun 21, 2018
@rbuckton rbuckton deleted the gulpProjectRefs branch June 21, 2018 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants