boardgame.js附带JavaScript UI库

boardgame.js库在使用桌游WASM时是几乎必备的。它位于`./src`,通过`webpack.config.js`配置,运行`npm run build-lib`进行构建。输出文件存放在`./dist/index.js`。UI组件库在使用桌游WASM时非常有用,包含了一些用标准组件编写的内容。UI组件库位于`./components`,通过`components.config.js`配置,运行`npm run build-components`进行构建。输出文件存放在`./dist/components.js`。示例项目提供了一个项目示例。使用方法是将`boardgame.js`和`boardgame.wasm`(Haskell项目的输出)放在`./dist`,然后运行`npm start`。这将在本地启动开发服务器。示例项目文件位于`./example`。
zip
boardgame_js-main.zip 预估大小:18个文件
folder
boardgame.js-main 文件夹
file
.gitignore 1KB
file
example.config.js 644B
folder
components 文件夹
file
GameOverStatus.tsx 1KB
file
NotificationArea.tsx 2KB
file
StartButton.tsx 1KB
file
index.ts 271B
file
ColoredGraphDisplay.tsx 4KB
file
TurnDisplay.tsx 872B
file
package.json 789B
file
package-lock.json 174KB
folder
src 文件夹
file
index.ts 2KB
file
webpack.config.js 333B
file
components.config.js 429B
file
tsconfig.json 193B
file
README.md 879B
folder
example 文件夹
file
HexDisplay.ts 742B
file
index.html 2KB
file
index.tsx 439B
zip 文件大小:60.49KB