Skip to content

Commit

Permalink
feat: setup web assembly (#97)
Browse files Browse the repository at this point in the history
* feat: setup `web assembly`

* feat: add `js-sys` and load wasm

* ci: wasm build

* feat: implement rust for wasm

* chore: clean up wasm

* feat: add `group` for Eacharts
  • Loading branch information
Gumichocopengin8 committed Aug 13, 2023
1 parent b06ca01 commit 52e65f9
Show file tree
Hide file tree
Showing 21 changed files with 1,303 additions and 303 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/playwrightCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
with:
node-version: 18
- name: Install dependencies
run: npm ci
run: |
npm ci
npm run build:wasm
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright e2e tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/webCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"react/react-in-jsx-scope": "off",
"react/self-closing-comp": ["error"],
"react/display-name": "off", // TODO: remove this in the future
Expand Down
10 changes: 1 addition & 9 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');

const isProd = process.env.ENVIRONMENT === 'product_env';

module.exports = {
Expand All @@ -26,13 +23,8 @@ module.exports = {
reactStrictMode: true,

webpack(config, options) {
config.plugins = config.plugins || [];

config.plugins = [...config.plugins];
config.experiments = { ...config.experiments, asyncWebAssembly: true };

config.resolve.alias['components'] = path.join(__dirname, 'src/components');
config.resolve.alias['api'] = path.join(__dirname, 'src/api');
config.resolve.alias['interfaces'] = path.join(__dirname, 'src/interfaces');
return config;
},
};
Loading

0 comments on commit 52e65f9

Please sign in to comment.