From 16067ef1406a0d6680e6f8906130209548186aab Mon Sep 17 00:00:00 2001 From: Sebastien Soudan Date: Mon, 28 Aug 2023 00:32:08 +0000 Subject: [PATCH] feat: release build --- .devcontainer/Dockerfile | 2 +- .github/workflows/ci.yml | 4 ++-- package.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b4795a6..d468d7f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ FROM mcr.microsoft.com/devcontainers/base:bullseye RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ - && apt-get -y install --no-install-recommends build-essential pkg-config libssl-dev \ + && apt-get -y install --no-install-recommends build-essential pkg-config libssl-dev binaryen \ && apt-get clean -y && rm -rf /var/lib/apt/lists/* diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd386ab..475cd54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: cargo test --all-targets --all-features cargo clippy --all-targets --all-features -- -D warnings cargo build - npm install - npm run build + npm install + npm run release - name: Restore permissions run: | diff --git a/package.json b/package.json index 9cef7ac..0daae81 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "scripts": { + "release": "webpack -c webpack.config.js --mode production", "build": "webpack", "serve": "webpack serve" }, @@ -16,4 +17,4 @@ "dependencies": { "wasm-pack": "^0.11.0" } -} +} \ No newline at end of file