-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
37 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: Cleaning packages | ||
title: Clean | ||
sidebar_label: clean | ||
--- | ||
|
||
|
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,28 @@ | ||
--- | ||
title: Pack | ||
sidebar_label: pack | ||
--- | ||
|
||
The `pack` command is a multi-step pre-release solution for preparing packages for distribution. | ||
When ran, it begins by [cleaning workspaces](./clean.md), then [building all packages](./build.md), | ||
and finally [validating all packages](./validate.md) before a release. | ||
|
||
If any of the steps fail, a non-zero exit code will be triggered, allowing the release cycle to be | ||
aborted. | ||
|
||
```json title="package.json" | ||
{ | ||
"scripts": { | ||
"pack": "NODE_ENV=production packemon pack --addEngines --generateDeclaration=api", | ||
"release": "yarn run pack && yarn publish" | ||
} | ||
} | ||
``` | ||
|
||
> When releasing, be sure to set `NODE_ENV` to production to remove all development and testing | ||
> configuration settings. | ||
## Options | ||
|
||
Pack supports all the same command line options as [`build`](./build.md). The validation step cannot | ||
be customized and will vaidate _everything_ by default. |
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