Skip to content

Commit

Permalink
Merge pull request #70 from ethdebug/start-script
Browse files Browse the repository at this point in the history
Allow `yarn start --no-open`
  • Loading branch information
gnidan authored Jan 9, 2024
2 parents 6949263 + 53e6c53 commit 54fe373
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions bin/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env sh

# Check if the --no-open flag is provided
if [[ " $* " == *" --no-open "* ]]; then
NO_OPEN_FLAG="--no-open"
else
NO_OPEN_FLAG=""
fi

# Run the commands with concurrently
concurrently --names=format,web,jest \
"cd ./packages/format && yarn watch" \
"cd ./packages/web && yarn start $NO_OPEN_FLAG" \
"yarn test --watch"

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"scripts": {
"test": "node --experimental-vm-modules ./node_modules/.bin/jest",
"start": "concurrently --names=format,web,jest \"cd ./packages/format && yarn watch\" \"cd ./packages/web && yarn start\" \"yarn test --watch\"",
"start": "./bin/start",
"postinstall": "lerna run prepare"
},
"devDependencies": {
Expand Down

0 comments on commit 54fe373

Please sign in to comment.