Skip to content

Commit

Permalink
refactor(projects): use better-mock replace mockjs [用better-mock替换moc…
Browse files Browse the repository at this point in the history
…kjs]
  • Loading branch information
honghuangdc committed May 6, 2023
1 parent 34f023c commit 9d3c732
Show file tree
Hide file tree
Showing 4 changed files with 841 additions and 1,544 deletions.
2 changes: 1 addition & 1 deletion mock/api/management.ts
@@ -1,4 +1,4 @@
import { mock } from 'mockjs';
import { mock } from 'better-mock';
import type { MockMethod } from 'vite-plugin-mock';

const apis: MockMethod[] = [
Expand Down
7 changes: 1 addition & 6 deletions package.json
Expand Up @@ -99,12 +99,12 @@
"@unocss/vite": "^0.51.8",
"@vitejs/plugin-vue": "^4.2.1",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"better-mock": "^0.3.6",
"conventional-changelog": "^3.1.25",
"cross-env": "^7.0.3",
"eslint": "^8.39.0",
"eslint-config-soybeanjs": "^0.3.3",
"lint-staged": "13.2.2",
"mockjs": "^1.1.0",
"rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.62.1",
"simple-git-hooks": "^2.8.1",
Expand All @@ -122,11 +122,6 @@
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "1.6.4"
},
"pnpm": {
"patchedDependencies": {
"mockjs@1.1.0": "patches/mockjs@1.1.0.patch"
}
},
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
"pre-commit": "pnpm typecheck && pnpm lint-staged"
Expand Down

0 comments on commit 9d3c732

Please sign in to comment.