Skip to content

Commit

Permalink
chore: setup project with linting, formatting, testing, and build scr…
Browse files Browse the repository at this point in the history
…ipts
  • Loading branch information
totallynotdavid committed Oct 5, 2024
1 parent d334eb9 commit 6110908
Show file tree
Hide file tree
Showing 3 changed files with 374 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged
41 changes: 34 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,35 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"build": "pnpm run lint && pnpm run prettier && tsc",
"dev": "ts-node -r tsconfig-paths/register src/dev.ts",
"clean": "shx rm -rf dist node_modules pnpm-lock.yaml",
"clean": "shx rm -rf dist",
"lint": "eslint --fix --color src/**/*.ts",
"prettier": "prettier --write src/**/*.ts"
"prettier": "prettier --write src/**/*.ts",
"prepublishOnly": "pnpm run build && pnpm pack --dry-run",
"prepare": "husky install"
},
"keywords": [
"google-drive",
"file-manager"
"file-manager",
"search",
"download"
],
"author": "David Duran <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/totallynotdavid/gdrivevault.git"
},
"bugs": {
"url": "https://github.com/totallynotdavid/gdrivevault/issues"
},
"homepage": "https://github.com/totallynotdavid/gdrivevault#readme",
"files": [
"dist",
"README.md",
"LICENSE"
],
"dependencies": {
"@google-cloud/local-auth": "^3.0.1",
"google-auth-library": "^9.14.1",
Expand All @@ -32,14 +49,24 @@
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^3.3.3",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0"
},
"files": [
"dist"
]
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
}
}
Loading

0 comments on commit 6110908

Please sign in to comment.