Skip to content

Commit

Permalink
Merge pull request #19 from victor-0x29a/patch/project-scripts
Browse files Browse the repository at this point in the history
Patch: project scripts
  • Loading branch information
victor-0x29a authored Sep 27, 2024
2 parents 735cc8a + ea3a754 commit 0f805e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
package-lock.json
yarn.lock
yarn.lock
dist
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
npm run lint
npm run unit-test
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"scripts": {
"dev": "cross-env NODE_ENV=dev nodemon src/index.ts",
"test": "cross-env NODE_ENV=test jest",
"lint": "eslint . --fix"
"unit-test": "cross-env NODE_ENV=test jest ./src",
"lint": "eslint . --fix",
"build": "sucrase ./src -d ./dist --transforms typescript,imports",
"start": "node ./dist/index.js",
"prepare": "husky"
},
"author": "",
"license": "ISC",
Expand All @@ -24,6 +28,7 @@
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"globals": "^15.1.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
"nodemon": "^3.1.0",
"sucrase": "^3.35.0",
Expand Down

0 comments on commit 0f805e4

Please sign in to comment.