Skip to content

Commit

Permalink
迁移到 4.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Apr 14, 2024
1 parent efb6468 commit f6d07ef
Show file tree
Hide file tree
Showing 87 changed files with 5,555 additions and 3,574 deletions.
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ VITE_APP_DEBUG_TOOL =

# 是否开启代理
VITE_OPEN_PROXY = false
# 是否开启开发者工具
VITE_OPEN_DEVTOOLS = false
20 changes: 9 additions & 11 deletions .github/workflows/deploy-example-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ jobs:
NODE_OPTIONS: --max-old-space-size=8192
run: nr build:example

# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
# 部署到 gh-pages 分支
target_branch: gh-pages
# 部署目录
build_dir: dist-example
env:
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./dist-example
enable_jekyll: true
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
4 changes: 2 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{ts,tsx,vue}": "eslint . --cache --fix",
"*.{css,scss,vue}": "stylelint src/**/*.{css,scss,vue} --cache --fix --allow-empty-input"
"*.{ts,tsx,vue}": "eslint --cache --fix",
"*.{css,scss,vue}": "stylelint --cache --fix"
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
engine-strict=true
4 changes: 0 additions & 4 deletions .stylelintignore

This file was deleted.

45 changes: 0 additions & 45 deletions .stylelintrc

This file was deleted.

1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"Vue.volar",
"Vue.vscode-typescript-vue-plugin",
"antfu.unocss"
]
}
106 changes: 58 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"type": "module",
"version": "4.3.0",
"version": "4.7.0",
"engines": {
"node": "^18.0.0 || ^20.0.0"
},
"scripts": {
"dev": "vite",
"build:example": "vue-tsc && vite build --mode example",
Expand All @@ -11,84 +14,91 @@
"lint": "npm-run-all -s lint:tsc lint:eslint lint:stylelint",
"lint:tsc": "vue-tsc",
"lint:eslint": "eslint . --cache --fix",
"lint:stylelint": "stylelint src/**/*.{css,scss,vue} --cache --fix --allow-empty-input",
"lint:stylelint": "stylelint \"src/**/*.{css,scss,vue}\" --cache --fix",
"postinstall": "simple-git-hooks",
"preinstall": "npx only-allow pnpm",
"commit": "git cz",
"release": "bumpp"
},
"dependencies": {
"@headlessui/vue": "^1.7.16",
"@vueuse/core": "^10.7.0",
"@vueuse/integrations": "^10.7.0",
"ant-design-vue": "^4.0.8",
"axios": "^1.6.2",
"@headlessui/vue": "^1.7.19",
"@imengyu/vue3-context-menu": "^1.3.9",
"@vueuse/core": "^10.9.0",
"@vueuse/integrations": "^10.9.0",
"ant-design-vue": "4.x",
"axios": "^1.6.8",
"dayjs": "^1.11.10",
"defu": "^6.1.3",
"defu": "^6.1.4",
"eruda": "^3.0.1",
"floating-vue": "2.0.0-beta.24",
"hotkeys-js": "^3.13.3",
"floating-vue": "5.2.2",
"hotkeys-js": "^3.13.7",
"lodash-es": "^4.17.21",
"mitt": "^3.0.1",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
"overlayscrollbars": "^2.4.6",
"overlayscrollbars-vue": "^0.5.6",
"overlayscrollbars": "^2.6.1",
"overlayscrollbars-vue": "^0.5.8",
"path-browserify": "^1.0.1",
"path-to-regexp": "^6.2.1",
"pinia": "^2.1.7",
"qs": "^6.11.2",
"scule": "^1.1.1",
"qs": "^6.12.0",
"scule": "^1.3.0",
"vconsole": "^3.15.1",
"vue": "^3.3.13",
"vue": "^3.4.21",
"vue-m-message": "^4.0.2",
"vue-router": "^4.2.5"
"vue-router": "^4.3.0"
},
"devDependencies": {
"@antfu/eslint-config": "2.4.6",
"@iconify/json": "^2.2.160",
"@antfu/eslint-config": "2.11.6",
"@iconify/json": "^2.2.196",
"@iconify/vue": "^4.1.1",
"@stylistic/stylelint-config": "^1.0.1",
"@types/lodash-es": "^4.17.12",
"@types/mockjs": "^1.0.10",
"@types/nprogress": "^0.2.3",
"@types/path-browserify": "^1.0.2",
"@types/qs": "^6.9.10",
"@unocss/eslint-plugin": "^0.58.0",
"@vitejs/plugin-legacy": "^5.2.0",
"@vitejs/plugin-vue": "^4.5.2",
"@types/qs": "^6.9.14",
"@unocss/eslint-plugin": "^0.58.8",
"@vitejs/plugin-legacy": "^5.3.2",
"@vitejs/plugin-vue": "^5.0.4",
"@vitejs/plugin-vue-jsx": "^3.1.0",
"autoprefixer": "^10.4.16",
"bumpp": "^9.2.1",
"cz-git": "^1.8.0",
"eslint": "^8.56.0",
"esno": "^4.0.0",
"archiver": "^7.0.1",
"autoprefixer": "^10.4.19",
"boxen": "^7.1.1",
"bumpp": "^9.4.0",
"cz-git": "^1.9.1",
"eslint": "^8.57.0",
"esno": "^4.7.0",
"fs-extra": "^11.2.0",
"http-server": "^14.1.1",
"inquirer": "^9.2.12",
"lint-staged": "^15.2.0",
"inquirer": "^9.2.17",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"plop": "^4.0.0",
"sass": "^1.69.5",
"simple-git-hooks": "^2.9.0",
"stylelint": "^15.11.0",
"stylelint-config-standard-scss": "^11.1.0",
"picocolors": "^1.0.0",
"plop": "^4.0.1",
"sass": "^1.72.0",
"simple-git-hooks": "^2.11.1",
"stylelint": "^16.3.1",
"stylelint-config-recess-order": "^5.0.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-scss": "^5.3.1",
"stylelint-stylistic": "^0.4.3",
"svgo": "^3.1.0",
"terser": "^5.26.0",
"typescript": "^5.3.3",
"unocss": "^0.58.0",
"unplugin-auto-import": "^0.17.2",
"stylelint-scss": "^6.2.1",
"svgo": "^3.2.0",
"terser": "^5.30.0",
"typescript": "^5.4.3",
"unocss": "^0.58.8",
"unplugin-auto-import": "^0.17.5",
"unplugin-turbo-console": "^1.5.1",
"unplugin-vue-components": "^0.26.0",
"vite": "^5.0.10",
"vite": "^5.2.7",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-mock": "^2.9.8",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-compression2": "^1.0.0",
"vite-plugin-fake-server": "^2.1.1",
"vite-plugin-pages": "^0.32.1",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-inspector": "^4.0.2",
"vite-plugin-vue-meta-layouts": "^0.3.4",
"vue-tsc": "^1.8.25"
"vite-plugin-vue-devtools": "^7.0.25",
"vite-plugin-vue-meta-layouts": "^0.4.2",
"vue-tsc": "^2.0.7"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
Expand Down
42 changes: 24 additions & 18 deletions plop-templates/mock/mock.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,40 @@ export default [
{
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/create',
method: 'post',
response: {
error: '',
status: 1,
data: {
isSuccess: true,
},
response: () => {
return {
error: '',
status: 1,
data: {
isSuccess: true,
},
}
},
},
{
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/edit',
method: 'post',
response: {
error: '',
status: 1,
data: {
isSuccess: true,
},
response: () => {
return {
error: '',
status: 1,
data: {
isSuccess: true,
},
}
},
},
{
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/delete',
method: 'post',
response: {
error: '',
status: 1,
data: {
isSuccess: true,
},
response: () => {
return {
error: '',
status: 1,
data: {
isSuccess: true,
},
}
},
},
]
Loading

0 comments on commit f6d07ef

Please sign in to comment.