Skip to content

Commit

Permalink
build(deps-dev): replace nodemon with native watch (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed May 14, 2024
1 parent 7ed5065 commit 4f742c2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 148 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Remove dev values from package.json and package-lock.json
run: |
npm pkg delete commitlint devDependencies jest nodemonConfig scripts
npm pkg delete commitlint devDependencies jest scripts
npm pkg set scripts.start="node ."
npm i --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /usr/app/tmp
COPY package.json .
COPY package-lock.json .
RUN npm ci --ignore-scripts --omit=dev && \
npm pkg delete commitlint devDependencies jest nodemonConfig scripts && \
npm pkg delete commitlint devDependencies jest scripts && \
npm cache clean --force && \
chmod 100 ./node_modules/htmltidy2/bin/linux64/tidy && \
# Remove included Windows and macOS binaries
Expand Down
129 changes: 0 additions & 129 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:prettier:fix": "prettier . -w -u",
"prepare": "husky && npx playwright install firefox --with-deps",
"start": "node .",
"start:dev": "nodemon src/app.js | pino-pretty",
"start:dev": "node --watch src/app.js | pino-pretty",
"test": "npm run lint && npm run lint:prettier && npm run jest"
},
"commitlint": {
Expand Down Expand Up @@ -62,18 +62,6 @@
"testEnvironment": "node",
"testTimeout": 60000
},
"nodemonConfig": {
"env": {
"NODE_ENV": "development"
},
"ignore": [
"src/temp"
],
"watch": [
".env",
"src/**/!(*.test).*"
]
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
Expand All @@ -95,7 +83,6 @@
"jest": "^29.7.0",
"license-checker": "^25.0.1",
"lockfile-lint": "^4.13.2",
"nodemon": "^3.1.0",
"pino-pretty": "^11.0.0",
"playwright": "^1.44.0",
"prettier": "^3.2.5",
Expand Down
3 changes: 0 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ async function main() {
});

const config = await getConfig();

console.log(config.tempDir);

const server = Fastify(config.fastifyInit);
await server.register(startServer, config).listen(config.fastify);

Expand Down

0 comments on commit 4f742c2

Please sign in to comment.