Skip to content

Commit

Permalink
feat(repo): add update-playground script (#2433)
Browse files Browse the repository at this point in the history
After creating a new playground, you can now run `yarn update-playground` to update with the latest
changes to NX without deleting and recreating the whole playground
  • Loading branch information
rarmatei committed Feb 5, 2020
1 parent c27b33a commit 305cd42
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -12,6 +12,7 @@
"e2e": "./scripts/e2e.sh",
"e2e-rerun": "./scripts/e2e-rerun.sh",
"create-playground": "./scripts/e2e.sh create-playground",
"update-playground": "./scripts/update-playground.sh",
"e2e-ci1": "./scripts/e2e-ci1.sh",
"e2e-ci2": "./scripts/e2e-ci2.sh",
"format": "./scripts/format.sh",
Expand Down
13 changes: 13 additions & 0 deletions scripts/update-playground.sh
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

./scripts/build.sh

echo 'Updating all playground projects...'

# Update NX playground
rm -rf tmp/nx/proj/node_modules/@nrwl
cp -r build/packages tmp/nx/proj/node_modules/@nrwl

# Update Angular playground
rm -rf tmp/angular/proj/node_modules/@nrwl
cp -r build/packages tmp/angular/proj/node_modules/@nrwl

0 comments on commit 305cd42

Please sign in to comment.