-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update to use CommonJS module format #67
Conversation
No update to this PR, but if anyone wants to try out my CommonJS fork grab it here: https://github.com/andyinabox/clmtrackr. As of today it's still up-to-date with this repo's |
Sorry for not replying earlier. This project has now been refactored for npm and is built as an UMD module. I based the refactor on PR #85, which again was based on this PR, but ended up using different solutions (rollup, ES6 imports) so it's quite heavily modified, but thanks very much for this PR. |
This PR is related to #42 — it doesn't make the clmtrackr usable as a node.js module yet, but it does restructure the code to use CommonJS modules, which is a step in that direction. Here's a basic summary of what you'll find here:
require
statements, I moved the build to a simple script definition in the "package.json", which can be run usingnpm run build
.I know this is a lot of changes, so won't be surprised if you have questions/concerns (or maybe just don't even want to bother with it). But I wanted to use this library in some of my own projects using the npm/browserify workflow and so I figured I'd give it a shot! As far as I can tell all of the examples work still so I don't think I broke anything in the process :)