chore(projects): remove useless packages, update lint-staged config, add githublogen

This commit is contained in:
Soybean 2023-05-31 01:33:46 +08:00
parent cebbef680f
commit 5aaa318142
5 changed files with 259 additions and 963 deletions

View File

@ -1,27 +1,25 @@
name: Release name: Release
on:
push:
tags:
- "v*.**"
permissions: permissions:
contents: write contents: write
on:
push:
tags:
- "v*"
jobs: jobs:
release: release:
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node.js - uses: actions/setup-node@v3
uses: actions/setup-node@v3
with: with:
node-version: 16.x node-version: 16.x
- name: Create github releases - run: npx githublogen
run: npx changelogithub
env: env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

2
.npmrc
View File

@ -1,4 +1,2 @@
registry=https://registry.npmmirror.com/ registry=https://registry.npmmirror.com/
shamefully-hoist=true shamefully-hoist=true
strict-peer-dependencies=false
auto-install-peers=true

View File

@ -1,21 +0,0 @@
{
"types": {
"feat": { "title": "🚀 Features" },
"perf": { "title": "🔥 Performance" },
"fix": { "title": "🩹 Fixes" },
"refactor": { "title": "💅 Refactors" },
"docs": { "title": "📖 Documentation" },
"types": { "title": "🌊 Types" },
"chore": { "title": "🏡 Chore" },
"test": { "title": "🧪 Tests" },
"style": { "title": "🎨 Styles" },
"ci": { "title": "🤖 CI" }
},
"scopeMap": {},
"titles": {
"breakingChanges": "🚨 Breaking Changes"
},
"contributors": true,
"capitalize": true,
"group": true
}

View File

@ -44,81 +44,79 @@
"build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build", "build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build",
"preview": "vite preview", "preview": "vite preview",
"typecheck": "vue-tsc --noEmit --skipLibCheck", "typecheck": "vue-tsc --noEmit --skipLibCheck",
"lint": "eslint . --fix --ext .js,.jsx,.mjs,.json,.ts,.tsx,.vue", "lint": "eslint . --fix",
"format": "soy prettier-format", "format": "soy prettier-format",
"commit": "soy git-commit", "commit": "soy git-commit",
"cleanup": "soy cleanup", "cleanup": "soy cleanup",
"update-pkg": "soy update-pkg", "update-pkg": "soy update-pkg",
"tsx": "tsx", "tsx": "tsx",
"logo": "tsx ./scripts/logo.ts", "logo": "tsx ./scripts/logo.ts",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "update-version": "bumpp --commit --push --tag",
"release": "standard-version",
"prepare": "soy init-git-hooks" "prepare": "soy init-git-hooks"
}, },
"dependencies": { "dependencies": {
"@antv/data-set": "^0.11.8", "@antv/data-set": "0.11.8",
"@antv/g2": "^4.2.10", "@antv/g2": "4.2.10",
"@better-scroll/core": "^2.5.1", "@better-scroll/core": "2.5.1",
"@soybeanjs/vue-materials": "^0.1.15", "@soybeanjs/vue-materials": "0.1.15",
"@vueuse/core": "^10.1.2", "@vueuse/core": "10.1.2",
"axios": "1.4.0", "axios": "1.4.0",
"clipboard": "^2.0.11", "clipboard": "2.0.11",
"colord": "^2.9.3", "colord": "2.9.3",
"crypto-js": "^4.1.1", "crypto-js": "4.1.1",
"dayjs": "^1.11.7", "dayjs": "1.11.7",
"echarts": "^5.4.2", "echarts": "5.4.2",
"form-data": "^4.0.0", "form-data": "4.0.0",
"lodash-es": "^4.17.21", "lodash-es": "4.17.21",
"naive-ui": "2.34.4", "naive-ui": "2.34.4",
"pinia": "^2.1.3", "pinia": "2.1.3",
"print-js": "^1.6.0", "print-js": "1.6.0",
"qs": "^6.11.2", "qs": "6.11.2",
"swiper": "^9.3.2", "swiper": "9.3.2",
"ua-parser-js": "^1.0.35", "ua-parser-js": "1.0.35",
"vditor": "^3.9.3", "vditor": "3.9.3",
"vue": "3.3.4", "vue": "3.3.4",
"vue-i18n": "^9.2.2", "vue-i18n": "9.2.2",
"vue-router": "^4.2.2", "vue-router": "4.2.2",
"vuedraggable": "^4.1.0", "vuedraggable": "4.1.0",
"wangeditor": "^4.7.15", "wangeditor": "4.7.15",
"xgplayer": "^3.0.2" "xgplayer": "3.0.2"
}, },
"devDependencies": { "devDependencies": {
"@amap/amap-jsapi-types": "^0.0.13", "@amap/amap-jsapi-types": "0.0.13",
"@iconify/json": "^2.2.71", "@iconify/json": "2.2.71",
"@iconify/vue": "^4.1.1", "@iconify/vue": "4.1.1",
"@soybeanjs/cli": "^0.3.0", "@soybeanjs/cli": "0.3.2",
"@soybeanjs/vite-plugin-vue-page-route": "^0.0.5", "@soybeanjs/vite-plugin-vue-page-route": "0.0.5",
"@types/bmapgl": "^0.0.7", "@types/bmapgl": "0.0.7",
"@types/crypto-js": "^4.1.1", "@types/crypto-js": "4.1.1",
"@types/node": "20.2.5", "@types/node": "20.2.5",
"@types/qs": "^6.9.7", "@types/qs": "6.9.7",
"@types/ua-parser-js": "^0.7.36", "@types/ua-parser-js": "0.7.36",
"@unocss/preset-uno": "^0.52.5", "@unocss/preset-uno": "0.52.5",
"@unocss/transformer-directives": "^0.52.5", "@unocss/transformer-directives": "0.52.5",
"@unocss/vite": "^0.52.5", "@unocss/vite": "0.52.5",
"@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue": "4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1", "@vitejs/plugin-vue-jsx": "3.0.1",
"conventional-changelog": "^3.1.25", "bumpp": "9.1.0",
"cross-env": "^7.0.3", "cross-env": "7.0.3",
"eslint": "^8.41.0", "eslint": "8.41.0",
"eslint-config-soybeanjs": "^0.4.7", "eslint-config-soybeanjs": "0.4.7",
"lint-staged": "13.2.2", "lint-staged": "13.2.2",
"mockjs": "^1.1.0", "mockjs": "1.1.0",
"rollup-plugin-visualizer": "^5.9.0", "rollup-plugin-visualizer": "5.9.0",
"sass": "^1.62.1", "sass": "1.62.1",
"simple-git-hooks": "^2.8.1", "simple-git-hooks": "2.8.1",
"standard-version": "^9.5.0", "tsx": "3.12.7",
"tsx": "^3.12.7",
"typescript": "5.0.4", "typescript": "5.0.4",
"unplugin-icons": "^0.16.1", "unplugin-icons": "0.16.1",
"unplugin-vue-components": "0.25.0", "unplugin-vue-components": "0.25.0",
"vite": "^4.3.9", "vite": "4.3.9",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "0.5.1",
"vite-plugin-mock": "2.9.8", "vite-plugin-mock": "2.9.8",
"vite-plugin-progress": "^0.0.7", "vite-plugin-progress": "0.0.7",
"vite-plugin-pwa": "^0.15.2", "vite-plugin-pwa": "0.15.2",
"vite-plugin-svg-icons": "^2.0.1", "vite-plugin-svg-icons": "2.0.1",
"vue-tsc": "1.6.5" "vue-tsc": "1.6.5"
}, },
"pnpm": { "pnpm": {
@ -131,6 +129,7 @@
"pre-commit": "pnpm typecheck && pnpm lint-staged" "pre-commit": "pnpm typecheck && pnpm lint-staged"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,mjs,json,ts,tsx,vue}": "eslint . --fix" "*.{js,mjs,jsx,ts,mts,tsx,json,vue,svelte,astro}": "eslint . --fix",
"*.!{js,mjs,jsx,ts,mts,tsx,json,vue,svelte,astro}": "format"
} }
} }

File diff suppressed because it is too large Load Diff