simple-icons/package.json
Eric Cornelissen 3af76b75d3
Add NPM script to perform SVGO optimization from the repository (#1476)
* 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
2019-07-15 15:14:50 +01:00

40 lines
1.1 KiB
JSON

{
"name": "simple-icons",
"version": "1.11.0",
"description": "SVG icons for popular brands https://simpleicons.org",
"homepage": "https://www.simpleicons.org",
"keywords": [
"svg",
"icons"
],
"main": "index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/simple-icons/simple-icons.git"
},
"bugs": {
"url": "https://github.com/simple-icons/simple-icons/issues"
},
"author": "Simple Icons Collaborators",
"license": "CC0-1.0",
"devDependencies": {
"editorconfig-checker": "^2.0.8",
"jest": "^24.1.0",
"jsonlint2": "^1.7.1",
"svglint": "^1.0.4",
"svgo": "^1.3.0",
"uglify-js": "^3.6.0"
},
"scripts": {
"jsonlint": "jsonlint _data/simple-icons.json -q -V .jsonlintschema",
"svglint": "svglint icons/* --ci",
"wslint": "editorconfig-checker --ignore",
"prepublishOnly": "node scripts/prepublish.js",
"postpublish": "rm icons/*.js index.js",
"test": "jest",
"pretest": "npm run prepublishOnly",
"posttest": "npm run postpublish",
"svgo": "svgo --config=./.svgo.yml"
}
}