nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
367 stars 52 forks source link

[Feature Request] Platform specific architects #243

Open wSedlacek opened 3 years ago

wSedlacek commented 3 years ago

Currently it does not appear like xplat provides any of its own architects instead making heavy use of npm scripts and @nrwl/workspace:run-commands.

It would be nice if this complexity could be abstracted behind Nx architects. For example instead of having prepare.myapp.ionic with a script command in the package.json it could be part of a ionic architect that provides the same functionality but with a better command line interface that includes passing in options such as what platform to use etc. This would greatly clean up the scripts in the package.json and allow for additional feature to be added in the future.

Another thing that could be done with this is internalizing things like the webpack.config.js that is used in NativeScript like how Angular does.