Closed michahell closed 7 years ago
Yes, but those files do not export
anything. Are they usable with npm?
ah, I c. I was wondering how to use planck in a project. Is the recommended way to import only required modules? if so, is there an example MWE to get started ? the testbed plunker seems to include just one big testbed js file.
planck-with-testbed.js
includes a renderer, it is very helpful for development or getting started, but I do not recommend it for production. You could reference the build file in your html page (as explained on readme page) or use var planck = require('planck-js/testbed');
with node/npm.
For production, I recommend integrating it with the rendering/ui library you would like to use (also explained on readme page). You could directly include the build files (without testbed) in your html or use var planck = require('planck-js');
with node/npm.
Thanks! I chose to copy planck.min.js
from the dist folder into my project as I don't want to complicate a simple test case with a full module loader / bundler for now.
You are welcome! It is also published to bower
if you use it.
as title says. I see the
/dist
folder here on GH, but not if I npm install.