mirror of
https://example.com
synced 2024-11-25 00:16:38 +09:00
dev: build backend-rs and firefish-js at first
these modules are imported by other modules
This commit is contained in:
parent
01e8ae37f8
commit
631a1d1d8e
2 changed files with 4 additions and 3 deletions
|
@ -51,7 +51,8 @@ ENV VERSION=${VERSION}
|
||||||
RUN pnpm pkg set version="${VERSION}"
|
RUN pnpm pkg set version="${VERSION}"
|
||||||
|
|
||||||
# Compile
|
# Compile
|
||||||
RUN env NODE_ENV=production sh -c "pnpm run --filter '!backend-rs' build && pnpm run gulp"
|
RUN env NODE_ENV=production sh -c "pnpm --filter 'firefish-js' run build"
|
||||||
|
RUN env NODE_ENV=production sh -c "pnpm --filter '!backend-rs' --filter '!firefish-js' -r --parallel run build && pnpm run gulp"
|
||||||
|
|
||||||
# Trim down the dependencies to only those for production
|
# Trim down the dependencies to only those for production
|
||||||
RUN pnpm install --prod --frozen-lockfile
|
RUN pnpm install --prod --frozen-lockfile
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"rebuild": "pnpm run clean && pnpm run build",
|
"rebuild": "pnpm run clean && pnpm run build",
|
||||||
"build": "pnpm --filter firefish-js run build && pnpm --filter !firefish-js -r --parallel run build && pnpm run gulp",
|
"build": "pnpm --filter backend-rs run build && pnpm --filter firefish-js run build && pnpm --filter !firefish-js --filter !backend-rs -r --parallel run build && pnpm run gulp",
|
||||||
"start": "pnpm --filter backend run start",
|
"start": "pnpm --filter backend run start",
|
||||||
"start:container": "pnpm run gulp && pnpm run migrate && pnpm run start",
|
"start:container": "pnpm run gulp && pnpm run migrate && pnpm run start",
|
||||||
"init": "pnpm run migrate",
|
"init": "pnpm run migrate",
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"dev:staging": "NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=development pnpm run build && pnpm run start",
|
"dev:staging": "NODE_OPTIONS=--max_old_space_size=3072 NODE_ENV=development pnpm run build && pnpm run start",
|
||||||
"lint": "pnpm -r --parallel run lint",
|
"lint": "pnpm -r --parallel run lint",
|
||||||
"debug": "pnpm run build:debug && pnpm run start",
|
"debug": "pnpm run build:debug && pnpm run start",
|
||||||
"build:debug": "pnpm clean && pnpm --filter firefish-js run build:types && pnpm -r --parallel run build:debug && pnpm run gulp",
|
"build:debug": "pnpm clean && pnpm --filter backend-rs run build:debug && pnpm --filter firefish-js run build:debug && pnpm --filter firefish-js run build:types && pnpm --filter !firefish-js --filter !backend-rs -r --parallel run build:debug && pnpm run gulp",
|
||||||
"format": "pnpm -r --parallel run format",
|
"format": "pnpm -r --parallel run format",
|
||||||
"clean": "pnpm node ./scripts/clean-built.mjs",
|
"clean": "pnpm node ./scripts/clean-built.mjs",
|
||||||
"clean-cargo": "pnpm node ./scripts/clean-cargo.mjs",
|
"clean-cargo": "pnpm node ./scripts/clean-cargo.mjs",
|
||||||
|
|
Loading…
Reference in a new issue