TypeScript test and dApp utils for the Flow blockchain.
npm i -D @samatech/onflow-ts
BASE_PATH
Required
Directory where the app's Cadence files are located
CDC_DIRECTORIES
Subdirectories containing Cadence contracts, transactions, and scripts.
Default
{
'CONTRACT': './contracts/',
'TRANSACTION': './transactions/',
'SCRIPT': './scripts/',
}
Install packages with PNPM
pnpm install
# tsc
npm run build
# Jest
npm run test
# ESlint
npm run lint
# Use Prettier to format files
npm run format
# Just check the formatting (used in CI)
npm run format:check
Currently, a custom release script is used to update the version and publish to NPM. This must be executed on the main branch, and <version>
must not equal the current version on NPM.
node scripts/release.js <version>