Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 4bdc91d

Browse files
committed
update packages, move husky to top level
1 parent 9384c2b commit 4bdc91d

File tree

4 files changed

+244
-2079
lines changed

4 files changed

+244
-2079
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "developer-dao-website",
3-
"version": "1.0.0",
3+
"author": "Developer DAO",
4+
"version": "2.0.1",
45
"private": true,
56
"license": "MIT",
67
"workspaces": [
@@ -15,6 +16,11 @@
1516
"run-cms": "yarn --cwd packages/cms start"
1617
},
1718
"devDependencies": {
18-
"turbo": "^1.4.2"
19+
"turbo": "^1.4.2",
20+
"husky": "^8.0.1",
21+
"lint-staged": "^13.0.3"
22+
},
23+
"lint-staged": {
24+
"*.{js,jsx,ts,tsx,json,md,html,graphql}": "prettier --write"
1925
}
2026
}

packages/frontend/package.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@
1111
"@fontsource/inter": "^4.5.0",
1212
"@fontsource/source-code-pro": "^4.5.0",
1313
"@react-hook/window-size": "^3.0.7",
14-
"@testing-library/jest-dom": "^5.11.4",
15-
"@testing-library/react": "^11.1.0",
16-
"@testing-library/user-event": "^12.1.10",
1714
"framer-motion": "^4",
1815
"graphql": "^16.5.0",
19-
"jest": "^27.2.0",
2016
"next": "12.2.2",
2117
"next-i18next": "^8.8.0",
2218
"react": "^17.0.2",
@@ -31,20 +27,14 @@
3127
"build": "next build",
3228
"dev": "next dev",
3329
"lint": "next lint",
34-
"e2e": "cypress run",
35-
"e2e:watch": "cypress open",
3630
"fmt": "prettier --write **/*.js",
37-
"prepare": "husky install",
3831
"contributors:add": "all-contributors add",
3932
"contributors:generate": "all-contributors generate",
40-
"type-check": "tsc --noEmit",
41-
"test": "jest",
42-
"test:watch": "jest --watch --detectOpenHandles"
33+
"type-check": "tsc --noEmit"
4334
},
4435
"eslintConfig": {
4536
"extends": [
4637
"react-app",
47-
"react-app/jest",
4838
"prettier"
4939
]
5040
},
@@ -64,19 +54,13 @@
6454
"@testing-library/cypress": "^8.0.1",
6555
"@testing-library/react-hooks": "^7.0.2",
6656
"all-contributors-cli": "^6.20.0",
67-
"cypress": "^8.4.1",
6857
"eslint": "^7.32.0",
6958
"eslint-config-next": "11.1.2",
7059
"eslint-config-prettier": "^8.3.0",
7160
"eslint-plugin-prettier": "^4.0.0",
7261
"eslint-plugin-react": "^7.25.1",
73-
"husky": "^7.0.2",
74-
"lint-staged": "^11.1.2",
7562
"prettier": "2.3.2",
7663
"typechain": "^6.0.2",
7764
"typescript": "^4.4.3"
78-
},
79-
"lint-staged": {
80-
"*.{js,jsx,ts,tsx,json,md,html,graphql}": "prettier --write"
8165
}
8266
}

0 commit comments

Comments
 (0)