Skip to content
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

Decouple node-canvas dependency from the main package. #399

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

virbas
Copy link

@virbas virbas commented May 10, 2023

Decouple canvas from the main package.

canvas is only used in the example how to generate .mind files using node.js, however it's included as a dependency in package.json.
npm i mind-ar might fail to install because canvas dependents on a bunch of optional system libs (see installation wiki https://github.com/Automattic/node-canvas/wiki).

What has changed:

  • examples/nodejs/createImageTargetLibrary.js now contains it's own npm project, so it does not interfere with the main package build.
  • added another example how to generate .mind files using puppeteer.

… package for createImageTargetLibrary.js, create an example of creating .mind files using node & puppeteer (does not require node_canvas)
@virbas virbas changed the title ### Decouple node-canvas dependency from the main package. Decouple node-canvas dependency from the main package. May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant