瀏覽代碼

build: reliable asset building in production (backport #18133) (#18136)

* build: move all devDependencies to Dependencies

These are real dependencies without which you can't locally build apps.

(cherry picked from commit 06aaaaaedf)

* fix: fail code when build fails in production

In production it is useful to fail with proper exit code. To avoid
silently pushing bad assets in built pipelines.

(cherry picked from commit 1ba99396bc)

Co-authored-by: Ankush Menat <ankush@frappe.io>
version-14
mergify[bot] 2 年之前
committed by GitHub
父節點
當前提交
a8fa47ebef
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. +1
    -1
      esbuild/esbuild.js
  2. +1
    -3
      package.json

+ 1
- 1
esbuild/esbuild.js 查看文件

@@ -103,7 +103,7 @@ async function execute() {
log_error("There were some problems during build");
log();
log(chalk.dim(e.stack));
if (process.env.CI) {
if (process.env.CI || PRODUCTION) {
process.kill(process.pid);
}
return;


+ 1
- 3
package.json 查看文件

@@ -61,9 +61,7 @@
"vue": "2.6.14",
"vue-router": "^2.0.0",
"vuedraggable": "^2.24.3",
"vuex": "3"
},
"devDependencies": {
"vuex": "3",
"@frappe/esbuild-plugin-postcss2": "^0.1.3",
"@vue/component-compiler": "^4.2.4",
"autoprefixer": "10",


Loading…
取消
儲存