-
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
Possibility to install paper without jsdom #1171
Comments
Yes, I guess we could / should? With Bower on its way out, using NPM in such hybrid ways is clearly the way forward... |
I can see some issues with this route though: There are scenarios where people will want to use Paper in Node.js, e.g. for SVG generation, but don't need the node-canvas module. This would cause them to either install all optional dependencies because they need JSDOM, or none of them... As far as I know, there is no way for more fine grained control of this. It would be nice if NPM knew something like a target setting, which allow the definition of different types of dependencies based on the target... |
Here is an idea for how to manage the different dependency requirements based on different environments: #1252 (comment) What do you think? |
I have done this now. This solution will soon be superseded by a better one, as described in #1252 (comment) |
More about the improved plan here: #1252 (comment) |
We use paper.js in browser environment (electron app) so we don't need jsdom, but we install our dependencies using npm. Would it be possible to have
jsdom
in optional dependencies (same ascanvas
) so you don't have to install it for browser usage?The text was updated successfully, but these errors were encountered: