Package Exports
- @paintswap/estfor-definitions
- @paintswap/estfor-definitions/index.js
- @paintswap/estfor-definitions/src/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@paintswap/estfor-definitions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-definitionsyarn add -D @paintswap/estfor-definitionsOnce 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_LOGIt 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 buildyarn buildUse Locally
NPM
From library root:
npm linkFrom project root:
npm link @paintswap/estfor-definitionsYarn
From library root:
yarn linkFrom project root:
yarn link @paintswap/estfor-definitionsYalc
Install yalc
npm install -g yalc@latestyarn add -g yalc@latestFrom library root:
yalc publishFrom project root:
yalc add @paintswap/estfor-definitionsUse newly published updates to local yalc repository.
yalc updateRevert to NPM Repository
yalc remove @paintswap/estfor-definitions
yarn add @paintswap/estfor-definitionsManual Publish to NPM (--access=public needed the first time)
npm publishyarn publishVia 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