astore-builder
v0.1.9
Published
astore构建基础服务
Downloads
8
Readme
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);
});