clientIO / JointJS_plus

JointJS+ support
4 stars 9 forks source link

How to rebuild global dist directory #41

Open michel-cf opened 9 years ago

michel-cf commented 9 years ago

After I added some code to the Inspector plugin I've rebuilt the plugin, but I'm now looking for a way to regenerate the global dist directory (joint.all.js)

I can't find a Grunt file for that. Am I looking over it, is using the files from the global dist directory bad practice or is it just missing?

DavidDurman commented 9 years ago

It's not there. It is assumed rebuilding the Inspector plugin is very rare, normally, you can add your own controls without re-building the widget. However, it sounds like a good feature request for future releases. I'll leave this open till we have this built-in. For now, I'd suggest to include your new Inspector JS file after joint.all.js. This will override the old one effectively. The only downside is that there will be a little bit of redundant code loaded on the page.