Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-17Use a custom svgo plugin to optimize svg attributes (#1148)korki
* Use custom svgo plugin to optimize svg attrs * Remove `finalNewline` since it doesn't seem to have any effect * Minor tweaks Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-12-01build: switch to picocolorsXhmikosR
2021-03-29Update svgo to v2.3.0.XhmikosR
2021-01-20Update build scriptsXhmikosR
Apparently, there's no need to reject the promise
2021-01-05Bump js-yaml from 3.14.1 to 4.0.0 (#646)dependabot[bot]
* Bump js-yaml from 3.14.1 to 4.0.0 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 4.0.0. - [Release notes](https://github.com/nodeca/js-yaml/releases) - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...4.0.0) Signed-off-by: dependabot[bot] <support@github.com> * Update build-svgs.js Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-01-05Tweak build-svgs.jsXhmikosR
* change `process.argv` to `includes()`; should work with multiple arguments if we decide to add them later * switch to function declarations * remove redundant return await * catch errors in `processFile()` * add missing `await` in cheerio.load
2020-12-29build-svgs.js: switch to async/await and tweaks (#603)XhmikosR
* build-svgs.js: switch to async/await * build-svgs.js: return early If the optimized SVG is identical to the original SVG, skip writing the file to the disk.
2020-12-29Update cheerio to v1.0.0-rc.5. (#575)XhmikosR
Adapt build/build-svgs.js to this version. Make sure we are parsing the nodes as XML. Also replace CR/CRLF with LF in the output SVG.
2020-12-29build-svgs.js: minor tweaks (#602)XhmikosR
* reindent `processFile()` * rename variables * cache variable * add a few comments * conditionally add the `class`
2020-12-29build-svgs: add singular support in the message (#584)XhmikosR
2020-12-23build-svgs.js: no need to use a function in `replaceWith()` (#579)XhmikosR
Update build-svgs.js Co-authored-by: Mark Otto <markd.otto@gmail.com>
2020-12-23build-svgs.js: hide console log output unless `--verbose` is passedXhmikosR
2020-12-23build-svgs.js: minor tweaksXhmikosR
* rename a few variables * cache variable
2020-12-07Change width and height from 1em to 16pxMark Otto
Fixes broken rendering of 1x1px when opening current icons in Sketch, Illustrator, etc. Also reprocesses icons to reorder the attributes. Fixes #492
2020-11-03build-svgs.js: fix UnhandledPromiseRejectionWarning (#482)XhmikosR
2020-06-23Update script to account for upcoming font-family generationMark Otto
2020-06-23Update SVG build script to set custom dimensionsMark Otto
This removes the fixed width and height override from the build script and instead detects the viewBox values and sets the width and height from there. The goal of this is allow for different aspect ratios in icons. My gut says everything should be 16px tall to address vertical align issues, but then have some variable width. To start, this will be for select icons (possibly the new Bootstrap logo and our upcoming badge icons), and then potentially redoing artboards in Figma for super narrow icons so they only take up the required space. That'll come later I think though.
2020-03-19Add another 178 icons and resize viewBox to 16x16 (#156)Mark Otto
* Update existing icons and add new icons * 16x16 viewBox * Redraw some icons to fix cropping, forgotten outlining, etc
2019-10-28More error checkingXhmikosR
2019-10-28Merge the two icons scripts.XhmikosR
Runs SVGO first and then adds the attributes. Also, show the time spent.
2019-10-11build-svgs.js: use the `fs.promises` API. (#38)XhmikosR
It's available on Node.js 10 and newer.
2019-10-11Add analytics, social, and make icons 1em for scalingMark Otto
2019-09-16improve build svgs scriptJohann-S
2019-09-16build-svgs.js: ES6-ify and simplify.XhmikosR
2019-09-16Rewrite the JS for handling attributes, their values, and their orderMark Otto