Skip to content

Commit

Permalink
build(projects): update deps, add prettier format command
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Mar 12, 2023
1 parent cc13fcc commit 36e5fea
Show file tree
Hide file tree
Showing 14 changed files with 952 additions and 2,205 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
module.exports = {
extends: ['soybeanjs-vue'],
extends: ['soybeanjs/vue'],
overrides: [
{
files: ['./scripts/*.ts'],
rules: {
'no-unused-expressions': 'off'
}
},
{
files: ['*.vue'],
rules: {
'no-undef': 'off' // use tsc to check the ts code of the vue
}
}
],
settings: {
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Bug提交
description: 在使用软件或功能的过程中遇到了错误
title: '[Bug]: '
title: "[Bug]: "
labels: [bug?]

body:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
tags:
- 'v*.**'
- "v*.**"

permissions:
contents: write
Expand Down
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"naumovs.color-highlight",
"pkief.material-icon-theme",
"sdras.vue-vscode-snippets",
"steoates.autoimport",
"vue.volar",
"vue.vscode-typescript-vue-plugin",
"whtouche.vscode-js-console-utils",
Expand Down
15 changes: 1 addition & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,7 @@
"strings": true
},
"editor.tabSize": 2,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"json",
"jsonc",
"json5",
"yaml",
"yml",
"markdown"
],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "json"],
"files.associations": {
"*.env.*": "dotenv"
},
Expand Down
24 changes: 12 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= appName %></title>
</head>
<body>
<div id="app">
<div id="appLoading"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= appName %></title>
</head>
<body>
<div id="app">
<div id="appLoading"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,24 @@
"build:vercel": "cross-env VITE_HASH_ROUTE=Y VITE_VERCEL=Y vite build",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit --skipLibCheck",
"lint": "eslint . --fix",
"lint": "eslint . --fix --ext .js,.jsx,.mjs,.json,.ts,.tsx,.vue",
"format": "soy prettier-format",
"commit": "soy git-commit",
"cleanup": "soy cleanup",
"update-pkg": "soy update-pkg",
"tsx": "tsx",
"logo": "tsx ./scripts/logo.ts",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "standard-version",
"prepare": "simple-git-hooks"
"prepare": "soy init-git-hooks"
},
"dependencies": {
"@antv/data-set": "^0.11.8",
"@antv/g2": "^4.2.9",
"@better-scroll/core": "^2.5.0",
"@soybeanjs/vue-admin-layout": "^1.1.1",
"@soybeanjs/vue-admin-tab": "^1.0.5",
"@vueuse/core": "^9.12.0",
"@vueuse/core": "^9.13.0",
"axios": "0.27.2",
"clipboard": "^2.0.11",
"colord": "^2.9.3",
Expand All @@ -70,11 +71,11 @@
"form-data": "^4.0.0",
"lodash-es": "^4.17.21",
"naive-ui": "2.34.3",
"pinia": "^2.0.30",
"pinia": "^2.0.33",
"print-js": "^1.6.0",
"qs": "^6.11.0",
"swiper": "^9.0.4",
"ua-parser-js": "^1.0.33",
"qs": "^6.11.1",
"swiper": "^9.1.0",
"ua-parser-js": "^1.0.34",
"vditor": "^3.9.0",
"vue": "3.2.47",
"vue-i18n": "^9.2.2",
Expand All @@ -84,44 +85,44 @@
"xgplayer": "^2.32.2"
},
"devDependencies": {
"@amap/amap-jsapi-types": "^0.0.10",
"@iconify/json": "^2.2.20",
"@amap/amap-jsapi-types": "^0.0.13",
"@iconify/json": "^2.2.33",
"@iconify/vue": "^4.1.0",
"@soybeanjs/cli": "^0.1.6",
"@soybeanjs/cli": "^0.1.7",
"@soybeanjs/vite-plugin-vue-page-route": "^0.0.5",
"@types/bmapgl": "^0.0.5",
"@types/crypto-js": "^4.1.1",
"@types/node": "18.13.0",
"@types/node": "18.15.0",
"@types/qs": "^6.9.7",
"@types/ua-parser-js": "^0.7.36",
"@unocss/preset-uno": "^0.49.4",
"@unocss/transformer-directives": "^0.49.4",
"@unocss/vite": "^0.49.4",
"@unocss/preset-uno": "^0.50.4",
"@unocss/transformer-directives": "^0.50.4",
"@unocss/vite": "^0.50.4",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"conventional-changelog": "^3.1.25",
"cross-env": "^7.0.3",
"eslint": "^8.34.0",
"eslint-config-soybeanjs-vue": "^0.2.3",
"eslint": "^8.36.0",
"eslint-config-soybeanjs": "^0.3.1",
"lint-staged": "12.5.0",
"mockjs": "^1.1.0",
"rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.58.0",
"sass": "^1.59.2",
"simple-git-hooks": "^2.8.1",
"standard-version": "^9.5.0",
"tsx": "^3.12.3",
"tsx": "^3.12.4",
"typescript": "4.9.5",
"unplugin-icons": "^0.15.2",
"unplugin-vue-components": "0.23.0",
"unplugin-icons": "^0.15.3",
"unplugin-vue-components": "0.24.1",
"unplugin-vue-macros": "1.6.4",
"vite": "^4.1.1",
"vite": "^4.1.4",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-progress": "^0.0.6",
"vite-plugin-pwa": "^0.14.4",
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^1.0.24"
"vue-tsc": "^1.2.0"
},
"pnpm": {
"patchedDependencies": {
Expand All @@ -133,6 +134,6 @@
"pre-commit": "pnpm typecheck && pnpm lint-staged"
},
"lint-staged": {
"*": "eslint . --fix"
"*.{js,jsx,mjs,json,ts,tsx,vue}": "eslint . --fix"
}
}
Loading

1 comment on commit 36e5fea

@vercel
Copy link

@vercel vercel bot commented on 36e5fea Mar 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.