chore(build): more local tsc build #862
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a more localized build setup to the jco package
The jco project now has a tsc script that compiles the project it belongs to. The root project now calls this script.
Also it uses the
--build
flag wich results in atsconfig.tsbuildinfo
file that will speed up repeated builds by only building the files that changed.This is a way to a cleaner and easier to understand build architecture. Every project contains everything it needs to build itself, including tasks that can be used to build the project. This PR provides a missing task (tsc) for the jco project. Now we have a way of executing project local tasks in a generic way per environment (in this case, the npm environment).
Then there is a root build system, xtask in our case, that executes those tasks in the right order. In this case there is a root build tasks that compiles all js repositories. It's a pretty simple task now, it just executes the tsc tasks in all projects (1 at the moment). But this could be more complex in the future.
This is in preparation for moving the codebase to TypeScript, see #717.