The official Typescript sdk to interact with the grams network.
npm install grams-sdk
import { someFunction } from 'grams-sdk';
// use someFunction
Refer to github pages for more details
To build the package, run:
npm run build:prod
For windows:
npm run build:prod:windows
This will compile the TypeScript source code to JavaScript and place it in the dist directory.
To run the tests, run:
npm test
The below commands will:
- build
- test
- lint
- format
- push a new commit and tag for the version.
- publish to NPM
To release a major version to NPM run:
npm run release:major
To release a minor version to NPM run:
npm run release:minor
To release a patch version to NPM run:
npm run release:patch
To format the code, run:
npm run format
This will use Prettier to format all TypeScript files in the src directory.
To lint the code, run:
npm run lint
This will use TSLint to check the code for any style or syntax errors.
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.