-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#4048) The more packages our repo accumulates, the slower building gets. When we're actively working on a particular task, though, what we actually need to build is only a subset of what running `yarn:build` at the top level of the repo gets us. Specifically, we generally don't need CDN bundles, and we don't need any non-core ("core" in the English sense, not the `@sentry/core` sense) packages other than the one we're working on. This introduces three new top-level yarn scripts:, `build:dev`, `build:dev:filter`, and `build:dev:watch`. The first is the same as `build`, except it doesn't build any CDN bundles. The second takes an argument, the name of a particular package, and only builds packages related to it - it, its dependents, and its dependencies. The third is the first, but in watch mode. It doesn't bother with filtering because incremental builds are so fast that the filtering really doesn't gain you much. It also does some cleanup and standardization of the `scripts` entry of all of the `package.json` files in the repo - it alphabetizes the options, gets rid of the unused `build:dist` synonym of `build:es5` which exists only in the browser package and isn't used anywhere, and moves the `:watch` suffix last in all script names with three parts (as was the case in some packages but not others). A sampling of the time savings when using the new options: `yarn build`: 190 sec `yarn build:dev`: 89 sec `yarn build:dev:filter @sentry/angular`: 27 sec `yarn build:dev:filter @sentry/ember`: 30 sec `yarn build:dev:filter @sentry/gatsby`: 40 sec `yarn build:dev:filter @sentry/nextjs`: 50 sec `yarn build:dev:filter @sentry/node`: 64 sec `yarn build:dev:filter @sentry/react`: 54 sec `yarn build:dev:filter @sentry/serverless`: 48 sec `yarn build:dev:filter @sentry/tracing`: 70 sec `yarn build:dev:filter @sentry/vue`: 28 sec `yarn build:dev:filter @sentry/wasm`: 27 sec
- Loading branch information
1 parent
597ed4a
commit e82a9bc
Showing
18 changed files
with
210 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.