File tree Expand file tree Collapse file tree 2 files changed +30
-10
lines changed Expand file tree Collapse file tree 2 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 7070 "postTargets" : [" ngx-deploy-npm:deploy" ],
7171 "versionTagPrefix" : " v"
7272 }
73+ },
74+ "yalc-it" : {
75+ "executor" : " nx:run-commands" ,
76+ "options" : {
77+ "command" : " cd dist/packages/ngx-deploy-npm && npx --yes yalc publish"
78+ },
79+ "dependsOn" : [" build" ]
80+ },
81+ "create-nx-workspace" : {
82+ "executor" : " nx:run-commands" ,
83+ "outputs" : [" {workspaceRoot}/tmp/nx-workspace" ],
84+ "options" : {
85+ "command" : " ./tools/create-nx-workspace.sh"
86+ },
87+ "dependsOn" : [" yalc-it" ]
7388 }
7489 },
7590 "tags" : []
Original file line number Diff line number Diff line change 22
33set -e
44
5+ version=" ${1:- latest} "
6+
57mkdir -p tmp
68cd tmp
79
810# Delete the previous workspace
911rm -Rif nx-workspace
1012
11- npx create-nx-workspace --version
13+ npx --yes create-nx-workspace@ $version --version
1214
13- echo " Create Nx Workspace"
14- npx create-nx-workspace --packageManager yarn -- name nx-workspace --preset empty --nxCloud false
15+ echo " ----- Create Nx Workspace ----- "
16+ npx create-nx-workspace@ $version --name nx-workspace --preset empty --nxCloud false
1517cd nx-workspace
1618
17- echo " Generate lib"
18- yarn add -D @nrwl/node
19+ echo " NX_WORKSPACE_ROOT_PATH=$( pwd) " > .env
20+
21+ echo " ----- Generate lib -----"
22+ npm add -D @nrwl/node@$version
1923npx nx generate @nrwl/node:lib --name nx-lib --publishable --importPath nx-lib
2024
21- echo " Link ngx-deploy-npm"
22- yarn link ngx-deploy-npm
25+ echo " ----- Link ngx-deploy-npm -----"
26+ npx yalc add ngx-deploy-npm
27+ npm i
2328
24- echo " Add ngx-deploy-npm to the workspace"
29+ echo " ----- Add ngx-deploy-npm to the workspace ----- "
2530npx nx generate ngx-deploy-npm:install
2631
27- echo " Test the build"
28- npx nx deploy nx-lib --dry-run
32+ echo " ----- Test the build ----- "
33+ npx nx deploy nx-lib --dry-run
You can’t perform that action at this time.
0 commit comments