-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to bash for v1/init, see phetsims/chipper#1345
- Loading branch information
Showing
3 changed files
with
38 additions
and
225 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,36 @@ | ||
#!/bin/bash | ||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# Install root NPM dependencies | ||
npm install | ||
|
||
# Clone missing repositories | ||
./bin/clone-missing-repos.sh | ||
|
||
# Checkout the desired branch TODO: Change to phetsims-v1 | ||
./bin/checkout-branch.sh main | ||
|
||
# Install NPM dependencies in 'perennial-alias' | ||
cd ../perennial-alias | ||
npm install | ||
|
||
# Install NPM dependencies in 'chipper' | ||
cd ../chipper | ||
npm install | ||
|
||
# Start transpiler and HTTP server concurrently | ||
# Using & to run them in the background | ||
../perennial-alias/bin/sage run js/grunt/tasks/transpile.ts --live & # Start transpiler | ||
|
||
# TODO: change to perennial | ||
cd ../perennial-alias | ||
npx http-server ../ -p 80 -c --silent & # Start HTTP server | ||
|
||
echo "######################################################" | ||
echo "# Ready! Open http://localhost/phetmarks in your browser. Transpiler will output below." | ||
echo "######################################################" | ||
|
||
# Wait for both background processes to keep the script running | ||
wait |
This file was deleted.
Oops, something went wrong.
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