@matterlabs/zksync-nuxt-core
v1.12.3
Published
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![License][license-src]][license-href]
Downloads
287
Keywords
Readme
zkSync DApp Nuxt Module
Setup
- Add
@matterlabs/zksync-nuxt-core
dependency to your project
yarn add @matterlabs/zksync-nuxt-core
# or
npm install @matterlabs/zksync-nuxt-core
- Add
@matterlabs/zksync-nuxt-core
to thebuildModules
section ofnuxt.config.js
JS
{
buildModules: [
[
"matter-dapp-ui",
{
// module options (ref. types/index.ts ModuleOptions)
},
]
],
}
TS
import { ModuleOptions } from "matter-dapp-ui/types";
{
buildModules: [
[
"matter-dapp-ui",
<ModuleOptions>{
// module options (ref. types/index.ts ModuleOptions)
},
]
],
}
Development
- Clone this repository
- Go to the package and link it with
yarn link
- Go to your nuxt project where you want to use the module
- Install link dependency with
yarn link @matterlabs/zksync-nuxt-core
- Import the module into your project as shown above
- Done ✅