@wrhs/release-line
A thin wrapper around the release-line
models in
warehouse-models
to enable properly compiling the
release-line
data structure.
Install
npm install @wrhs/release-line --save
Usage
The intended usage is for providing some higher level operations on top of the
release-line
related models in warehouse-models
const thenify = require('tinythen');
const Datastar = require('datastar');
const wrhsModels = require('warehouse-models');
const cassConfig = require('./config')
const ReleaseLine = require('@wrhs/release-line');
function async main() {
const datastar = new Datastar(cassConfig);
const models = wrhsModels(datastar);
const release = new ReleaseLine({ models });
await thenify(datastar, 'connect');
await release.create({ version: '4.0.0', pkg: 'releaseline-test' });
}
main()
What is a release-line
?
This concept is meant to encapsulate a root package and the packages that
depend at specific versions that were built together in order to be able to
consistently promote them as a group between environments. For the
warehouse.ai
system this is meant to ensure that your package
and its dependents that were built in DEV at whatever versions will be
correctly promoted through environments without mistakenly getting an updated
version of a dependent package.
Test
Ensure you have cassandra running locally first. You can follow
this guide to install it on OSX. It should be similar
for other operating systems as well.
npm test