tronweb
v6.0.0-beta.2 TRON tronweb
lint
eslint src
test
npm run build:test && npm run-script newaccount && npx mocha 'lib/commonjs/test/**/*.test.js' --timeout 120000
btest
npm run build:dev && npm run test
build
npm run clean && webpack --config webpack.config.js --progress --color
clean
rimraf dist
testTx
node scripts/test-node.js && node test/helpers/newAccounts 100 && npx mocha 'test/**/transaction.test.js' --timeout 120000
prepare
husky install && npm run build
testAbi
node scripts/test-node.js && node test/helpers/newAccounts 1 && npx mocha 'test/**/abi.test.js' --timeout 120000
coverage
npm run-script test:browser && npm run-script test
lint:fix
eslint src --fix
test:esm
npm run-script newaccount && npx mocha 'lib/esm/test/**/*.test.js' --timeout 120000
build:all
npm run clean:all && npm run build:esm && npm run build:cjs && npm run build:dist
build:cjs
tsc --project tsconfig.cjs.json && echo '{"type": "commonjs"}' > ./lib/commonjs/package.json && npm run copy-protocol:cjs
build:dev
NODE_ENV=development npm run build
build:esm
tsc --project tsconfig.esm.json && echo '{"type": "module"}' > ./lib/esm/package.json && npm run copy-protocol:esm
clean:all
rimraf dist lib
build:dist
webpack --config webpack.config.js --progress --color
build:test
tsc --project tsconfig.test.json && echo '{"type": "commonjs"}' > ./lib/commonjs/package.json && cp -R ./src/protocol ./lib/commonjs/src/
format-all
prettier --write ./src
newaccount
node scripts/test-node.js && node lib/commonjs/test/helpers/newAccounts 100
build:types
tsc --project tsconfig.types.json
test:browser
npm run-script newaccount && node scripts/test-browser.js && npx karma start --single-run --browsers ChromeHeadless
test-no-accounts
node scripts/test-node.js && npx mocha 'test/**/*.test.js'
copy-protocol:cjs
cp -R ./src/protocol ./lib/commonjs/
copy-protocol:esm
cp -R ./src/protocol ./lib/esm/