-
Notifications
You must be signed in to change notification settings - Fork 658
feat: add install script #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zifeo
wants to merge
1
commit into
plasmicapp:master
Choose a base branch
from
zifeo:install-script
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,60 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -e | ||
|
|
||
| yarn install --frozen-lockfile | ||
|
|
||
| for dir in packages/*; do | ||
| echo "Installing... $dir" | ||
| pushd "$dir" | ||
| yarn install --frozen-lockfile | ||
| popd | ||
| echo "Done..." | ||
| echo "" | ||
| done | ||
|
|
||
| for dir in platform/*; do | ||
| echo "Installing... $dir" | ||
| pushd "$dir" | ||
| yarn install --frozen-lockfile | ||
| if [ -d "internal_pkgs" ]; then | ||
| for subdir in internal_pkgs/*; do | ||
| pushd "$subdir" | ||
| yarn install --frozen-lockfile | ||
| if [ "$(jq -r '.scripts.build' package.json)" != "null" ]; then | ||
| NODE_ENV=production yarn build | ||
| fi | ||
| popd | ||
| done | ||
| fi | ||
| popd | ||
| echo "Done..." | ||
| echo "" | ||
| done | ||
|
|
||
| NX_REJECT_UNKNOWN_LOCAL_CACHE=0 yarn nx run-many --target=build --verbose | ||
|
|
||
| for dir in platform/*; do | ||
| if [ "$dir" == "platform/wab" ]; then | ||
| continue | ||
| fi | ||
| echo "Building... $dir" | ||
| pushd platform/"$dir" | ||
| if [ -f package.json ]; then | ||
| if [ "\$(jq -r '.scripts.build' package.json)" != "null" ]; then | ||
| NODE_ENV=production yarn build | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get the following error at this line: Building... platform/integration-tests
~/Development/plasmic/platform/integration-tests ~/Development/plasmic
yarn run v1.22.22
error Command "build" not found.I think this should be changed to remove the backslash on line 44, ie: if [ -f package.json ]; then
if [ "$(jq -r '.scripts.build' package.json)" != "null" ]; then
NODE_ENV=production yarn build |
||
| fi | ||
| fi | ||
| popd | ||
| echo "Done..." | ||
| echo "" | ||
| done | ||
|
|
||
| pushd platform/wab | ||
| make | ||
| NODE_ENV=production yarn build-css | ||
| export PUBLIC_URL="${PUBLIC_URL:-http://localhost:3003}" | ||
| echo "Building... wab for $PUBLIC_URL" | ||
| NODE_ENV=production yarn build | ||
| echo "Done..." | ||
| popd | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got an error at this line:
Since
$dirwill already be prefixed with"platform/", I think this should be changed to: