diff --git a/dist/cli.js b/dist/cli.js index 714c8d1..b722534 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -53,7 +53,7 @@ function parseCliArgs() { \u9009\u9879: --env= \u73AF\u5883\u7C7B\u578B (dev|prod|staging)\uFF0C\u9ED8\u8BA4: dev - --extra= \u989D\u5916\u7684\u6A21\u578B\u76EE\u5F55\uFF08\u53EF\u591A\u6B21\u4F7F\u7528\uFF09 + --extra= \u989D\u5916\u7684\u4F9D\u8D56\u76EE\u5F55\uFF08\u53EF\u591A\u6B21\u4F7F\u7528\uFF09 --registry= npm \u955C\u50CF\u7AD9\u5730\u5740\uFF0C\u9ED8\u8BA4: https://registry.npmmirror.com --port= \u66B4\u9732\u7684\u7AEF\u53E3\u53F7\uFF0C\u9ED8\u8BA4: 3001 --node-version= Node.js \u7248\u672C\uFF0C\u9ED8\u8BA4: 20 @@ -158,7 +158,7 @@ RUN npm install dockerfile += ` # \u6E05\u7406 ${project} WORKDIR /app/${project} -RUN rm -rf src \\ +RUN rm -rf src && rm -rf web && rm -rf wechatMp && rm -rf native \\ && find node_modules -type d -name "test" -o -name "__tests__" -exec rm -rf {} + \\ && find node_modules -type f \\( -name "*.ts" -o -name "*.d.ts" \\) -delete `; @@ -263,7 +263,7 @@ function main() { console.log(` \u9879\u76EE\u76EE\u5F55: ${projectDir}`); console.log(` \u73AF\u5883: ${options.env}`); console.log( - ` \u989D\u5916\u6A21\u578B: ${options.extra.length > 0 ? options.extra.join(", ") : "\u65E0"}` + ` \u989D\u5916\u4F9D\u8D56: ${options.extra.length > 0 ? options.extra.join(", ") : "\u65E0"}` ); console.log(` npm \u955C\u50CF\u7AD9: ${options.registry}`); console.log(` \u7AEF\u53E3: ${options.port}`); diff --git a/src/cli.ts b/src/cli.ts index b11ba18..6cad596 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -201,7 +201,7 @@ RUN npm install dockerfile += ` # 清理 ${project} WORKDIR /app/${project} -RUN rm -rf src \\ +RUN rm -rf src && rm -rf web && rm -rf wechatMp && rm -rf native \\ && find node_modules -type d -name "test" -o -name "__tests__" -exec rm -rf {} + \\ && find node_modules -type f \\( -name "*.ts" -o -name "*.d.ts" \\) -delete `;