astore-builder
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

pegasus-builder

构建器依赖的相关基础服务

模块 seed 依赖计算

const { seed } = require('@ali/pegasus-builder');

const packages = {
  '@ali/universal-env': '^1.1.10',
  'rax-text': '*',
  'rax-view': '^0.6.5',
  '@ali/mui-zepto': '5.0.x',
  '@ali/pmod-fedata': '5.0.9999',
  '@ali/pcom-page-error': '*',
  '@ali/pi-kissy-pc': '*'
};
seed(packages).then(res => {
  //{seed:{}, unpublished:[]}
  console.log(res);
});

模块预发发布版本计算服务

const { beta } = require('@ali/pegasus-builder');

const name = '@ali/tnpm-beta-test';
const version = '1.1.0';
const notfound = '1.2.0';

beta(name, version).then(betaVersion => {
  // 1.1.0-beta.2
  console.log(betaVersion);
});

beta(name, notfound).then(betaVersion => {
  // 1.2.0-beta.0
  console.log(betaVersion);
});

Readme

Keywords

none

Package Sidebar

Install

npm i astore-builder

Weekly Downloads

1

Version

0.1.9

License

ISC

Unpacked Size

75.4 kB

Total Files

21

Last publish

Collaborators

  • lllang
  • leestein
  • danger7