scripts: add npm build, format and test scripts

in addition to the just tasks, this commit adds npm scripts back,
for convenience.

example taks:
- npm test
- npm test filter.test.js
- npm run build
- npm run format

in yarn it should just work without 'run' i.e. 'yarn build'.
This commit is contained in:
OFF0
2023-04-07 11:08:47 +02:00
committed by fiatjaf_
parent 3bdb68020d
commit 12acd7bdca

View File

@@ -32,6 +32,11 @@
"client", "client",
"nostr" "nostr"
], ],
"scripts": {
"build": "node build",
"format": "prettier --plugin-search-dir . --write .",
"test": "node build && jest"
},
"devDependencies": { "devDependencies": {
"@types/node": "^18.13.0", "@types/node": "^18.13.0",
"@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/eslint-plugin": "^5.51.0",