Browse Source

drone 测试

liql 2 years ago
parent
commit
2ca79b35eb
2 changed files with 3 additions and 5 deletions
  1. 1 1
      drone.yml
  2. 2 4
      package.json

+ 1 - 1
drone.yml

@@ -12,7 +12,7 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
         path: /tmp
     commands: # 定义在Docker容器中执行的shell命令
       - npm install --registry=https://registry.npmmirror.com/  # 应用打包命令
-      - npm run build:stage
+      - npm run build
       - mkdir -p /tmp/veterans_company/dist
       - cp -r dist/* /tmp/veterans_company/dist
 

+ 2 - 4
package.json

@@ -3,10 +3,8 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "dev": "vue-cli-service serve",
-    "build:prod": "vue-cli-service build",
-	"build:stage": "vue-cli-service build --mode staging",
-	"preview": "node build/index.js --preview",
+    "serve": "vue-cli-service serve",
+    "build": "vue-cli-service build",
     "lint": "vue-cli-service lint"
   },
   "dependencies": {