diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 123b3773702d2bd74ab4240ffc4dd9fa20965653..63ceb012ca9a4ca4b54b07066380938313705a9a 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 de3b93a331963bfd23b211f95f1c99444b338113..80ba09fceded8cc968c581db0c10bc2fb182181f 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 915278fac97937c31d78e7700cf2a82f57772ea5..7449e901dd1784a7b377c8e85c52b8f346c88f10 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",