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

Enhancements for larger p5js project #8

Open
chiunhau opened this issue Aug 30, 2016 · 3 comments
Open

Enhancements for larger p5js project #8

chiunhau opened this issue Aug 30, 2016 · 3 comments

Comments

@chiunhau
Copy link
Owner

chiunhau commented Aug 30, 2016

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 or require 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 that import and exports are available for browser!!!
  • Independent webpack.config.js for each project?
  • Can webpack watch all files at the same time while run with different config file?
  • Keep p5 generate --es6 for those only need the ES6 syntax features in global mode.
@mexitalian
Copy link

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 :)

@chiunhau
Copy link
Owner Author

@mexitalian yaaaa thank you! any extended function is appreciated! looking forward to your work 👍

@Simon-Claudius
Copy link

Is there any news on adding instance mode? Anything I can help with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants