Open chiunhau opened 8 years ago
Hi @chiunhau I've just started using p5-manager today, thanks for the great work!
Was just about to start a feature request and offer help for the import/require functionality. My use case is to create a bundled standalone .js to offer drop–in plugins for UI flourishes.
Planning on adding this with browserify, as it only concerns itself with the bundling of the javascript.
Have started on a fork as I need this piece of functionality ASAP and will report back with progress. Hope it will be of help and am happy to look into further extending the functionality too :)
@mexitalian yaaaa thank you! any extended function is appreciated! looking forward to your work 👍
Is there any news on adding instance mode? Anything I can help with?
By now p5-manager can only compile ES6 syntax into ES5, file by file, which is convenient for small sketch. However when developing larger project, we need more advantage of ES6 and modular javascript features. e.g.
import
orrequire
some third party libraries, or separate you whole big sketch into components/modules for better management and reuse.Following features are what I imagine / take into consideration for next release :
p5 generate -w
to generate instance mode template, and webpack configs with Babel loader, in ES6 syntax of course. So thatimport
andexports
are available for browser!!!webpack.config.js
for each project?p5 generate --es6
for those only need the ES6 syntax features in global mode.