-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This PR adds a feature to let modular build workspaces as libraries (as opposed to apps). It uses rollup to generate commonjs and esm builds of the workspace it's pointing to (based on the `main` field in the workspace's `package.json`), and then generates typescript typings for the same. It then generates a publishable folder under `dist/<workspace name>`, with a modified `package.json` that points to these built versions of the files. The folder will also contain any other files specified by the `files` field, and/or `.npmignore` in the workspace. This is a port of the script we used internally at JPM for the same, and makes it a first class feature for modular. It's fast and works fairly well. * optionally preserve module structure, better messaging, tests, miscellaneous * parallel builds, and move app builds to /dist/<app-name> * puppeteer is now in optionalDependencies, and we don't pass globals to rollup's globals anymore. * prettier files * order extensions * lazily import the build script to defer top level side effects * make sure build is run from a modular project root Co-authored-by: Sunil Pai <sunil.pai@jpmorgan.com> Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com> Co-authored-by: Luke Sheard <luke.sheard@jpmorgan.com>
- Loading branch information
1 parent
8fcd4ee
commit 33649d2
Showing
9 changed files
with
1,228 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'modular-scripts': minor | ||
--- | ||
|
||
modular build `<library>` |
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.