Skip to content

Commit

Permalink
refactor: remove duplication in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyachowski committed Dec 14, 2023
1 parent a5156f7 commit f78b0c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
install:
npm ci
bot:
bin/bot.js
dev:
nodemon --env-file=.env src/index.js
dev-bot:
nodemon --env-file=.env bin/bot.js
start:
node --env-file=.env src/index.js
start-bot:
node --env-file=.env bin/bot.js
publish:
npm publish --dry-run
test:
npm run test
dev:
npm run dev
lint:
npx eslint .
lint-fix:
npx eslint . --fix
npx eslint --fix . && prettier --write \"bin/**/*.js\"
test-coverage:
npm test -- --coverage --coverageProvider=v8
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@
"node": ">=21.1.0"
},
"scripts": {
"test": "npx jest --detectOpenHandles --env-file=.env",
"lint": "eslint .",
"lint:fix": "eslint --fix . && prettier --write \"bin/**/*.js\"",
"start": "node --env-file=.env src/index.js",
"start:bot": "node --env-file=.env bin/bot.js",
"dev": "nodemon --env-file=.env"
"test": "npx jest --detectOpenHandles --env-file=.env"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit f78b0c5

Please sign in to comment.