Skip to content

Commit

Permalink
use npm run all (#195)
Browse files Browse the repository at this point in the history
Uses `npm-run-all` so that it's easier to read the log messages
  • Loading branch information
codemonkey800 authored Dec 1, 2023
1 parent 2996eb5 commit 69f3b03
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 26 deletions.
5 changes: 3 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"preinstall": "npx only-allow pnpm",
"build": "pnpm -r build",
"clean": "pnpm -r clean",
"clean:modules": "pnpm '/clean:modules:.*/'",
"clean:modules": "run-p -l 'clean:modules:*'",
"clean:modules:root": "rm -rf node_modules",
"clean:modules:packages": "pnpm -r clean:modules",
"data-portal": "pnpm --filter data-portal",
Expand All @@ -14,6 +14,7 @@
"test": "pnpm -r test"
},
"devDependencies": {
"prettier": "^3.0.3"
"prettier": "^3.0.3",
"npm-run-all": "^4.1.5"
}
}
8 changes: 4 additions & 4 deletions frontend/packages/data-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "pnpm --workspace-concurrency=1 '/build:.*/'",
"build": "run-s -l 'build:*'",
"build:codegen": "graphql-codegen",
"build:tcm": "tcm -p 'app/**/*.module.css'",
"build:remix": "remix build",
"clean": "rm -rf build public/build .cache/ node_modules/.cache/ app/__generated__/",
"clean:modules": "rm -rf node_modules",
"dev": "pnpm build:codegen && pnpm '/dev:.*/'",
"dev": "pnpm build:codegen && run-p -l 'dev:*'",
"dev:codegen": "pnpm build:codegen -w",
"dev:remix": "remix dev --manual -c 'node --loader ts-node/esm --watch-path server.ts --watch server.ts'",
"dev:tcm": "pnpm build:tcm -w",
"lint": "pnpm build:codegen && pnpm '/lint:(?!fix|.*:fix)/'",
"lint:fix": "pnpm '/lint:.*:fix/'",
"lint": "pnpm build:codegen && run-p -l 'lint:!(fix)'",
"lint:fix": "run-p -l 'lint:*:fix'",
"lint:eslint": "eslint --report-unused-disable-directives --max-warnings 0 .",
"lint:eslint:fix": "pnpm lint:eslint --fix",
"lint:prettier": "prettier -c .",
Expand Down
Loading

0 comments on commit 69f3b03

Please sign in to comment.