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

build: use wireit, npm-run-all2 for build & watch #53

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Conversation

pastelmind
Copy link
Collaborator

Use wireit to specify dependency relationships between build scripts of each package, cache build outputs, incrementally rebuild scripts, and watch for changes.

Furthermore, use npm-run-all2 to run Vite and wireit in watch mode for @webtoon/psd-example-browser and @webtoon/psd-benchmark. This is needed because wireit currently does not support "service" scripts. (see: google/wireit#33)

Using wireit and npm-run-all2 makes our development NPM scripts (e.g. npm run start:browser) more reliable. The scripts now "just work" in a fresh local clone of the repo, and do not require arbitrary sleep calls or polling delays to properly rebuild multiple packages.

Since wireit and npm-run-all2 handle our build orchestration, we can remove packages like rollup-plugin-shell, rollup-plugin-watcher, and nodedev that we previously used for watching the filesystem and running build tools.

Resolves #28

Use wireit to specify dependency relationships between build scripts of
each package, cache build outputs, incrementally rebuild scripts, and
watch for changes.

Furthermore, use npm-run-all2 to run Vite and wireit in watch mode for
@webtoon/psd-example-browser and @webtoon/psd-benchmark. This is needed
because wireit currently does not support "service" scripts.
(see: google/wireit#33)

Using wireit and npm-run-all2 makes our development NPM scripts (e.g.
`npm run start:browser`) more reliable. The scripts now "just work" in a
fresh local clone of the repo, and do not require arbitrary `sleep`
calls or polling delays to properly rebuild multiple packages.

Since wireit and npm-run-all2 handle our build orchestration, we can
remove packages like rollup-plugin-shell, rollup-plugin-watcher, and
nodedev that we previously used for watching the filesystem and running
build tools.
@pastelmind pastelmind added the type: maintenance General maintenance label Sep 30, 2022
@pastelmind pastelmind self-assigned this Sep 30, 2022
@pastelmind pastelmind merged commit bb0339c into main Sep 30, 2022
@pastelmind pastelmind deleted the build-wireit branch September 30, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance General maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate tools for build orchestration in monorepo
1 participant