Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@wrhs/release-line

warehouseai55MITdeprecated2.0.0

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Manage release lines for integrating robust dependent builds in warehouse/feedsme

warehouse.ai, feedsme, release-line

readme

@wrhs/release-line

Version npm License npm Downloads Build Status Dependencies

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

changelog

Changelog

2.0.0

  • use dynamodb's version of warehouse-models
  • #5 Add collected docs and badges.