Webpack add simulator web entry #4
16
.drone.yml
16
.drone.yml
@ -10,19 +10,29 @@ steps:
|
|||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
image: node
|
image: node
|
||||||
volumes:
|
volumes:
|
||||||
- name: publish
|
- name: publish_lab
|
||||||
path: /drone/src/build
|
path: /drone/src/build_lab
|
||||||
|
- name: publish_web
|
||||||
|
path: /drone/src/build_web
|
||||||
- name: node_modules
|
- name: node_modules
|
||||||
path: /drone/src/node_modules
|
path: /drone/src/node_modules
|
||||||
commands:
|
commands:
|
||||||
- npm config set registry https://registry.npm.taobao.org
|
- npm config set registry https://registry.npm.taobao.org
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run release-lab
|
- npm run release-lab
|
||||||
|
- rm -rf ./build_lab/*
|
||||||
|
- cp ./build/* ./build_lab
|
||||||
|
- npm run release-web
|
||||||
|
- rm -rf ./build_web/*
|
||||||
|
- cp ./build/* ./build_web
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: publish
|
- name: publish_lab
|
||||||
host:
|
host:
|
||||||
path: /http/living-together-lab
|
path: /http/living-together-lab
|
||||||
|
- name: publish_web
|
||||||
|
host:
|
||||||
|
path: /http/living-together-web
|
||||||
- name: node_modules
|
- name: node_modules
|
||||||
host:
|
host:
|
||||||
path: /tmp/node_modules/living-together
|
path: /tmp/node_modules/living-together
|
||||||
|
Loading…
Reference in New Issue
Block a user