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

style: Format JavaScript files #132

Conversation

jordan-gillard
Copy link

@jordan-gillard jordan-gillard commented Dec 4, 2022

Hey there! I recently discovered your library at an art show last night. I'm a professional dev, so thought I'd lend a hand. Would be happy to discuss other quality improvements like a test suite to avoid code regressions in the future, or even full-blown CI/CD. It would help avoid any future bugs :)

Summary of this PR

This PR adds Prettier as a dev dependency. Prettier is an industry standard code formatter that allows us to maintain uniform code style throughout projects. It also runs prettier on all non-dist/ JS files.

Additionally, this PR adds the "format" script to package.json to make running Prettier easier. It also specifies this project's compatible node engines, since the meyda dependency relies on Node versions between 10 and 17. You can see their engines listed here. You'll notice that the engines dependency in this package.json is for Node versions between 14 and 17, while meyda allows those between 10 and 17. This is intentional, because Node versions less than 14 are no longer maintained by the Node.js Release Working Group.

Related: hydra-synth/hydra#220

Also specifies supported Node.js engines,
adds prettier as a dev dependency, and
upgrades existing packages.
Comment on lines +49 to 51
"volta": {
"node": "17.9.1"
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Volta is super helpful for managing JS command line tools. It sets the Node CLI to use the one specified in the package.json file. It helps developers who use multiple Node versions (like I do). Highly recommend trying it out.

Totally fine to not use it - it is ignored by npm. So having this addition here is harmless.

@jordan-gillard
Copy link
Author

@micuat Hey Naoto, please lmk what you think. I'd be happy to contribute further :)

@jordan-gillard jordan-gillard deleted the package-json-improvements-and-formatting branch January 26, 2023 18:32
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.

None yet

1 participant