Procházet zdrojové kódy

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] před 2 roky
committed by GitHub
rodič
revize
a8fa47ebef
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
2 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. +1
    -1
      esbuild/esbuild.js
  2. +1
    -3
      package.json

+ 1
- 1
esbuild/esbuild.js Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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",


Načítá se…
Zrušit
Uložit