-
Notifications
You must be signed in to change notification settings - Fork 25
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
Publish to npm? #3
Comments
That’s a great idea @peilingjiang , I’ve published others @LingDong- project to npm, I can help with a bundling setup if you need @LingDong- please let me know! Ps Another awesome project! I published a simple example on Observable https://observablehq.com/@radames/hello-q5-js the modularity of your version makes it perfect for that environment |
Thanks for the suggestion! I decided to figure out publishing on npm, looks like I'm doing it right :) It's now at: https://www.npmjs.com/package/q5xjs @radames thanks for the nice demo on Observable! |
@LingDong- perfect! thanks for doing that, I've update the source on my test to npm and it works great! |
It would be great to include in the docs how to add the script by ecmasript import (not only script tag) |
@moonclimber1 It's because the function is not exported from the original file, simply change the first line - function Q5(scope){
+ export default function Q5(scope){ and import it in your file like import Q5 from 'path/to/q5.js' Given the fact that you'll need to modify the file to get it to work, you'll not be able to use |
Hi, are you considering publishing the package to npm? It would be easier for people to integrate it into projects then. Thanks!
The text was updated successfully, but these errors were encountered: