Skip to content

Commit d7db767

Browse files
chore(commitlint): setup commitlint
1 parent ee5c9f5 commit d7db767

File tree

6 files changed

+302
-187
lines changed

6 files changed

+302
-187
lines changed

.czrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
3+
}

.husky/prepare-commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
exec < /dev/tty && node_modules/.bin/cz --hook || true

next.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4-
forceSwcTransforms: true,
54
};
65

76
module.exports = nextConfig;

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "next dev",
77
"start:prod": "next start",
88
"build:next": "next build",
9-
"commit": "commit",
9+
"commit": "cz",
1010
"release": "standard-version",
1111
"build:bin": "tsup ./src/bin/index.ts",
1212
"build": "npm run build:bin && npm run build:next",
@@ -30,7 +30,7 @@
3030
"bin": "./bin/hadmean",
3131
"dependencies": {
3232
"@hadmean/bacteria": "^0.0.5",
33-
"@hadmean/chromista": "^1.0.47",
33+
"@hadmean/chromista": "^1.0.48",
3434
"@hadmean/protozoa": "^1.0.10",
3535
"@types/cryptr": "^4.0.1",
3636
"@types/jsonwebtoken": "^8.5.8",
@@ -68,14 +68,14 @@
6868
"@babel/preset-typescript": "^7.18.6",
6969
"@commitlint/cli": "^17.2.0",
7070
"@commitlint/config-conventional": "^17.2.0",
71-
"@commitlint/prompt-cli": "^17.2.0",
7271
"@hadmean/eslint-config": "^1.0.3",
7372
"@testing-library/jest-dom": "^5.16.4",
7473
"@testing-library/react": "^13.3.0",
7574
"@testing-library/react-hooks": "^8.0.1",
7675
"@testing-library/user-event": "^14.2.1",
7776
"@types/node": "^18.0.0",
7877
"@types/react": "^18.0.9",
78+
"cz-conventional-changelog": "3.3.0",
7979
"eslint": "^8.2.0",
8080
"husky": "^8.0.1",
8181
"isomorphic-fetch": "^3.0.0",

src/backend/dashboard/dashboard.controller.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class DashboardController {
1212
await this._dashboardService.createWidget(widget, dashboardId);
1313
}
1414

15+
// Hello
1516
async updateWidgetList(dashboardId: string, widgetList: string[]) {
1617
await this._dashboardService.updateWidgetList(dashboardId, widgetList);
1718
}

0 commit comments

Comments
 (0)