starters icon indicating copy to clipboard operation
starters copied to clipboard

feat: public accessable ionic.config.json Schema file

Open muuvmuuv opened this issue 4 years ago • 3 comments

Prequisites

Describe the Feature Request

I would like to add a $schema to my ionic.config.json in case when I forgot what options are possible. Angular for example does have that as well for their angular.json its public but they force the node_modules installed schema file. I would like to have that for ionic (and Capacitor) too.

Describe the Use Case

Forgetting options, validation, help

Describe Preferred Solution

  • Public CDN url
  • node_modules/@ionic/core/ionic.config.schema.json e.g.

Describe Alternatives

VS Code extension that provide it out of the box

Related Code

No response

Additional Information

No response

muuvmuuv avatar Sep 09 '21 06:09 muuvmuuv

Thanks for the issue. The ionic.config.json options are documented here: https://ionicframework.com/docs/cli/configuration#project-configuration-file

Does this documentation work for your use case?

liamdebeasi avatar Sep 09 '21 14:09 liamdebeasi

That are so one I am already using but it requires to open the link, I would like a JSON schema so I have better autocompletion in my IDE. I know its kinda out of scope.

muuvmuuv avatar Sep 09 '21 14:09 muuvmuuv

Thanks, that makes sense. I think we could look into shipping a schema in starter applications, so I am going to move this issue there.

liamdebeasi avatar Sep 09 '21 15:09 liamdebeasi