Bitcoin Computer Monorepo
Get started
git clone https:
yarn install
lerna bootstrap
Publish Public Packages
Obfuscate code and copy from lib
to lib-secret
and from node
to node-secret
.
yarn deploy
Publish to npm packages @bitcoin-computer/node
and @bitcoin-computer/lib
.
yarn publish
Publish Testing Packages
Obfuscate code and copy from lib
to lib-secret
and from node
to node-secret
.
yarn deploy
Publishes to npm packages @bitcoin-computer/node-testing
and @bitcoin-computer/lib-testing
yarn publish-testing
Scripts
Makes sure that current git tree is clean.
yarn git-changes-check
Rename public packages with correct names.
yarn cleanup-public-package-json-testing
Commit these name changes (lerna will only publish if everything is committed).
yarn pre-git-commit
Publish public testing packages, lerna will also make a commit of version update, and then a release will be created on github.
yarn publish
Undo all the name changing.
test-post-publish-changes
Commit and push above changes.
yarn post-git-commit
Refer to readme of individual packages to get more details about it.