Переглянути джерело

chore: 更新自动化脚本

chenlei 2 роки тому
батько
коміт
a62ab2d3fa
2 змінених файлів з 8 додано та 5 видалено
  1. 8 0
      README.md
  2. 0 5
      scripts/publish.js

+ 8 - 0
README.md

@@ -53,3 +53,11 @@ yarn serve
 以 vscode 为例:
 
 > 在 `file -> preferences -> setting` 中搜索 `defaultFormatter`<br> 选择 `Prettier - Code formatter`<br> 接着搜索 `format`<br> 将 `editor: format on save` 勾选
+
+<br>
+
+### 🤖 自动化部署地址
+
+http://face3d.4dage.com:29394/deploy/app
+
+TODO: 暂时还未区分场景值打包部署,只支持 test 分支

+ 0 - 5
scripts/publish.js

@@ -13,14 +13,9 @@ ch.execSync(`npm run build${!!SCENE ? ':' + SCENE : ''}:test`, {
 
 const distFiles = fs.readdirSync(distDir);
 
-// 静态资源默认不上传
-const IGNORE_FILES = ['images', 'js', 'fonts'];
-
 if (!distFiles.length) throw new Error(`请先执行 yarn ${distDir}`);
 
 distFiles.forEach((fileName) => {
-  if (!process.env.INCLUDE_STATIC && IGNORE_FILES.includes(fileName)) return;
-
   fs.copySync(
     `${distDir}/${fileName}`,
     `.temp/${fileName === 'resources' ? fileName : 'data/' + fileName}`