@terra-money/amino-js

v3.2.0
terra tendermint/go-amino for JavaScript

build

webpack --config build --progress --colors --display-error-details

clean

rm -rf ./dist/*

dirs

mkdir ./dist

dist:dev

npm run clean && npm run go && NODE_ENV=development npm run build

dist:prod

npm run clean && npm run go:min && NODE_ENV=production npm run build && npm run gzip

docs

typedoc src/*.ts src/types/*.ts lib/types.ts

go

cd go/js && gopherjs build -v -o ../../lib/Amino.js .

go:min

npm run go -m

go:wasm

cd go/wasm && GOOS=js GOARCH=wasm go build -o ../../dist/Amino.wasm .

go:watch

npm run go -w

gzip

gzip -kf ./dist/*.{js,map}

gzip:wasm

gzip -kf ./dist/*.wasm

lint

eslint --ext .ts,.js .

nuke

rm -rf **/node_modules npm run.lock

prepare

tsc && npm run lint && npm run dist:prod && npm run test

reset

npm run nuke && npm run

setup

npm run dirs && npm run dist:dev

server

go run server.go

static

cp ./static/* ./dist/

test

jest --config ./test/jest.config.json

wasm:exec

cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./dist/

watch

npm run build --watch
npm i @terra-money/amino-js

Metadata

Downloads