Browse Source

build

develop
文武 9 months ago
parent
commit
0cc664874a
  1. 25
      .drone.yml
  2. 4
      .gitignore

25
.drone.yml

@ -7,18 +7,21 @@ branches: [ master,develop,uat ]
pipeline: pipeline:
install: # install:
image: node:16-alpine # image: node:16-alpine
commands: # commands:
- yarn install # 也可以使用 npm install # - yarn config delete proxy
# - yarn config set sass_binary_site https://cdn.npm.taobao.org/dist/node-sass -g
# - yarn config set registry https://npm_registry.mangguonews.com
# - yarn install # 也可以使用 npm install
build: # build:
image: node:16-alpine # image: node:16-alpine
commands: # commands:
- yarn run build:test # - yarn run build:test
when: # when:
event: push # event: push
branch: develop # branch: develop
docker-dev: docker-dev:
image: plugins/docker image: plugins/docker

4
.gitignore

@ -6,7 +6,7 @@
/yarn-error.log /yarn-error.log
# production # production
/dist # /dist
*.zip *.zip
*.bak *.bak
@ -18,4 +18,4 @@
/src/.umi-production /src/.umi-production
/src/.umi-test /src/.umi-test
/.env.local /.env.local
/src/**/dist/ # /src/**/dist/

Loading…
Cancel
Save