7 Star 16 Fork 2

Javey / Intact

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
publish.js 436 Bytes
一键复制 编辑 原始数据 按行查看 历史
Javey 提交于 2015-12-02 21:50 . only update when the widget has rendered
var _package = require('./package.json'),
stream = require('stream'),
childProcess = require('child_process');
function exec(command) {
console.log(command);
var cmd = childProcess.exec(command);
cmd.stdout.pipe(process.stdout);
cmd.stderr.pipe(process.stderr);
}
exec('npm publish');
exec('git tag -a v' + _package.version + ' -m "Release version ' + _package.version + '" && git push origin master --tags');
JavaScript
1
https://gitee.com/javey/Intact.git
git@gitee.com:javey/Intact.git
javey
Intact
Intact
master

搜索帮助