Skip to content

Commit fc6519e

Browse files
committed
chore(api): replace watchexec with nodemon
1 parent c76a645 commit fc6519e

File tree

3 files changed

+231
-10
lines changed

3 files changed

+231
-10
lines changed

api/Dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@ RUN apt-get update -y && apt-get install -y \
1313
jq \
1414
zstd \
1515
git \
16-
build-essential \
17-
curl
18-
19-
# Install rust toolchain
20-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
21-
ENV PATH="/root/.cargo/bin:${PATH}"
22-
# Install cargo binstall for installing binaries quickly
23-
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | sh && \
24-
cargo binstall watchexec-cli
16+
build-essential
2517

2618
WORKDIR /app
2719

api/package-lock.json

Lines changed: 228 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test": "vitest run --pool=forks",
2323
"coverage": "vitest run --pool=forks --coverage",
2424
"release": "standard-version",
25-
"dev": "watchexec -r --stop-signal SIGKILL --exts ts,gql -i \"{node_modules,dist,dev,.git,coverage}/**\" vite",
25+
"dev": "nodemon --ext ts,gql --ignore \"dist/\" --ignore \"dev/\" --signal SIGKILL --exec \"vite\"",
2626
"container:build": "./scripts/dc.sh build dev",
2727
"container:start": "./scripts/dc.sh run --rm --service-ports dev",
2828
"container:test": "./scripts/dc.sh run --rm builder npm run test",
@@ -166,6 +166,7 @@
166166
"eslint": "^9.14.0",
167167
"graphql-codegen-typescript-validation-schema": "^0.16.0",
168168
"jiti": "^2.4.0",
169+
"nodemon": "^3.1.7",
169170
"rollup-plugin-node-externals": "^7.1.3",
170171
"standard-version": "^9.5.0",
171172
"typescript": "^5.6.3",

0 commit comments

Comments
 (0)