Skip to content

Commit 954e8f9

Browse files
committed
ci: setup husky and commitlint
1 parent 72b9afd commit 954e8f9

File tree

5 files changed

+1043
-89
lines changed

5 files changed

+1043
-89
lines changed

.githooks/commit-msg

Lines changed: 0 additions & 13 deletions
This file was deleted.

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
pnpm commitlint ${1}

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional']
3+
};

package.json

Lines changed: 75 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,76 @@
11
{
2-
"name": "@indaco/svelte-iconoir",
3-
"version": "6.0.3",
4-
"type": "module",
5-
"packageManager": "pnpm@8.10.1",
6-
"author": "indaco <github@mircoveltri.me>",
7-
"description": "Iconoir SVG icons as Svelte components.",
8-
"license": "MIT",
9-
"keywords": [
10-
"iconoir",
11-
"icons",
12-
"icons-set",
13-
"svelte",
14-
"svelte components",
15-
"sveltekit",
16-
"svg-icons"
17-
],
18-
"repository": {
19-
"type": "git",
20-
"url": "https://github.com/indaco/svelte-iconoir"
21-
},
22-
"bugs": {
23-
"url": "https://github.com/indaco/svelte-iconoir/issues"
24-
},
25-
"peerDependencies": {
26-
"svelte": "^3.59.1 || ^4.0.0"
27-
},
28-
"devDependencies": {
29-
"@sveltejs/adapter-auto": "^2.1.0",
30-
"@sveltejs/kit": "^1.27.2",
31-
"@sveltejs/package": "^2.2.2",
32-
"@types/cli-progress": "^3.11.4",
33-
"@types/svg-parser": "^2.0.5",
34-
"@typescript-eslint/eslint-plugin": "^6.9.1",
35-
"@typescript-eslint/parser": "^6.9.1",
36-
"cli-progress": "^3.12.0",
37-
"eslint": "^8.52.0",
38-
"eslint-config-prettier": "^9.0.0",
39-
"eslint-plugin-svelte": "^2.34.0",
40-
"hast-util-to-html": "^9.0.0",
41-
"picocolors": "1.0.0",
42-
"prettier": "^3.0.3",
43-
"prettier-plugin-svelte": "^3.0.3",
44-
"publint": "^0.2.5",
45-
"rimraf": "^5.0.5",
46-
"scule": "^1.0.0",
47-
"svelte-check": "^3.5.2",
48-
"svg-parser": "^2.0.4",
49-
"tslib": "^2.6.2",
50-
"typescript": "^5.2.2",
51-
"vite": "^4.5.0"
52-
},
53-
"scripts": {
54-
"build": "rimraf dist && pnpm sync && svelte-package",
55-
"check": "pnpm sync && svelte-check --tsconfig ./tsconfig.json",
56-
"check:watch": "pnpm sync && svelte-check --tsconfig ./tsconfig.json --watch",
57-
"clean": "rimraf dist && pnpm compile && node build/scripts/cleanAll.js",
58-
"compile": "tsc --outDir build/scripts",
59-
"cpfiles": "node build/scripts/cpFiles.js",
60-
"dev": "pnpm sync && vite dev",
61-
"format": "prettier --write --plugin prettier-plugin-svelte --ignore-path ./.prettierignore .",
62-
"generate:icons": "pnpm compile && pnpm clean && node build/scripts/buildIconsDataset.js",
63-
"generate:pkgjson": "pnpm compile && node build/scripts/makeProdPkg.js",
64-
"lint": "prettier --check . && eslint .",
65-
"postbuild": "pnpm generate:pkgjson && pnpm cpfiles && pnpm exec publint ./dist",
66-
"preview": "vite preview",
67-
"sync": "svelte-kit sync"
68-
},
69-
"sideEffects": false,
70-
"svelte": "./index.js"
71-
}
2+
"name": "@indaco/svelte-iconoir",
3+
"version": "6.0.3",
4+
"type": "module",
5+
"packageManager": "pnpm@8.10.1",
6+
"author": "indaco <github@mircoveltri.me>",
7+
"description": "Iconoir SVG icons as Svelte components.",
8+
"license": "MIT",
9+
"keywords": [
10+
"iconoir",
11+
"icons",
12+
"icons-set",
13+
"svelte",
14+
"svelte components",
15+
"sveltekit",
16+
"svg-icons"
17+
],
18+
"repository": {
19+
"type": "git",
20+
"url": "https://github.com/indaco/svelte-iconoir"
21+
},
22+
"bugs": {
23+
"url": "https://github.com/indaco/svelte-iconoir/issues"
24+
},
25+
"peerDependencies": {
26+
"svelte": "^3.59.1 || ^4.0.0"
27+
},
28+
"devDependencies": {
29+
"@commitlint/cli": "^18.2.0",
30+
"@commitlint/config-conventional": "^18.1.0",
31+
"@sveltejs/adapter-auto": "^2.1.0",
32+
"@sveltejs/kit": "^1.27.2",
33+
"@sveltejs/package": "^2.2.2",
34+
"@types/cli-progress": "^3.11.4",
35+
"@types/svg-parser": "^2.0.5",
36+
"@typescript-eslint/eslint-plugin": "^6.9.1",
37+
"@typescript-eslint/parser": "^6.9.1",
38+
"cli-progress": "^3.12.0",
39+
"eslint": "^8.52.0",
40+
"eslint-config-prettier": "^9.0.0",
41+
"eslint-plugin-svelte": "^2.34.0",
42+
"hast-util-to-html": "^9.0.0",
43+
"husky": "^8.0.0",
44+
"picocolors": "1.0.0",
45+
"prettier": "^3.0.3",
46+
"prettier-plugin-svelte": "^3.0.3",
47+
"publint": "^0.2.5",
48+
"rimraf": "^5.0.5",
49+
"scule": "^1.0.0",
50+
"svelte-check": "^3.5.2",
51+
"svg-parser": "^2.0.4",
52+
"tslib": "^2.6.2",
53+
"typescript": "^5.2.2",
54+
"vite": "^4.5.0"
55+
},
56+
"scripts": {
57+
"build": "rimraf dist && pnpm sync && svelte-package",
58+
"check": "pnpm sync && svelte-check --tsconfig ./tsconfig.json",
59+
"check:watch": "pnpm sync && svelte-check --tsconfig ./tsconfig.json --watch",
60+
"clean": "rimraf dist && pnpm compile && node build/scripts/cleanAll.js",
61+
"commitlint": "commitlint --edit",
62+
"compile": "tsc --outDir build/scripts",
63+
"cpfiles": "node build/scripts/cpFiles.js",
64+
"dev": "pnpm sync && vite dev",
65+
"format": "prettier --write --plugin prettier-plugin-svelte --ignore-path ./.prettierignore .",
66+
"generate:icons": "pnpm compile && pnpm clean && node build/scripts/buildIconsDataset.js",
67+
"generate:pkgjson": "pnpm compile && node build/scripts/makeProdPkg.js",
68+
"lint": "prettier --check . && eslint .",
69+
"postbuild": "pnpm generate:pkgjson && pnpm cpfiles && pnpm exec publint ./dist",
70+
"prepare": "husky install",
71+
"preview": "vite preview",
72+
"sync": "svelte-kit sync"
73+
},
74+
"sideEffects": false,
75+
"svelte": "./index.js"
76+
}

0 commit comments

Comments
 (0)