Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tabler-icons

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabler-icons - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

150

gulpfile.js

@@ -52,4 +52,5 @@ const gulp = require('gulp'),

await page.setViewport({
height: 100,
width: 100
height: 10,
width: 10,
deviceScaleFactor: 2
});

@@ -72,2 +73,73 @@

const printChangelog = function(newIcons, modifiedIcons, renamedIcons) {
if(newIcons.length > 0) {
let str = '';
str += `${newIcons.length} new icons: `;
newIcons.forEach(function(icon, i){
str += `\`${icon}\``;
if((i + 1) <= newIcons.length - 1) {
str += ', '
}
});
console.log(str);
console.log('');
}
if(modifiedIcons.length > 0) {
let str = '';
str += `Fixed icons: `;
modifiedIcons.forEach(function(icon, i){
str += `\`${icon}\``;
if((i + 1) <= modifiedIcons.length - 1) {
str += ', '
}
});
console.log(str);
console.log('');
}
if(renamedIcons.length > 0) {
console.log(`Renamed icons: `);
renamedIcons.forEach(function(icon, i){
console.log(`- \`${icon[0]}\` renamed to \`${icon[1]}\``);
});
}
};
gulp.task('build-zip', function() {
const version = p.version;
return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg,tabler-sprite-nostroke.svg}')
.pipe(zip(`tabler-icons-${version}.zip`))
.pipe(gulp.dest('packages'))
});
gulp.task('build-jekyll', function(cb){
cp.exec('bundle exec jekyll build', function() {
cb();
});
});
gulp.task('build-copy', function(cb){
cp.exec('mkdir -p icons/ && rm -fd ./icons/* && cp ./_site/icons/* ./icons', function() {
cb();
});
});
gulp.task('clean-png', function(cb){
cp.exec('rm -fd ./icons-png/*', function() {
cb();
});
});
gulp.task('icons-sprite', function (cb) {

@@ -148,11 +220,11 @@ glob("_site/icons/*.svg", {}, function (er, files) {

gulp.task('icons-stroke', function (cb) {
gulp.task('icons-stroke', gulp.series('build-jekyll', function (cb) {
const icon = "disabled",
strokes = ['.5', '1', '1.5', '2', '2.75'],
svgFileContent = fs.readFileSync(`_site/icons/${icon}.svg`).toString(),
svgFileContent = fs.readFileSync(`icons/${icon}.svg`).toString(),
padding = 16,
paddingOuter = 5,
iconSize = 64,
width = (strokes.length * (iconSize + padding) - padding) + paddingOuter * 2,
iconSize = 32,
width = 882,
height = iconSize + paddingOuter * 2;

@@ -180,6 +252,6 @@

fs.writeFileSync('icons-stroke.svg', svgContent);
createScreenshot('icons-stroke.svg');
fs.writeFileSync('.github/icons-stroke.svg', svgContent);
createScreenshot('.github/icons-stroke.svg');
cb();
});
}));

@@ -209,18 +281,25 @@ gulp.task('optimize', function (cb) {

gulp.task('build-zip', function(cb) {
const version = p.version;
return gulp.src('{icons/**/*,icons-png/**/*,tabler-sprite.svg,tabler-sprite-nostroke.svg}')
.pipe(zip(`tabler-icons-${version}.zip`))
.pipe(gulp.dest('packages'))
});
gulp.task('changelog-commit', function(cb) {
cp.exec('git status', function(err, ret) {
let newIcons = [], modifiedIcons = [], renamedIcons = [];
gulp.task('build-jekyll', function(cb){
cp.exec('bundle exec jekyll build', function() {
cb();
});
});
ret.replace(/new file:\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) {
newIcons.push(fileName);
});
gulp.task('build-copy', function(cb){
cp.exec('mkdir -p icons/ && rm -fd ./icons/* && cp ./_site/icons/* ./icons', function() {
ret.replace(/modified:\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) {
modifiedIcons.push(fileName);
});
ret.replace(/renamed:\s+src\/_icons\/([a-z1-9-]+).svg -> src\/_icons\/([a-z1-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) {
renamedIcons.push([fileNameBefore, fileNameAfter]);
});
modifiedIcons = modifiedIcons.filter( function( el ) {
return newIcons.indexOf( el ) < 0;
});
printChangelog(newIcons, modifiedIcons, renamedIcons);
cb();

@@ -230,4 +309,26 @@ });

gulp.task('clean-png', function(cb){
cp.exec('rm -fd ./icons-png/*', function() {
gulp.task('changelog-diff', function(cb) {
const version = p.version;
cp.exec(`git diff v${version} HEAD --name-status`, function(err, ret) {
let newIcons = [], modifiedIcons = [], renamedIcons = [];
ret.replace(/A\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) {
newIcons.push(fileName);
});
ret.replace(/M\s+src\/_icons\/([a-z1-9-]+)\.svg/g, function (m, fileName) {
modifiedIcons.push(fileName);
});
ret.replace(/R[0-9]+\s+src\/_icons\/([a-z1-9-]+)\.svg\s+src\/_icons\/([a-z1-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) {
renamedIcons.push([fileNameBefore, fileNameAfter]);
});
modifiedIcons = modifiedIcons.filter( function( el ) {
return newIcons.indexOf( el ) < 0;
});
printChangelog(newIcons, modifiedIcons, renamedIcons);
cb();

@@ -237,2 +338,3 @@ });

gulp.task('svg-to-png', gulp.series('build-jekyll', 'clean-png', async (cb) => {

@@ -239,0 +341,0 @@ let files = glob.sync("_site/icons/*.svg");

{
"name": "tabler-icons",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -13,2 +13,6 @@ "type": "git",

},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/codecalm"
},
"files": [

@@ -27,3 +31,4 @@ "icons/*",

"build": "gulp build",
"png": "gulp svg-to-png"
"png": "gulp svg-to-png",
"release": "release-it --ci"
},

@@ -35,4 +40,13 @@ "description": "",

"gulp-zip": "5.0.1",
"puppeteer": "2.1.1"
"puppeteer": "2.1.1",
"release-it": "13.1.2"
},
"release-it": {
"git": {
"tagName": "v${version}"
},
"github": {
"release": true
}
}
}

6

README.md

@@ -5,7 +5,7 @@ # Tabler Icons

**If you want to support my project and help me grow it, you can [become a sponsor on GitHub](https://github.com/sponsors/codecalm)!**
**If you want to support my project and help me grow it, you can [become a sponsor on GitHub](https://github.com/sponsors/codecalm) or just [donate me on PayPal](https://paypal.me/codecalm) :)**
## Preview
![](./.github/icons.svg)
![](https://raw.githubusercontent.com/tabler/tabler-icons/master/.github/icons.png)

@@ -75,3 +75,3 @@

![](./.github/icons-stroke.svg)
![](https://raw.githubusercontent.com/tabler/tabler-icons/master/.github/icons-stroke.png)

@@ -78,0 +78,0 @@ ## License

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc