jspm / jspm-vscode

VSCode Plugin for JSPM Generator
MIT License
17 stars 3 forks source link

Configure the extension #16

Open FluorescentHallucinogen opened 1 year ago

FluorescentHallucinogen commented 1 year ago

First of all, thank you very much for such useful extension!

Is it possible to configure it? If so, how? Could you please document this?

How to configure the extension to:

FluorescentHallucinogen commented 1 year ago

What about https://code.visualstudio.com/docs/getstarted/settings#_extension-settings?

FluorescentHallucinogen commented 1 year ago

As far as I understand, there is no any config file for JSPM CLI like .jspmrc. Right?

guybedford commented 1 year ago

These are excellent points, thanks for putting some thought to this.

In general, JSPM detects configurations from the existing import map file, including handling of whitespace and the provider and environment.

We don't currently define a .jspmrc, but this is something we could introduce for the CLI and extension by supporting it in the generator project.

I tend to agree that might well be the best approach here. Would you be interested in working on this as a feature at https://github.com/jspm/generator?

FluorescentHallucinogen commented 12 months ago

I wouldn't mind working on adding support for .jspmrc. But that would require agreeing on the format of that file.

In general, JSPM detects configurations from the existing import map file, including handling of whitespace and the provider and environment.

I think in 50% of the use cases of this extension, the import map isn't there yet. I mean users who are using the VSCode extension to create import map for the first time. :)

I've started working on a pull request for VSCode extension that adds additional prompts to existing ones (which provider to use, whether to use es-module-shims, etc.).

But I'm blocked by #17. @guybedford Could you please take a look?