diff --git a/.github/workflows/typescript-tests.yml b/.github/workflows/typescript-tests.yml index 26c98501..88f186c5 100644 --- a/.github/workflows/typescript-tests.yml +++ b/.github/workflows/typescript-tests.yml @@ -109,9 +109,27 @@ jobs: with: node-version: '20' + - name: Build rustlib for standalone_app + working-directory: rustlib + run: | + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + wasm-pack build --target web + - name: Setup tslib run: make tslib + - name: Build standalone_app for vscode extension + working-directory: standalone_app + run: | + npm install + npm run build:vscode + + - name: Build standalone_app for GitHub pages + working-directory: standalone_app + run: | + npm install + npx vite build --out-dir ./gh-pages + - name: Build bundle.js working-directory: optuna_dashboard run: | diff --git a/standalone_app/webpack.config.js b/standalone_app/webpack.config.js index 4c599a49..ed589617 100644 --- a/standalone_app/webpack.config.js +++ b/standalone_app/webpack.config.js @@ -36,6 +36,12 @@ module.exports = { test: /\.wasm$/, type: "asset/inline", }, + { + test: /\.m?js/, + resolve: { + fullySpecified: false + } + } ] }, resolve: {