Skip to content

Commit

Permalink
feat: added svgo opt + internal tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Jul 13, 2023
1 parent 47bbfb8 commit af08d9f
Show file tree
Hide file tree
Showing 13 changed files with 261 additions and 86 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
dist/
*.tgz
.DS_Store
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
"bin": {
"effective-favicon": "dist/index.js"
},
"main": "dist/index.js",
"main": "dist/cli.js",
"scripts": {
"build": "rimraf dist && tsc",
"prepare": "npm run build",
"format": "prettier --write src",
"release": "release-it"
"release": "release-it",
"pretest": "npm run build",
"test": "node dist/cli.js test"
},
"keywords": [
"icons",
Expand All @@ -27,6 +29,7 @@
"url": "http://sebastian-software.de/werner"
},
"license": "Apache-2.0",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/sebastian-software/effective-favicon.git"
Expand All @@ -36,6 +39,7 @@
},
"devDependencies": {
"@types/node": "^20.4.2",
"@types/pngquant-bin": "^4.0.0",
"prettier": "^2.8.8",
"release-it": "^15.11.0",
"rimraf": "^5.0.1",
Expand All @@ -45,6 +49,7 @@
"dependencies": {
"png-to-ico": "^2.1.8",
"pngquant-bin": "^8.0.1",
"sharp": "^0.32.2"
"sharp": "^0.32.2",
"svgo": "^3.0.2"
}
}
132 changes: 132 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { processSvgFiles } from './index';
import { processSvgFiles } from "./process.js";

const args = process.argv.slice(2);
if (args.length !== 1) {
Expand Down
80 changes: 0 additions & 80 deletions src/index.ts

This file was deleted.

Loading

0 comments on commit af08d9f

Please sign in to comment.