Build Steps

npm install

npm install —registry=https://registry.npm.taobao.org

image.png

npm build

npm run build

image.png

上传服务器

  1. %teamcity.build.workingDir%/dist/** => /test/dist/
    1. ** 表示下级所有

image.png

移动到指定目录

  1. ## 拷贝过去
  2. cp -rf /root/test/dist/** /doc/program/showroom/dist/
  3. ## 删除原来的问题后在进行移动(要不然mv报错:Directory not empty不能目录覆盖
  4. rm -rf /doc/program/showroom/dist/
  5. mv /root/test/dist/** /doc/program/showroom/dist/

image.png