You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As is recommended, the UI-folders of plugins should be excluded from the tsconfig-compilation since those are compiled into the Admin UI instead of the server.
However, this creates an issue with the tsconfig settings not having having an effect on the files under ui-folder.
For example, I do not get errors for unused local variables and I do not get suggestions for imports from different packages, instead I have to manually type the imports.
Describe the solution you'd like
A new configuration that allows having the ui-folders included for development, but excluded for build.
The different tsconfig-files should be then handled with tsc -p <tsconfig-file path>
In a nutshell, 3 tsconfig-files are needed:
One for staging/production builds.
Second for when running Vendure server locally with ts-node.
Third for easier plugin development with tsconfig-features enabled.
The last 2 would be otherwise same, but with ui-folder excluded only for the other one used with ts-node
Describe alternatives you've considered
Separate the Admin UI / plugins from the server compilation context into it's own app-project.
Might be related to the planned(?) Storefront / Admin UI SDK which should come sometime in distant future.
Additional context
With the current way of handling the exclusion of ui-folder, the plugin development is more difficult without the help of tsconfig-features.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As is recommended, the UI-folders of plugins should be excluded from the tsconfig-compilation since those are compiled into the Admin UI instead of the server.
However, this creates an issue with the tsconfig settings not having having an effect on the files under ui-folder.
For example, I do not get errors for unused local variables and I do not get suggestions for imports from different packages, instead I have to manually type the imports.
Describe the solution you'd like
A new configuration that allows having the ui-folders included for development, but excluded for build.
E.g
tsconfig.build.json
:The different tsconfig-files should be then handled with
tsc -p <tsconfig-file path>
In a nutshell, 3 tsconfig-files are needed:
The last 2 would be otherwise same, but with ui-folder excluded only for the other one used with ts-node
Describe alternatives you've considered
Separate the Admin UI / plugins from the server compilation context into it's own app-project.
Might be related to the planned(?) Storefront / Admin UI SDK which should come sometime in distant future.
Additional context
With the current way of handling the exclusion of ui-folder, the plugin development is more difficult without the help of tsconfig-features.
The text was updated successfully, but these errors were encountered: