Age | Commit message (Collapse) | Author |
|
* 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>
|
|
|
|
|
|
Apparently, there's no need to reject the promise
|
|
* 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>
|
|
* 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
|
|
* 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.
|
|
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.
|
|
* reindent `processFile()`
* rename variables
* cache variable
* add a few comments
* conditionally add the `class`
|
|
|
|
Update build-svgs.js
Co-authored-by: Mark Otto <markd.otto@gmail.com>
|
|
|
|
* rename a few variables
* cache variable
|
|
Fixes broken rendering of 1x1px when opening current icons in Sketch, Illustrator, etc. Also reprocesses icons to reorder the attributes.
Fixes #492
|
|
|
|
|
|
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.
|
|
* Update existing icons and add new icons
* 16x16 viewBox
* Redraw some icons to fix cropping, forgotten outlining, etc
|
|
|
|
Runs SVGO first and then adds the attributes.
Also, show the time spent.
|
|
It's available on Node.js 10 and newer.
|
|
|
|
|
|
|
|
|