bdkjones / CodeKit

CodeKit 3 Issue Tracker
https://codekitapp.com
81 stars 5 forks source link

Feature request: Export CodeKit Babel settings as config.babel.js #547

Open ArianeNubee opened 5 years ago

ArianeNubee commented 5 years ago

Let's say I've pretty much compiled Babel like I want it in CodeKit's options. I checked all the boxes that make Babel behave almost like I want.

But then I find out I want to set an advanced configuration option that CodeKit doesn't offer. Currently, I'll need to set CodeKit up to use a config file, and then research and configure everything I've already configured again before even setting foot in the new feature I want.

It would be useful if CodeKit could provide me with the 99 % I've already configured by creating me most of my config file at the push of a button.

bdkjones commented 5 years ago

Which advanced option are you looking to use?

ArianeNubee commented 5 years ago

Well, in this case, I'm talking about the "usage" mode of preset-env, which you're adding for the next release of CodeKit, so it's null for this point, but I figure surely there are other options out there a person might want to use.

On Tue., Jul. 9, 2019, 20:29 Bryan Jones, notifications@github.com wrote:

Which advanced option are you looking to use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bdkjones/CodeKit/issues/547?email_source=notifications&email_token=AESRRXTJC5EOS5BVO2XMWGDP6UUM7A5CNFSM4H4KHCH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZR5OLQ#issuecomment-509859630, or mute the thread https://github.com/notifications/unsubscribe-auth/AESRRXWSNGHSM54G4QKPTYTP6UUM7ANCNFSM4H4KHCHQ .

bdkjones commented 5 years ago

Yea, the trouble is that the way CodeKit configures Babel doesn’t lend itself to a config file. For example, you’d need to provide your own plugins/presets installed with npm and CodeKit doesn’t know about those. It passes paths to the plugins/presets in the app bundle.

Sent from my iPhone

On Jul 9, 2019, at 17:31, ArianeNubee notifications@github.com wrote:

Well, in this case, I'm talking about the "usage" mode of preset-env, which you're adding for the next release of CodeKit, so it's null for this point, but I figure surely there are other options out there a person might want to use.

On Tue., Jul. 9, 2019, 20:29 Bryan Jones, notifications@github.com wrote:

Which advanced option are you looking to use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bdkjones/CodeKit/issues/547?email_source=notifications&email_token=AESRRXTJC5EOS5BVO2XMWGDP6UUM7A5CNFSM4H4KHCH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZR5OLQ#issuecomment-509859630, or mute the thread https://github.com/notifications/unsubscribe-auth/AESRRXWSNGHSM54G4QKPTYTP6UUM7ANCNFSM4H4KHCHQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ArianeNubee commented 5 years ago

I don't understand. Can't you just name the options, plugins, presets, etc in a list and Babel finds it by itself in the node_modules folder?

To clarify, I'm not talking about CodeKit generating the whole config file for the advanced options that one may want to use. I'm talking about it generating the file with the basic options already configured in CodeKit. A template, of sorts. And once the file is exported, the user can customize it for their specific needs.

On Tue., Jul. 9, 2019, 20:42 Bryan Jones, notifications@github.com wrote:

Yea, the trouble is that the way CodeKit configures Babel doesn’t lend itself to a config file. For example, you’d need to provide your own plugins/presets installed with npm and CodeKit doesn’t know about those. It passes paths to the plugins/presets in the app bundle.

Sent from my iPhone

On Jul 9, 2019, at 17:31, ArianeNubee notifications@github.com wrote:

Well, in this case, I'm talking about the "usage" mode of preset-env, which you're adding for the next release of CodeKit, so it's null for this point, but I figure surely there are other options out there a person might want to use.

On Tue., Jul. 9, 2019, 20:29 Bryan Jones, notifications@github.com wrote:

Which advanced option are you looking to use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/bdkjones/CodeKit/issues/547?email_source=notifications&email_token=AESRRXTJC5EOS5BVO2XMWGDP6UUM7A5CNFSM4H4KHCH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZR5OLQ#issuecomment-509859630 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AESRRXWSNGHSM54G4QKPTYTP6UUM7ANCNFSM4H4KHCHQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bdkjones/CodeKit/issues/547?email_source=notifications&email_token=AESRRXX5DHMBDOD2RSVNVU3P6UV6HA5CNFSM4H4KHCH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZR6DAQ#issuecomment-509862274, or mute the thread https://github.com/notifications/unsubscribe-auth/AESRRXQSSALSUNRVY3KXWCDP6UV6HANCNFSM4H4KHCHQ .