@0x/mesh-browser 中文文档教程
@0x/mesh-browser
这个包提供了一种简单的方法来运行基于浏览器的 Mesh 节点。 具体来说,它 提供可用于与网格交互的 Typescript 和 Javascript 绑定 在浏览器中运行并处理加载网格节点的过程的节点 在网页上。 因为这个包处理 Wasm 加载,所以它是 比@0x/mesh-browser-lite 更重,加载时间可能更长 包裹。
Installation
yarn add @0x/mesh-browser
如果您的项目使用 TypeScript,请将以下内容添加到您的 tsconfig.json
:
"compilerOptions": {
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
Contributing
如果您想贡献客户端的错误修复或新功能,检查 0xproject/0x-mesh 项目并使用以下命令安装依赖项、构建、lint 和测试您的更改。
Install dependencies
yarn install
Build
yarn build
Clean
yarn clean
Lint
yarn lint
@0x/mesh-browser
This package provides an easy way to run a browser-based Mesh node. Specifically, it provides Typescript and Javascript bindings that can be used to interact with a Mesh node that is running in the browser and handles the process of loading the mesh node on the webpage. Because of the fact that this package handles Wasm loading, it is considerably heavier-weight and may take longer to load than the @0x/mesh-browser-lite package.
Installation
yarn add @0x/mesh-browser
If your project is in TypeScript, add the following to your tsconfig.json
:
"compilerOptions": {
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
Contributing
If you would like to contribute bug fixes or new features to the client, checkout the 0xproject/0x-mesh project and use the below commands to install the dependencies, build, lint and test your changes.
Install dependencies
yarn install
Build
yarn build
Clean
yarn clean
Lint
yarn lint