Browse Source

chore: update

xiaoxian521 4 years ago
parent
commit
f57176dd1d
3 changed files with 68 additions and 7 deletions
  1. 58 2
      package-lock.json
  2. 8 4
      package.json
  3. 2 1
      tsconfig.json

+ 58 - 2
package-lock.json

@@ -1,6 +1,6 @@
 {
-  "name": "vue-ts",
-  "version": "1.0.0",
+  "name": "vue-pure-admin",
+  "version": "2.0.0",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {
@@ -933,6 +933,26 @@
       "resolved": "https://registry.npm.taobao.org/cropperjs/download/cropperjs-1.5.11.tgz",
       "integrity": "sha1-UCrm2MoJixJN5oE2AcynABWHn8A="
     },
+    "cross-env": {
+      "version": "7.0.3",
+      "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+      "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+      "dev": true,
+      "requires": {
+        "cross-spawn": "^7.0.1"
+      }
+    },
+    "cross-spawn": {
+      "version": "7.0.3",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+      "dev": true,
+      "requires": {
+        "path-key": "^3.1.0",
+        "shebang-command": "^2.0.0",
+        "which": "^2.0.1"
+      }
+    },
     "cssesc": {
       "version": "3.0.0",
       "resolved": "https://registry.npm.taobao.org/cssesc/download/cssesc-3.0.0.tgz",
@@ -1392,6 +1412,12 @@
       "resolved": "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-3.0.1.tgz",
       "integrity": "sha1-Zi2S0kwKpDAkB7DUXSHyJRyF+Fs="
     },
+    "isexe": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+      "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
+      "dev": true
+    },
     "js-tokens": {
       "version": "4.0.0",
       "resolved": "https://registry.npm.taobao.org/js-tokens/download/js-tokens-4.0.0.tgz",
@@ -1643,6 +1669,12 @@
         "tslib": "^2.0.3"
       }
     },
+    "path-key": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+      "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+      "dev": true
+    },
     "path-parse": {
       "version": "1.0.6",
       "resolved": "https://registry.npm.taobao.org/path-parse/download/path-parse-1.0.6.tgz",
@@ -1877,6 +1909,21 @@
         "upper-case-first": "^2.0.2"
       }
     },
+    "shebang-command": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+      "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+      "dev": true,
+      "requires": {
+        "shebang-regex": "^3.0.0"
+      }
+    },
+    "shebang-regex": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+      "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+      "dev": true
+    },
     "snake-case": {
       "version": "3.0.4",
       "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",
@@ -2234,6 +2281,15 @@
         }
       }
     },
+    "which": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+      "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+      "dev": true,
+      "requires": {
+        "isexe": "^2.0.0"
+      }
+    },
     "xe-ajax": {
       "version": "4.0.5",
       "resolved": "https://registry.npm.taobao.org/xe-ajax/download/xe-ajax-4.0.5.tgz",

+ 8 - 4
package.json

@@ -1,10 +1,13 @@
 {
-  "name": "vue-ts",
-  "version": "1.0.0",
+  "name": "vue-pure-admin",
+  "version": "2.0.0",
   "private": true,
   "scripts": {
-    "serve": "vite",
-    "build": "vite build"
+    "dev": "cross-env --max_old_space_size=4096 vite",
+    "serve": "cross-env --max_old_space_size=4096 vite",
+    "build": "cross-env vite build",
+    "preview": "vite preview",
+    "preview:build": "npm run build && vite preview"
   },
   "dependencies": {
     "@amap/amap-jsapi-loader": "^1.0.1",
@@ -47,6 +50,7 @@
     "@vue/compiler-sfc": "^3.0.11",
     "autoprefixer": "^10.2.4",
     "babel-plugin-transform-remove-console": "^6.9.4",
+    "cross-env": "^7.0.3",
     "postcss": "^8.2.6",
     "postcss-import": "^14.0.0",
     "sass": "^1.32.8",

+ 2 - 1
tsconfig.json

@@ -9,6 +9,7 @@
     "experimentalDecorators": true,
     "skipLibCheck": true,
     "esModuleInterop": true,
+    "isolatedModules": true,
     "allowSyntheticDefaultImports": true,
     "forceConsistentCasingInFileNames": true,
     "sourceMap": true,
@@ -21,7 +22,7 @@
       "/@/*": ["src/*"],
       "/#/*": ["types/*"]
     },
-    "types": ["node"],
+    "types": ["node", "vite/client"],
     "typeRoots": ["./node_modules/@types/", "./types"]
   },
   "include": [