monster-ui icon indicating copy to clipboard operation
monster-ui copied to clipboard

Add babel to gulp buildDev workflow for js compilation

Open jon-braz opened this issue 5 years ago • 10 comments

Added babel to allow for ES6+

jon-braz avatar Aug 08 '19 16:08 jon-braz

Hi @azefiel, could I get your thoughts on this? It's just a quick change to the buildProd pipeline to add Babel, usually adds another ~10 seconds to the build time.

jon-braz avatar Nov 06 '19 19:11 jon-braz

Hey @jon-braz, apologies, I didn't see this PR until now!

The problem with your implementation is that it only transpiles JavaScript inside the apps.

If we were to enable ES6 syntax/features, we would have to do it for monster libraries as well to keep things consistent throughout the whole framework.

Also, the buildProd task is only meant to build Monster UI Core (vs a specific app), so the transpiling step would also have to be added to the buildApp task.

joristirado avatar Nov 07 '19 00:11 joristirado

No worries, thanks for taking a look.

If you're open to the idea then, I can definitely generalize it to work for the monster libs and in the other build pipelines.

jon-braz avatar Nov 07 '19 01:11 jon-braz

I've increased the coverage to include src/js/lib/* as well, but it seems nicest to still exclude src/js/vendor to keep build times down (it would add another ~20 seconds to the build).

How do you feel about keeping babel out of buildDev / jsWatch? I feel extra few seconds to run the watcher might get annoying.

jon-braz avatar Nov 08 '19 00:11 jon-braz

@azefiel I've made some changes to increase coverage and add it to buildApp, your thoughts?

jon-braz avatar Nov 20 '19 18:11 jon-braz

@azefiel I've made some changes to increase coverage and add it to buildApp, your thoughts?

Apologies for the lack of reply on this, we are currently pushing for a bunch of initiatives to be out of the door by the end of the year so unfortunately, we can not allocate time to review/test this PR for the time being.

joristirado avatar Nov 21 '19 02:11 joristirado

Alright, whenever you have the chance to look at it down the road I'd appreciate it

jon-braz avatar Nov 21 '19 20:11 jon-braz

@azefiel If you get the chance, could you let me know if you think you'd be open to moving to using babel and allowing ES6+?

jon-braz avatar Feb 26 '20 19:02 jon-braz

Hi @azefiel,

I've been tasked with continuing progress on this PR from where @jon-braz left off. Are there any further tweaks you would like from us for this feature?

DustinBrett avatar Aug 07 '20 12:08 DustinBrett

Hello, I do a lot of front-end development for monster-ui and really looking forward to this getting released. If possible I would be more then willing to assist with getting this PR completed if you have some time to get me up to speed on what needs to be done @DustinBrett @azefiel

dklein1211 avatar Mar 14 '22 18:03 dklein1211