@holochain/holochain-nodejs0.4.15-alpha1 • Public • Published
NodeJS Holochain Conductor, primarily for the execution of tests. It includes a lightweight API for orchestrating multi-agent scenario tests.
The recommended way to install is via npm https://www.npmjs.com/package/@holochain/holochain-nodejs.
To build from source clone the repo and run
from the node folder.
You can use this built version by linking it
Then in the project you want to use it from run
npm link @holochain/holochain-nodejs
Make sure you have removed it from the package.json file a a dependency before you npm install the rest of your dependencies.
See here for details: https://developer.holochain.org/guide/latest/intro_to_testing.html.
Recommended pattern for deployment:
In your CLI, navigate to the directory containing these files.
npm version [patch, minor, major] (depending on the type of update)
This will update the package.json.
Push it to github.
Create a tag on github of the format
Y.Y.Y is the version number of the tag. This is really important, as only a tag with this format will trigger release builds to happen. This is configured in the .travis.yml file.
This will cause the CI to build for all platforms, and upload the binaries to github releases.
If are added as a team member on the holochain team on npm, and have previously run
npm adduser, skip this step.
If you haven't, run
Use the details of your npm user to login.
Once travis has finished with the binary uploads to releases (progress can be seen at https://travis-ci.org/holochain/holochain-rust) run the following from your computer, from the
node ./publish.js --publish
Until windows for travis can utilize secure environment variables without breaking (its not available as a feature yet), we cannot re-enable the automated npm publish step. When the time comes, the configuration is already in the travis file, commented out.
- Julian Laubstein firstname.lastname@example.org
- Connor Turland email@example.com
- Willem Olding firstname.lastname@example.org
- Michael Dougherty email@example.com
- Thanks to IronCoreLabs for the example of deploying neon modules via npm (https://github.com/IronCoreLabs/recrypt-node-binding)
Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.
Copyright (C) 2019, Holochain Foundation
This program is free software: you can redistribute it and/or modify it under the terms of the license p rovided in the LICENSE file (GPLv3). This program is distributed in the hope that it will be useful, bu t WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Note: We are considering other 'looser' licensing options (like MIT license) but at this stage are using GPL while we're getting the matter sorted out. See this article for some of our thinking on licensing for distributed application frameworks.