codyhouse / codyhouse-framework

A lightweight front-end framework for building accessible, bespoke interfaces.
https://codyhouse.co/
MIT License
1.16k stars 173 forks source link

Suggestion for more integration with ES6 #72

Closed reece-barker closed 3 years ago

reece-barker commented 3 years ago

Hi, I think adapting your gulpfile.js like I have done in the files attached will be better for more use cases as my of us particularly me use alot of ES6 syntax and operators and working with older version of JS for the components is harder. I have attached files on my gulpfile.js which will show you what to do that enables ES6 compiling. (Ignore the nodemon section that is just a custom thing). Thanks :) (Let me know if you need any help working with gulp I know the compiling is great but they havent expanded the tool very well with JS ;) )

Screenshot 2021-01-09 at 01 56 33 Screenshot 2021-01-09 at 01 56 46 Screenshot 2021-01-09 at 01 56 22 Screenshot 2021-01-09 at 01 56 54

JonQuayle commented 3 years ago

@MasionGIT Are you able to provide any more info on how you are integrating es6? For me the util.js file can't be read whenever the js is bundled up which makes the components pretty useless.

claudia-romano commented 3 years ago

@JonQuayle Hi there, this is a closed issue. You can use the open discussion if you want to share more info about this topic: https://github.com/CodyHouse/codyhouse-framework/discussions/75

Cheers!