Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add svgo as npm dependency and set up npm script to run it #100

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

waldyrious
Copy link
Collaborator

@waldyrious waldyrious commented Jun 9, 2023

Fixes #99. This allows making the svgo dependency explicit and locked to a working version, while also simplifying the commands for contributing to the project.

Before After
Install svgo npm install -g svgo npm install
Run svgo svgo ./flags --recursive --config=svgo.config.js npm run svgo

I've updated the instructions in the README, taking care to describe what's going on at each step so there's no mysterious magic happening behind the scenes for those who are not familiar with Node.js projects.

(Btw, we should probably mention in the README that Node.js is required for contributing, since svgo is a Node.js project — wdyt @HatScripts?) Update: done.

@waldyrious waldyrious changed the title Add svgo as npm dependency and setup npm script to run it Add svgo as npm dependency and set up npm script to run it Jun 9, 2023
@waldyrious waldyrious marked this pull request as draft June 9, 2023 12:37
@waldyrious waldyrious marked this pull request as ready for review June 11, 2023 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More explicit svgo version
1 participant