3 Star 3 Fork 2

Gitee 极速下载/Embark

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
dapps
packages
scripts
check-working-tree.js
check-yarn-lock.js
coverage-collect.js
coverage-collector.js
coverage-report.js
coveralls-branch-name.js
coveralls-pr-id.js
fix-versions.js
globalize.js
monorun.js
nightly-release.js
release.js
stable-release.js
site
.editorconfig
.eslintrc.json
.gitattributes
.gitignore
.npmrc
.yarnrc
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
azure-pipelines.yml
babel.config.js
header.jpg
lerna.json
package.json
tsconfig.base.json
tsconfig.json
tslint.json
yarn.lock
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/embark-framework/embark
克隆/下载
monorun.js 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
// there seems to be a bug in yarn whereby forwarding arguments with -- like so:
// $ yarn monorun [...] -- --foo
// results in [...] being stripped away; can workaround with:
// $ yarn monorun -- [...] -- --foo
// but note that yarn warns about a future behavioral change re: yarn and --
const {dirname} = require('path');
const {spawn} = require('child_process');
const {sync: findUp} = require('find-up');
const minimist = require('minimist');
const monorepoRootPath = dirname(findUp('lerna.json'));
let cliArgs = process.argv.slice(2);
const options = minimist(
cliArgs,
{boolean: [
'include-filtered-dependents',
'include-filtered-dependencies',
'no-bail',
'no-prefix',
'no-private',
'no-progress',
'no-sort',
'parallel',
'reject-cycles',
'stream'
]}
);
Object.keys(options).forEach(key => {
const invKey = key.slice(3);
if (key.startsWith('no-') && options.hasOwnProperty(invKey)) {
options[key] = !options[invKey];
delete options[invKey];
}
});
process.env.EMBARK_COLLECTIVE_OPTIONS = JSON.stringify(options);
if (cliArgs.includes('--scope')) {
cliArgs.push('--scope', 'embark-collective');
}
const npxCmd = process.platform === 'win32' ? 'npx.cmd': 'npx';
const subp = spawn(npxCmd, [
'lerna',
'run',
...cliArgs
], {
cwd: monorepoRootPath,
stdio: 'inherit'
});
subp.on('close', code => process.exit(code));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/Embark.git
git@gitee.com:mirrors/Embark.git
mirrors
Embark
Embark
master

搜索帮助