diff options
author | codecalm <codecalm@gmail.com> | 2020-03-21 12:16:18 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-21 12:16:18 +0100 |
commit | d6df9fa7c4ca1b0b6599f7338b5af9afd643bfed (patch) | |
tree | 03aad476ed8fd2492aa4c25a2c8fd2ccf71fd0d1 /gulpfile.js | |
parent | zip task (diff) | |
parent | new icons png (diff) | |
download | tabler-icons-d6df9fa7c4ca1b0b6599f7338b5af9afd643bfed.tar.xz |
Merge branches 'dev' and 'master' of https://github.com/tabler/tabler-icons into dev
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index 406ef60b..37f6b224 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -191,6 +191,7 @@ gulp.task('optimize', function (cb) { .replace(/\s?\/>/g, ' />') .replace(/\n\s*<(line|circle|path|polyline)/g, "\n <$1") .replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"') + .replace(/a([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/g, 'a$1 $2 $3 $4 $5 $6 $7') .replace(/\n\n+/g, "\n"); fs.writeFileSync(file, svgFileContent); @@ -204,7 +205,7 @@ gulp.task('build-zip', function(cb) { const version = p.version; return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg}') - .pipe(zip(`${version}.zip`)) + .pipe(zip(`tabler-icons-${version}.zip`)) .pipe(gulp.dest('packages')) }); |