* Add SVGO as devDependencies and a NPM script to run it
* Update Contributing Guidelines
Change the instructions on how to use SVGO to optimize SVGs to use the
new dependency and NPM script.
* Add configuration for the NPM command to optimize SVGs
* Specify --precision in SVGO configuration file
* Update SVGO config ordering of attributes
To be in line with the fact that, as @davidklebanoff pointed out: "most
(all?) have the attributes in the order of role, viewbox, xmlns
(alphabetical)"
* Move SVGO --multipass argument to .svgo.yml
* Update SVGO dependency to 1.3.0
Now the force merge option works 🎉
See: https://github.com/svg/svgo/releases/tag/v1.3.0
* Update outdated "blocking" comment
* Reduce package size by replacing JSON.stringify by custom stringify func
* Escape icon's title and SVG value
... as pointed out by @birjolaxew, if they contain a "'" it will break
the resulting object.
* Add URL friendy/slug/file name as property to package icon objects
* Test new property
* Build index from template
* Add .get function to index.js export
* Test new .get function in index.js export
* Use Uglify-JS to minify the code in the package's index.js
* Update API in README.md
* Renaem test using "slug" instead of "name"
Before when running `npm install` it would report "Found 1110 high
severity vulnerabilities [...]". This updates the dependencies in
package-lock.json, resultin in 0 vulnerabilities.
* Add URL friendy/slug/file name as property to package icon objects
* Test new property
* Add 'name' property to examples in README
* Rename "name" property to "slug"
* Reduce package size by replacing JSON.stringify by custom stringify func
* Replace path data by getter
* Replace getter by Object.defineProperty
* Remove icon.path definition
* Revert 801c07d4
Apperantly getters have better support then Objct.defineProperty...
* Increase specificity of source URL pattern for JSONLint
... to catch issues such as in #1494
* Temporary reversion of 7704018 for testing
* Revert e44bf83
* Reduce JSON schema url pattern specifity to just not allowing spaces
* Temporary reversion of 7704018 for testing
* Revert aa805e0a
* Add custom SVGLint rule to lint the general <title> format
i.e. the <title> should be "[ICON_NAME] icon"
* Check if there exists an entry in simple-icons.json with the icon name
... found in the <title>
* Normalize all icons <title> value
* Fix mismatch between HTML's icon title and simple-icons.json title
... due to HTML special entities (such as `&`). Affected icons:
- AT&T (AT&T)
- Let's Encrypt (Let's Encrypt)
* Refactor .svglintrc.js
to make the code style more in line with scripts/prepublish.js
* Add SVG with invalid <title> format
* Add SVG with unknown title
* Revert 6912816 and f002504
* Add SpaceX
The "X" logomark is chosen over the full wordmark for reasons discussed
in #1257
* Update SpaceX color to blue
Reasoning found in #1314
---
Closes#1257
* Update prepublish script to add path to generated .js files
* Test generated path values
* Fix Furry Network icon
The Furry Network icon used to have "e"s in the path, however the
official SVG definition does not specify the E command.
source: https://www.w3schools.com/graphics/svg_path.asp
* Updates Facebook and Messenger
Facebook announced new logos for Facebook and Messenger. For Meessenger, the brand guidelines use a gradient from 00B2FF to 006AFF. I have used 00B2FF in the JSON.
* Remove space from icons/facebook.svg
* Update title of icons/facebook.svg
* Remove newline.
* Remove newline. Again?
* Removed newline. Yet again.
* Compress and remove fill rule from messenger.svg
* Add "icon" to messenger.svg <title>
* Fix attributes on messenger.svg
---
Closes#1437