提交 2eb0f815 编写于 作者: C Catouse

* update gulp script.

上级 0bb53351
此差异已折叠。
{
"version": "1.9.1.2",
"updateTime": "2020-05-11 13:42",
"version": "1.9.1.3",
"updateTime": "2020-06-19 13:40",
"chapters": {
"contribution": {
"name": "贡献",
......@@ -232,20 +232,6 @@
}
],
"filter": "chanzhi cz"
},
{
"id": "ranzhi",
"name": "然之",
"desc": "中小企业一体化协同管理最佳解决方案!",
"icon": "docs/img/ranzhi_icon.png",
"url": "https://www.ranzhico.com/",
"topics": [
{
"name": "云然之",
"url": "https://www.ranzhico.com/ranzhisaas-plans.html"
}
],
"filter": "ranzhi rz"
}
],
"filter": "tuijian tj"
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -537,7 +537,7 @@ gulp.task('watch', function (callback) {
});
['dist', 'doc', 'theme', 'lib'].forEach(function (name) {
var depsTasks = (name == 'dist' || name == 'doc') ? ['minJSON'] : [];
var depsTasks = (name == 'dist' || name == 'doc') ? ['minJSON', 'minJSON-en'] : [];
gulp.task(name, depsTasks, function (callback) {
console.log(' BEGIN >> ' + (' Build ' + name.bold + ' ').inverse);
buildBundle(name == 'lib' ? 'seperate' : name, function () {
......@@ -551,16 +551,18 @@ gulp.task('watch', function (callback) {
});
});
gulp.task('minJSON', function (cb) {
gulp.src(['./docs/index.json', './docs/icons.json'])
gulp.task('minJSON', function(cb) {
gulp.src(['./docs/index.json', './docs/icons.json', 'zui.json'])
.pipe(jsonminify())
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('./docs/'));
gulp.src(['zui.json'])
.pipe(gulp.dest('./docs/')).on('end', cb);
});
gulp.task('minJSON-en', function(cb) {
gulp.src(['./en/docs/index.json', './docs/icons.json', 'zui.json'])
.pipe(jsonminify())
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('./docs/'));
cb();
.pipe(gulp.dest('./en/docs/')).on('end', cb);
});
gulp.task('prettify:js', function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册