Skip to content

Instantly share code, notes, and snippets.

@hypeJunction
Last active June 15, 2022 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hypeJunction/55db0382c1e08b3a90593c9989fe906d to your computer and use it in GitHub Desktop.
Save hypeJunction/55db0382c1e08b3a90593c9989fe906d to your computer and use it in GitHub Desktop.
Same react app package.json
{
"name": "@me/package-a",
"scripts": {
"build": "concurrently \"yarn build:ts\" \"yarn build:css\" \"yarn build:assets\"",
"build:ts": "tsc --pretty",
"build:css": "postcss ./src/**/*.css --base ./src -d ./dist",
"build:assets": "mkdir -p ./dist/assets && cp -r ./src/assets ./dist",
"watch": "concurrently \"yarn watch:ts\" \"yarn watch:css\" \"yarn watch:assets\"",
"watch:ts": "chokidar \"src/**/*.ts\" \"src/**/*.tsx\" -c \"yarn build:ts\"",
"watch:css": "chokidar \"src/**/*.css\" -c \"yarn build:css\"",
"watch:assets": "chokidar \"src/assets/**/*\" -c \"yarn build:assets\"",
"test": "jest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment