@paintswap/estfor-definitions
v2.0.50
Published
Types and constants for Estfor Kingdom
Downloads
2,465
Readme
Estfor Kingdom Types & Constants (estfor-definitions)
Estfor Kingdom types
and constants
available for
Javascript,
TypeScript, and
AssemblyScript / WebAssembly.
The items in this library will allow you to interact with Estfor Kingdom via:
- Vanilla JS applications
- React, Angular, and other front end frameworks
- NodeJS / Typescript back end services
- AssemblyScript / WebAssembly for use with The Graph Protocol's web3 indexing
Usage
To use Estfor Kingdom types and constants in your project, first import the dev dependency:
npm install -D @paintswap/estfor-definitions
yarn add -D @paintswap/estfor-definitions
Once installed, the EstforConstants
, EstforTypes
, and NONE
type will be exposed. You can then access the individual types from their parent.
import { EstforConstants, EstforTypes, NONE } from '@paintswap/estfor-definitions'
const { LOG } = EstforConstants
const MAPLE_LOG = EstforConstants.MAPLE_LOG
It is also possible to import specific items directly.
import { LOG } from '@paintswap/estfor-definitions/constants'
import { Skill } from '@paintswap/estfor-definitions/types'
Development
Build
npm run build
yarn build
Use Locally
NPM
From library root:
npm link
From project root:
npm link @paintswap/estfor-definitions
Yarn
From library root:
yarn link
From project root:
yarn link @paintswap/estfor-definitions
Yalc
Install yalc
npm install -g yalc@latest
yarn add -g yalc@latest
From library root:
yalc publish
From project root:
yalc add @paintswap/estfor-definitions
Use newly published updates to local yalc repository.
yalc update
Revert to NPM Repository
yalc remove @paintswap/estfor-definitions
yarn add @paintswap/estfor-definitions
Manual Publish to NPM (--access=public needed the first time)
npm publish
yarn publish
Via github CI
- Push any changes to github
- Create a new release version with
yarn version
- It will tag and push to Github which will trigger the CI to publish to NPM