Skip to content

Commit

Permalink
chore: use pnpm instead of yarn; update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sshwy committed Feb 29, 2024
1 parent 0d4fd92 commit 3333b7c
Show file tree
Hide file tree
Showing 6 changed files with 1,318 additions and 2,215 deletions.
1 change: 0 additions & 1 deletion web/.yarnrc.yml

This file was deleted.

4 changes: 4 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## Development

```
pnpm i
```

`ems_loader.mjs` 的作用是在 `vitepress` 构建的时候使用 esm 模式解析 `lamcalc` 模块(`wasm-pack` 没生成好)。
对此还需要在环境参数里开启实验性的 WASM。

Expand Down
2 changes: 1 addition & 1 deletion web/components/lambda/Exp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Ident from './Ident.vue';
import AbsHead from './AbsHead.vue';
import { computed, inject, ref } from 'vue';
import { useDebounceFn } from '@vueuse/shared';
import { useDebounceFn } from '@vueuse/core';
import { betaReduceKey, etaReduceKey, replaceNameKey } from '../LambdaInteractive.vue';
import { decorKey } from './LambdaExp.vue';
Expand Down
19 changes: 9 additions & 10 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{
"name": "web",
"packageManager": "[email protected]",
"type": "module",
"devDependencies": {
"@types/katex": "^0.16.7",
"@types/node": "^18.15.3",
"@vueuse/core": "^10.9.0",
"git-describe": "^4.1.1",
"katex": "^0.16.9",
"lamcalc": "file:../pkg",
"vite-plugin-top-level-await": "^1.3.0",
"vite-plugin-wasm": "^3.2.2",
"vitepress": "^1.0.0-beta.3"
"markdown-it-footnote": "^4.0.0",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.3.0",
"vitepress": "1.0.0-rc.44",
"vue": "^3.4.21"
},
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "NODE_OPTIONS='--experimental-wasm-modules --experimental-loader ./ems_loader.mjs' vitepress build docs",
"debug:build": "DEBUG=true NODE_OPTIONS='--experimental-wasm-modules --experimental-loader ./ems_loader.mjs' vitepress build docs",
"docs:preview": "vitepress preview docs",
"docs:build-github-pages": "NODE_OPTIONS='--experimental-wasm-modules --experimental-loader ./ems_loader.mjs' vitepress build docs --base /lamcalc/"
},
"dependencies": {
"@types/katex": "^0.16.0",
"@vueuse/core": "^9.13.0",
"katex": "^0.16.4",
"markdown-it-footnote": "^3.0.3"
}
}
Loading

0 comments on commit 3333b7c

Please sign in to comment.