Przeglądaj źródła

feta: npm install vantui & config project

wangyuan 2 lat temu
rodzic
commit
4bdb7914e1
5 zmienionych plików z 39 dodań i 4 usunięć
  1. 2 0
      .gitignore
  2. 1 2
      app.json
  3. 24 0
      package-lock.json
  4. 5 0
      package.json
  5. 7 2
      project.config.json

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+node_modules
+miniprogram_npm

+ 1 - 2
app.json

@@ -1,5 +1,5 @@
 {
-  "entryPagePath": "pages/permisission/permission",
+  "entryPagePath": "pages/index/index",
   "pages": [
     "pages/permisission/permission",
     "pages/index/index",
@@ -28,6 +28,5 @@
       }
     ]
   },
-  "style": "v2",
   "sitemapLocation": "sitemap.json"
 }

+ 24 - 0
package-lock.json

@@ -0,0 +1,24 @@
+{
+  "name": "wxmini",
+  "lockfileVersion": 2,
+  "requires": true,
+  "packages": {
+    "": {
+      "dependencies": {
+        "@vant/weapp": "^1.10.5"
+      }
+    },
+    "node_modules/@vant/weapp": {
+      "version": "1.10.5",
+      "resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.5.tgz",
+      "integrity": "sha512-bAHp9r0ZiRsOqPOLzQHI/ZvkAlXzol1/TFhM70MyghuxkzJTjcDUd8RIfLkCN3c1MCK/PfBGw2an8/afygftCg=="
+    }
+  },
+  "dependencies": {
+    "@vant/weapp": {
+      "version": "1.10.5",
+      "resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.5.tgz",
+      "integrity": "sha512-bAHp9r0ZiRsOqPOLzQHI/ZvkAlXzol1/TFhM70MyghuxkzJTjcDUd8RIfLkCN3c1MCK/PfBGw2an8/afygftCg=="
+    }
+  }
+}

+ 5 - 0
package.json

@@ -0,0 +1,5 @@
+{
+  "dependencies": {
+    "@vant/weapp": "^1.10.5"
+  }
+}

+ 7 - 2
project.config.json

@@ -27,9 +27,14 @@
     "useApiHook": true,
     "useApiHostProcess": true,
     "showShadowRootInWxmlPanel": true,
-    "packNpmManually": false,
+    "packNpmManually": true,
     "enableEngineNative": false,
-    "packNpmRelationList": [],
+    "packNpmRelationList": [
+      {
+        "packageJsonPath": "./package.json",
+        "miniprogramNpmDistDir": "./"
+      }
+    ],
     "minifyWXSS": true,
     "showES6CompileOption": false,
     "minifyWXML": true,