Skip to content

Commit

Permalink
chore(release): release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
huaweidevcloud authored and wangyaju committed Jun 2, 2021
1 parent 23411c0 commit da7a36b
Show file tree
Hide file tree
Showing 27 changed files with 1,049 additions and 757 deletions.
15 changes: 6 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ var iconfont = require('gulp-iconfont');
var iconfontCss = require('gulp-iconfont-css');
var template = require('gulp-template');

var runSequence = require('run-sequence');
var cssUrls = require('gulp-css-urls');

var fontName = 'devui-icomoon';
var devUIFontDir = './icomoon/';
var runTimestamp = Math.round(Date.now() / 1000);

gulp.task('iconfont', function () {
gulp.task('iconfont', function (done) {
gulp.src(devUIFontDir + 'svg/**/*.svg')
.pipe(iconfontCss({
fontName: fontName,
Expand All @@ -33,9 +30,10 @@ gulp.task('iconfont', function () {
console.log(glyphs, options);
})
.pipe(gulp.dest( './icomoon/fonts'));
done();
});

function getIcons( dir) {
function getIcons(dir) {
let opIcons = [];
if(fs.existsSync("./" + dir)) {
opIconsTmp = fs.readdirSync("./" + dir);
Expand All @@ -49,10 +47,8 @@ function getIcons( dir) {
return opIcons;
}

gulp.task('demo', function () {
let dirname = './';

gulp.src(`${dirname}/templates/index.html`)
gulp.task('demo', function (done) {
gulp.src(`./templates/index.html`)
.pipe(template({
meanIcons: getIcons("icomoon/svg/mean"),
opIcons: getIcons("icomoon/svg/op"),
Expand All @@ -64,5 +60,6 @@ gulp.task('demo', function () {
cssName: 'devui-icon',
}))
.pipe(gulp.dest("."));
done();
});

Loading

0 comments on commit da7a36b

Please sign in to comment.