Skip to content

Commit 8103e35

Browse files
author
Ruben van Leeuwen
committed
826: Add pre-commit hook used in lib
1 parent 24d8800 commit 8103e35

File tree

2 files changed

+63
-50
lines changed

2 files changed

+63
-50
lines changed

.husky/pre-commit

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
echo "---------- Running TSC ----------"
5+
npm run tsc
6+
7+
echo "---------- Running Linter ----------"
8+
npm run lint
9+
10+
echo "---------- Running Tests ----------"
11+
npm run test

package.json

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,56 @@
11
{
2-
"name": "wfo-ui",
3-
"version": "1.0.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"test": "jest --passWithNoTests",
8-
"tsc": "tsc --noEmit",
9-
"build": "next build",
10-
"start": "next start",
11-
"lint": "next lint"
2+
"name": "wfo-ui",
3+
"version": "1.0.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"test": "jest --passWithNoTests",
8+
"tsc": "tsc --noEmit",
9+
"build": "next build",
10+
"start": "next start",
11+
"lint": "next lint",
12+
"prepare": "husky"
13+
},
14+
"dependencies": {
15+
"@elastic/datemath": "^5.0.3",
16+
"@elastic/eui": "^93.1.1",
17+
"@emotion/css": "^11.11.2",
18+
"@emotion/react": "^11.11.1",
19+
"@orchestrator-ui/orchestrator-ui-components": "*",
20+
"@reduxjs/toolkit": "^2.0.1",
21+
"moment": "^2.29.4",
22+
"next": "^14.0.4",
23+
"next-auth": "^4.24.5",
24+
"next-intl": "^3.4.1",
25+
"next-query-params": "^5.0.0",
26+
"process": "0.11.10",
27+
"prop-types": "^15.8.1",
28+
"react": "^18.2.0",
29+
"react-dom": "^18.2.0",
30+
"react-no-ssr": "^1.1.0",
31+
"react-query": "3.39.3",
32+
"react-redux": "^9.1.0",
33+
"use-query-params": "2.2.1"
34+
},
35+
"devDependencies": {
36+
"@orchestrator-ui/eslint-config-custom": "*",
37+
"@orchestrator-ui/jest-config": "*",
38+
"@orchestrator-ui/tsconfig": "*",
39+
"@testing-library/jest-dom": "^6.2.0",
40+
"@types/node": "^20.10.5",
41+
"@types/react": "^18.2.45",
42+
"@types/react-dom": "^18.2.18",
43+
"@types/react-no-ssr": "^1.1.7",
44+
"esbuild-jest": "^0.5.0",
45+
"husky": "^9.0.11",
46+
"typescript": "^5.3.2"
47+
},
48+
"overrides": {
49+
"@elastic/eui": {
50+
"typescript": "^5.3.2"
1251
},
13-
"dependencies": {
14-
"@elastic/datemath": "^5.0.3",
15-
"@elastic/eui": "^93.1.1",
16-
"@emotion/css": "^11.11.2",
17-
"@emotion/react": "^11.11.1",
18-
"@orchestrator-ui/orchestrator-ui-components": "*",
19-
"@reduxjs/toolkit": "^2.0.1",
20-
"moment": "^2.29.4",
21-
"next": "^14.0.4",
22-
"next-auth": "^4.24.5",
23-
"next-intl": "^3.4.1",
24-
"next-query-params": "^5.0.0",
25-
"process": "0.11.10",
26-
"prop-types": "^15.8.1",
27-
"react": "^18.2.0",
28-
"react-dom": "^18.2.0",
29-
"react-no-ssr": "^1.1.0",
30-
"react-query": "3.39.3",
31-
"react-redux": "^9.1.0",
32-
"use-query-params": "2.2.1"
33-
},
34-
"devDependencies": {
35-
"@orchestrator-ui/eslint-config-custom": "*",
36-
"@orchestrator-ui/jest-config": "*",
37-
"@orchestrator-ui/tsconfig": "*",
38-
"@testing-library/jest-dom": "^6.2.0",
39-
"@types/node": "^20.10.5",
40-
"@types/react": "^18.2.45",
41-
"@types/react-dom": "^18.2.18",
42-
"@types/react-no-ssr": "^1.1.7",
43-
"esbuild-jest": "^0.5.0",
44-
"typescript": "^5.3.2"
45-
},
46-
"overrides": {
47-
"@elastic/eui": {
48-
"typescript": "^5.3.2"
49-
},
50-
"react-no-ssr": {
51-
"react": "^18.2.0"
52-
}
52+
"react-no-ssr": {
53+
"react": "^18.2.0"
5354
}
55+
}
5456
}

0 commit comments

Comments
 (0)