-
Notifications
You must be signed in to change notification settings - Fork 32
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
Improvements #13
Improvements #13
Conversation
Added EditorConfig. Added pre-commit hooks. Fixed shadowed name "item".
That can be merged now if you agree. |
Thank you @TheAifam5. Nice touch with I have played around with this PR and looks good & will merge. Using As a side question, |
@allcontributors please add @TheAifam5 for code, infra |
I've put up a pull request to add @TheAifam5! 🎉 |
@TheAifam5 I've bumped the |
So IMHO yarn can handle dependecies better than npm. The folder is much smaller and Yarn has a lot of features like “resolution” or “workspaces” if you will plan do a monorepo with multiple packages. If you dont like it, just a simple ‘npm install’ command and remove yarn.lock file. |
Babel is really nice and you can integrate it with Typescript code just by installing preset @babel/preset-typescript. The one issue I see there, does not generate .d.ts files. That could also be solved by: Publishing the source code in package allows the user to decide how the package should be transpiled, for JavaScript users there would be pretranspiled JS file already available. |
Thanks for the great explanation @TheAifam5 👍. Learned much 🙂 For the |
This pull request removes babel completely and uses
tsc
anduglifyjs
only.Adds also linting before commiting and prettier integration.
Also I switched to yarn and added missing package
typescript
.I could add full webpack integration but for that simple code, you dont need it.
That's how the package looks like after (If I forgot some files, please tell me):
Also UglifyJS has more features if you need like manging, compressing etc.
Here is a example after compression enabled:
The declaration file looks like this now:
Do not merge this yet :)