forked from plasmicapp/plasmic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nx] Upgrade lerna version, now powered by nx
Add local-publish script that rebuilds and publishes only the subset of packages required for your target package. Backed by nx so build outputs are cached if no changes! Change-Id: I490a90d67b3e936c9e9d3edc68f75557606c02ac
- Loading branch information
Showing
7 changed files
with
1,611 additions
and
1,083 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 @@ | ||
dist |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": ["build", "test"] | ||
} | ||
} | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": ["^build"] | ||
}, | ||
"publish": { | ||
"dependsOn": "build" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#/bin/bash | ||
|
||
pkg=$1 | ||
|
||
echo "Locally publishing $pkg" | ||
|
||
# First, locally unpublish | ||
./node_modules/.bin/lerna exec --loglevel=silent --scope "$pkg" --include-dependencies -- npm --registry=http://localhost:4873 unpublish -f "${LERNA_PACKAGE_NAME}" | ||
|
||
# Next, build the packages using nx | ||
./node_modules/.bin/lerna exec --loglevel=silent --scope "$pkg" --include-dependencies -- yarn nx build | ||
|
||
# Finally, locally publish, skipping the build step | ||
export PREPARE_NO_BUILD=true | ||
./node_modules/.bin/lerna exec --loglevel=silent --scope "$pkg" --include-dependencies -- npm publish --registry=http://localhost:4873 | ||
|
||
unset PREPARE_NO_BUILD |
Oops, something went wrong.