Explorar el Código

新增 http-server 包

master
pengpeng.zhai hace 2 años
padre
commit
495b0ab75f
Se han modificado 2 ficheros con 36 adiciones y 5 borrados
  1. 16
    5
      README.md
  2. 20
    0
      package.json

+ 16
- 5
README.md Ver fichero

@@ -3,11 +3,22 @@
3 3
 ## 福田皮卡火星7+火星9
4 4
 
5 5
 ### 如何使用
6
-1. 本地启动web服务(如Apache)后将tunland放在根目录
7
-2. 火星7 PC端访问 http://127.0.0.1/tunland/p7/index.html
8
-3. 火星7 移动端访问 http://127.0.0.1/tunland/p7/indexm.html
9
-4. 火星9 PC端访问 http://127.0.0.1/tunland/p9/index.html
10
-5. 火星9 移动端访问 http://127.0.0.1/tunland/p9/indexm.html
6
+1. 首次运行需先安装 **http-server** 服务
7
+
8
+    ```
9
+    npm run ginstall
10
+    ```
11
+
12
+1. 运行下面命令启动 **http-server** 服务
13
+	
14
+    ```
15
+    npm run dev
16
+    ```
17
+
18
+2. 火星7 PC端访问 http://127.0.0.1:8080/tunland/p7/index.html
19
+3. 火星7 移动端访问 http://127.0.0.1:8080/tunland/p7/indexm.html
20
+4. 火星9 PC端访问 http://127.0.0.1:8080/tunland/p9/index.html
21
+5. 火星9 移动端访问 http://127.0.0.1:8080/tunland/p9/indexm.html
11 22
 
12 23
 
13 24
 ### 目录结构

+ 20
- 0
package.json Ver fichero

@@ -0,0 +1,20 @@
1
+{
2
+  "name": "foton_pickup-202304",
3
+  "version": "1.0.0",
4
+  "description": "## 福田皮卡火星7+火星9",
5
+  "main": "index.js",
6
+  "scripts": {
7
+    "test": "echo \"Error: no test specified\" && exit 1",
8
+    "ginstall": "cnpm i -g http-server",
9
+    "dev": "http-server"
10
+  },
11
+  "repository": {
12
+    "type": "git",
13
+    "url": "http://pengpeng:zhaipengpeng@git.cn-wbst.cn/pengpeng/foton_pickup-202304.git"
14
+  },
15
+  "author": "",
16
+  "license": "ISC",
17
+  "dependencies": {
18
+
19
+  }
20
+}

Loading…
Cancelar
Guardar