diff --git a/bin/start b/bin/start new file mode 100755 index 00000000..f894af4c --- /dev/null +++ b/bin/start @@ -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" + diff --git a/package.json b/package.json index f4d76b80..c40ad540 100644 --- a/package.json +++ b/package.json @@ -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": {