Skip to content

Commit e58f56d

Browse files
committed
sprite-nostroke new file, version 1.0.2
1 parent 7f83916 commit e58f56d

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Diff for: .github/icons.png

-374 Bytes
Loading

Diff for: gulpfile.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ gulp.task('icons-sprite', function (cb) {
9191
let svg = `<svg xmlns="http://www.w3.org/2000/svg"><defs>${svgContent}</defs></svg>`;
9292

9393
fs.writeFileSync('tabler-sprite.svg', svg);
94+
fs.writeFileSync('tabler-sprite-nostroke.svg', svg.replace(/stroke-width="2"\s/g, ''));
9495
cb();
9596
});
9697
});
@@ -189,7 +190,7 @@ gulp.task('optimize', function (cb) {
189190
.replace(/><\/(polyline|line|rect|circle|path)>/g, '/>')
190191
.replace(/rx="([^"]+)"\s+ry="\1"/g, 'rx="$1"')
191192
.replace(/\s?\/>/g, ' />')
192-
.replace(/\n\s*<(line|circle|path|polyline)/g, "\n <$1")
193+
.replace(/\n\s*<(line|circle|path|polyline|rect)/g, "\n <$1")
193194
.replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"')
194195
.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')
195196
.replace(/\n\n+/g, "\n");
@@ -204,7 +205,7 @@ gulp.task('optimize', function (cb) {
204205
gulp.task('build-zip', function(cb) {
205206
const version = p.version;
206207

207-
return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg}')
208+
return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg,tabler-sprite-nostroke.svg}')
208209
.pipe(zip(`tabler-icons-${version}.zip`))
209210
.pipe(gulp.dest('packages'))
210211
});
@@ -241,4 +242,4 @@ gulp.task('svg-to-png', gulp.series('build-jekyll', 'clean-png', async (cb) => {
241242
cb();
242243
}));
243244

244-
gulp.task('build', gulp.series('build-jekyll', 'build-copy', 'build-zip'));
245+
gulp.task('build', gulp.series('optimize', 'build-jekyll', 'build-copy', 'icons-sprite', 'icons-preview', 'build-zip'));

Diff for: package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tabler-icons",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/tabler/tabler-icons.git"
@@ -13,15 +13,16 @@
1313
"files": [
1414
"icons/*",
1515
"icons-png/*",
16-
"tabler-sprite.svg"
16+
"tabler-sprite.svg",
17+
"tabler-sprite-nostroke.svg"
1718
],
1819
"homepage": "https://github.com/tabler/tabler-icons#readme",
1920
"main": "gulpfile.js",
2021
"scripts": {
2122
"precommit": "gulp optimize",
2223
"optimize": "gulp optimize",
2324
"start": "bundle exec jekyll serve --watch --livereload",
24-
"build": "gulp optimize && gulp build && gulp icons-preview && gulp icons-sprite",
25+
"build": "gulp build",
2526
"png": "gulp svg-to-png"
2627
},
2728
"description": "",

Diff for: tabler-sprite-nostroke.svg

+1
Loading

0 commit comments

Comments
 (0)