From 7f83916cd16da4dd3be885c0326f390fe1b6e0d4 Mon Sep 17 00:00:00 2001 From: codecalm Date: Fri, 20 Mar 2020 15:21:43 +0100 Subject: v1.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37ee789f..40b58640 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tabler-icons", - "version": "1.0.0", + "version": "1.0.1", "repository": { "type": "git", "url": "git+https://github.com/tabler/tabler-icons.git" -- cgit v1.2.1 From e58f56dadbacf2e10e93e90918c5e7be3855a674 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 21 Mar 2020 21:05:33 +0100 Subject: sprite-nostroke new file, version 1.0.2 --- .github/icons.png | Bin 77085 -> 76711 bytes gulpfile.js | 7 ++++--- package.json | 7 ++++--- tabler-sprite-nostroke.svg | 1 + 4 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 tabler-sprite-nostroke.svg diff --git a/.github/icons.png b/.github/icons.png index 37c2fd10..dd929efe 100644 Binary files a/.github/icons.png and b/.github/icons.png differ diff --git a/gulpfile.js b/gulpfile.js index 37f6b224..679c3efe 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -91,6 +91,7 @@ gulp.task('icons-sprite', function (cb) { let svg = `${svgContent}`; fs.writeFileSync('tabler-sprite.svg', svg); + fs.writeFileSync('tabler-sprite-nostroke.svg', svg.replace(/stroke-width="2"\s/g, '')); cb(); }); }); @@ -189,7 +190,7 @@ gulp.task('optimize', function (cb) { .replace(/><\/(polyline|line|rect|circle|path)>/g, '/>') .replace(/rx="([^"]+)"\s+ry="\1"/g, 'rx="$1"') .replace(/\s?\/>/g, ' />') - .replace(/\n\s*<(line|circle|path|polyline)/g, "\n <$1") + .replace(/\n\s*<(line|circle|path|polyline|rect)/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"); @@ -204,7 +205,7 @@ gulp.task('optimize', function (cb) { gulp.task('build-zip', function(cb) { const version = p.version; - return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg}') + return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg,tabler-sprite-nostroke.svg}') .pipe(zip(`tabler-icons-${version}.zip`)) .pipe(gulp.dest('packages')) }); @@ -241,4 +242,4 @@ gulp.task('svg-to-png', gulp.series('build-jekyll', 'clean-png', async (cb) => { cb(); })); -gulp.task('build', gulp.series('build-jekyll', 'build-copy', 'build-zip')); +gulp.task('build', gulp.series('optimize', 'build-jekyll', 'build-copy', 'icons-sprite', 'icons-preview', 'build-zip')); diff --git a/package.json b/package.json index 40b58640..ce58a0c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tabler-icons", - "version": "1.0.1", + "version": "1.0.2", "repository": { "type": "git", "url": "git+https://github.com/tabler/tabler-icons.git" @@ -13,7 +13,8 @@ "files": [ "icons/*", "icons-png/*", - "tabler-sprite.svg" + "tabler-sprite.svg", + "tabler-sprite-nostroke.svg" ], "homepage": "https://github.com/tabler/tabler-icons#readme", "main": "gulpfile.js", @@ -21,7 +22,7 @@ "precommit": "gulp optimize", "optimize": "gulp optimize", "start": "bundle exec jekyll serve --watch --livereload", - "build": "gulp optimize && gulp build && gulp icons-preview && gulp icons-sprite", + "build": "gulp build", "png": "gulp svg-to-png" }, "description": "", diff --git a/tabler-sprite-nostroke.svg b/tabler-sprite-nostroke.svg new file mode 100644 index 00000000..5bcc7940 --- /dev/null +++ b/tabler-sprite-nostroke.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.1