Skip to content

Commit

Permalink
workflow: add license-scan
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Aug 16, 2024
1 parent b74053d commit 639e576
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 408 deletions.
5 changes: 5 additions & 0 deletions licenses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
├─ MIT: 90
├─ Apache-2.0: 4
├─ BSD-2-Clause: 3
├─ ISC: 2
└─ BSD-3-Clause: 1
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@
"doc": "vitepress dev --open /README",
"build": "vite build",
"release": "esno ./scripts/release.mts",
"license-scan": "license-checker --summary --out ./licenses.txt",
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html",
"lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html --fix",
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || (npx simple-git-hooks && pnpm license-scan)"
},
"peerDependencies": {
"@vue/composition-api": ">=1",
Expand All @@ -76,19 +77,19 @@
"vue-demi": "^0.14.10"
},
"devDependencies": {
"@antfu/eslint-config": "^2.25.1",
"@antfu/eslint-config": "^2.25.2",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/cross-spawn": "^6.0.6",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.2.0",
"@types/node": "^22.3.0",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.8",
"@vitejs/plugin-vue": "latest",
"@vitest/ui": "^2.0.5",
"@vue/compiler-sfc": "latest",
"@vue/test-utils": "latest",
"axios": "^1.7.3",
"axios": "^1.7.4",
"case-police": "^0.6.1",
"cross-spawn": "^7.0.3",
"del": "^7.1.0",
Expand All @@ -97,7 +98,8 @@
"happy-dom": "^14.12.3",
"json-editor-vue": "workspace:*",
"kolorist": "^1.8.0",
"lint-staged": "^15.2.8",
"license-scan": "^0.1.2",
"lint-staged": "^15.2.9",
"lodash-es": "^4.17.21",
"lossless-json": "^4.0.1",
"magicast": "^0.3.4",
Expand All @@ -109,9 +111,9 @@
"simple-git-hooks": "^2.11.1",
"typescript": "^5.5.4",
"unplugin-auto-import": "^0.18.2",
"unplugin-vue-components": "^0.27.3",
"vite": "^5.4.0",
"vite-plugin-dts": "4.0.2",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.1",
"vite-plugin-dts": "4.0.3",
"vitepress": "^1.3.2",
"vitest": "^2.0.5",
"vue": "latest",
Expand Down
Loading

0 comments on commit 639e576

Please sign in to comment.