node-moving-things-tracker icon indicating copy to clipboard operation
node-moving-things-tracker copied to clipboard

Create standalone dist/moving-things-tracker.js

Open b-g opened this issue 7 years ago • 1 comments

Hi @tdurand. Do you mind if we add to package.json something like this?

"bundle": "browserify main.js --standalone tracker -o dist/moving-things-tracker.js",
"dist": "npm run bundle && browserify main.js --standalone gd | uglifyjs > dist/moving-things-tracker.min.js"

That way I believe people could use it out of the box in the browser via tracker.Tracker.updateTrackedItemsWithNewFrame ... which would be great as e.g. the create coding audience might not always be into node.js.

b-g avatar Apr 20 '18 11:04 b-g

Yes no problem, could you send a PR or I can do it ?

tdurand avatar Apr 20 '18 12:04 tdurand