Replies: 2 comments 1 reply
-
Hi @elijah-potter! Looking for your opinions. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have made the changes at #924. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've met some issues while working on the harper repository as a frontend developer. So here are some approaches to improve the developer experience.
Setup workspace to the root directory
For now the harper repository setup the yarn workspace under
packages
directory. It may make things difficult. For exmaple we can not execute a npm script or resolve JavaScript packages from the root directory. Combine both the cargo workspace and yarn workspace to the root directory can make the vscode eslint and typescript extensions and any other services rely on the npm packages installed on the workspace works good.Migrate to pnpm workspace
I also recommand migrate to use pnpm as the package manager and workspace toolkit for JavaScript packages. It is now widely used by frontend developers due to the following advantages:
Use biome as the linter instead of eslint
Biome provides super fast thanks to its Rust implementation, while needing almost no setup to get started. It handles everything in one tool - linting, formatting, and more - without the series of plugins and dependencies that ESLint requires. Plus, it works great with modern JavaScript and TypeScript, gives clearer error messages, and keeps your code consistent with minimal fuss.
After applying all the modifications, the directory would be:
before
after
You can find a good pratice from https://github.com/web-infra-dev/rspack.
Beta Was this translation helpful? Give feedback.
All reactions