From d3df1ede5ad9bf1eead7f3d874c54300ff245d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Tue, 2 Jan 2024 16:23:44 +0000 Subject: [PATCH] chore: new production deployments --- .github/workflows/deploy.yml | 2 +- .gitlab-ci.yml | 2 +- frontends/web/package.json | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 123b3773..63ceb012 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -130,7 +130,7 @@ jobs: - name: Build Web code run: | cd frontends/web - npm install && npm run build + npm install && NODE_ENV=production npm run build - name: Bundle files run: | apt-get update && apt-get install -y -q zip diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de3b93a3..80ba09fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ build-wasm: - rustc --version - cargo install wasm-pack - wasm-pack build --release --target=web --out-dir=frontends/web/lib -- --features wasm - - cd frontends/web && npm install && npm run build && npm run lint + - cd frontends/web && npm install && NODE_ENV=production npm run build && npm run lint artifacts: paths: - frontends/web/dist diff --git a/frontends/web/package.json b/frontends/web/package.json index 915278fa..7449e901 100644 --- a/frontends/web/package.json +++ b/frontends/web/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "scripts": { - "build": "NODE_ENV=production parcel build index.html", + "build": "parcel build index.html", "dev": "parcel index.html", "lint": "eslint .", "nodemon": "nodemon --exec \"parcel --no-cache index.html\"", @@ -19,11 +19,10 @@ "source": "index.ts", "devDependencies": { "@parcel/transformer-typescript-tsc": "^2.10.3", - "@types/node": "^20.10.6", "@types/react": "^18.2.46", "@types/react-dom": "^18.2.18", - "@typescript-eslint/eslint-plugin": "^6.17.0", - "@typescript-eslint/parser": "^6.17.0", + "@typescript-eslint/eslint-plugin": "^6.16.0", + "@typescript-eslint/parser": "^6.16.0", "buffer": "^6.0.3", "emukit": "^0.9.4", "eslint": "^8.56.0", -- GitLab