Skip to content

Commit

Permalink
perf: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Mar 24, 2024
1 parent 00d9643 commit e3d1627
Show file tree
Hide file tree
Showing 20 changed files with 354 additions and 293 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "node ./scripts/postinstall.js || pnpm build:pkg",
"postinstall": "node ./scripts/postinstall.js || pnpm nx:build",
"bootstrap": "pnpm install",
"serve": "npm run dev",
"dev": "vite dev",
"build": "rimraf dist && cross-env NODE_ENV=production vite build",
"build:watch": "rimraf dist && cross-env NODE_ENV=production vite build --watch",
"build:pkg": "pnpm -r --paralle --filter='./packages/*' run build",
"nx:build": "nx run-many -t build --exclude @admin-pkg/components",
"nx:build:watch": "nx watch --all -- nx run \\$NX_PROJECT_NAME:build",
"preview": "npm run build --watch && vite preview",
"preview:dist": "vite preview",
"openapi": "npx tsx openapi.config.ts",
Expand Down Expand Up @@ -75,7 +76,7 @@
"@faker-js/faker": "^8.4.1",
"@iconify-json/ant-design": "^1.1.15",
"@iconify-json/ep": "^1.1.15",
"@iconify/json": "^2.2.194",
"@iconify/json": "^2.2.195",
"@types/crypto-js": "^4.2.2",
"@types/lodash-es": "~4.17.12",
"@types/node": "~20.11.16",
Expand Down Expand Up @@ -108,7 +109,7 @@
"prettier": "~3.2.5",
"pretty-quick": "~4.0.0",
"rimraf": "~5.0.5",
"stylelint": "~16.2.1",
"stylelint": "~16.3.0",
"stylelint-config-property-sort-order-smacss": "^10.0.0",
"stylelint-config-recommended": "~14.0.0",
"stylelint-config-recommended-vue": "~1.5.0",
Expand All @@ -118,7 +119,7 @@
"typescript": "~5.4.3",
"unocss": "^0.58.6",
"unplugin-vue-components": "~0.26.0",
"vite": "~5.2.4",
"vite": "~5.2.6",
"vite-plugin-checker": "~0.6.4",
"vite-plugin-inspect": "^0.8.3",
"vite-plugin-mkcert": "^1.17.5",
Expand Down
Loading

0 comments on commit e3d1627

Please sign in to comment.