Skip to content

Commit

Permalink
workflow: integrate license-checker, attw and publint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Oct 11, 2024
1 parent 3c4a034 commit 6f86d39
Show file tree
Hide file tree
Showing 8 changed files with 1,880 additions and 917 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ stats.html
*.local
*.log
*.zip
*.tgz
7 changes: 6 additions & 1 deletion auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
Expand Down Expand Up @@ -35,6 +36,7 @@ declare global {
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
const provide: typeof import('vue')['provide']
const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly']
Expand All @@ -53,7 +55,10 @@ declare global {
const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars']
const useId: typeof import('vue')['useId']
const useModel: typeof import('vue')['useModel']
const useSlots: typeof import('vue')['useSlots']
const useTemplateRef: typeof import('vue')['useTemplateRef']
const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect']
const watchPostEffect: typeof import('vue')['watchPostEffect']
Expand All @@ -62,6 +67,6 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
import('vue')
}
13 changes: 13 additions & 0 deletions depencency-licenses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
├─ MIT: 321
├─ ISC: 149
├─ Apache-2.0: 16
├─ BSD-2-Clause: 11
├─ BSD-3-Clause: 5
├─ BlueOak-1.0.0: 4
├─ CC0-1.0: 2
├─ Artistic-2.0: 1
├─ MIT,Apache2: 1
├─ Apache 2.0: 1
├─ (BSD-2-Clause OR MIT OR Apache-2.0): 1
├─ CC-BY-3.0: 1
└─ (MIT OR CC0-1.0): 1
50 changes: 33 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "vue-global-config",
"PascalCasedName": "VueGlobalConfig",
"type": "commonjs",
"version": "0.6.2",
"private": false,
"description": "Configure your Vue 2/3 components globally.",
Expand All @@ -9,7 +10,10 @@
"url": "https://github.com/cloydlau"
},
"license": "MIT",
"repository": "https://github.com/cloydlau/vue-global-config",
"repository": {
"type": "git",
"url": "git+https://github.com/cloydlau/vue-global-config.git"
},
"keywords": [
"config",
"configuration",
Expand All @@ -23,9 +27,14 @@
],
"exports": {
".": {
"types": "./dist/vue-global-config.d.ts",
"import": "./dist/vue-global-config.mjs",
"require": "./dist/vue-global-config.umd.js"
"import": {
"types": "./dist/vue-global-config.d.mts",
"default": "./dist/vue-global-config.mjs"
},
"require": {
"types": "./dist/vue-global-config.d.ts",
"default": "./dist/vue-global-config.umd.js"
}
},
"./*": "./*"
},
Expand All @@ -45,13 +54,16 @@
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"build": "vite build",
"typegen": "npx tsup --entry.vue-global-config src/index.ts --format esm,cjs --cjsInterop --clean --dts-only",
"build": "vite build && pnpm typegen",
"license-scan": "license-checker --summary --out ./depencency-licenses.txt",
"serve": "vite preview",
"release": "esno ./scripts/release.mts",
"sync-to-cnpm": "npx cnpm sync && curl -L https://npmmirror.com/sync/vue-global-config",
"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 @@ -70,40 +82,44 @@
"vue-demi": "^0.14.10"
},
"devDependencies": {
"@antfu/eslint-config": "^3.5.1",
"@antfu/eslint-config": "^3.7.3",
"@arethetypeswrong/cli": "^0.16.4",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@element-plus/icons-vue": "latest",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.5.4",
"@types/node": "^22.7.5",
"@vitejs/plugin-vue": "latest",
"@vue/compiler-sfc": "latest",
"@vue/test-utils": "latest",
"case-police": "^0.7.0",
"change-case": "^5.4.4",
"cnpm": "^9.4.0",
"cross-spawn": "^7.0.3",
"del": "^7.1.0",
"del": "^8.0.0",
"element-plus": "latest",
"eslint-plugin-format": "^0.1.2",
"esno": "^4.7.0",
"faim": "^0.9.7",
"esno": "^4.8.0",
"faim": "^0.10.0",
"kolorist": "^1.8.0",
"license-checker": "^25.0.1",
"lint-staged": "^15.2.10",
"lodash-es": "^4.17.21",
"magicast": "^0.3.5",
"only-allow": "^1.2.1",
"open": "^10.1.0",
"prompts": "^2.4.2",
"publint": "^0.2.11",
"rollup-plugin-visualizer": "^5.12.0",
"semver": "^7.6.3",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.6.2",
"unplugin-auto-import": "^0.18.2",
"tsup": "^8.3.0",
"typescript": "^5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.4",
"vite-plugin-dts": "^4.2.1",
"vitepress": "^1.3.4",
"vitest": "^2.0.5",
"vite": "^5.4.8",
"vitepress": "^1.4.0",
"vitest": "^2.1.2",
"vue": "latest",
"vue-global-config": "workspace:*"
},
Expand Down
Loading

0 comments on commit 6f86d39

Please sign in to comment.