-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to avoid multiple angular.json #85
Comments
One idea is to move the ionic config out to the root, but that will likely make it create |
The ideal really is to manage all those things at the root staying true to the Monorepo style. This is the same for {N} apps as well. With Ionic this would be more possible to manage the angular.json and everything else at root but I think you’d wanna keep the build artifacts in with the apps or could simple all be built in a dist folder at root which would have app builds organized by name there which would work well. |
the problem remains though: having the angular.json outside the ionic app at the root, none of the cordova commands work because it expects the angular.json to be in the app, and not up a directory. I can't build the final APK or iOS binary.
but of course if you run the commands at the root it says |
so my only two really bad options are :
|
You’ll probably wanna do what we do for most configurations which is utilize npm scripts to traverse into the app directory to issue the command. That ultimately gives you the convenience of running everything in your workspace from the root while avoiding any crazy config copying. When I have time I’ll investigate some other options but that’s what I recommend as being the easiest. Ie, see the other ionic run commands in root package which xplat adds. |
So, the workaround I settled on was to skip the ionic tools and build directly with xcode+fastlane+gradle. Basically doing the The problem is that ionic build commands wrap ng build. Even with command traversing, it just would not accept the fact that angular.json lived outside the project directory. |
ionic apps no longer have a dupe angular.json and instead use workspace json in v8. |
We are running into a situation where it doesn't make sense to have multiple
angular.json
in a mono repo since we have so many libs. We were able to do most ionic commands from the root, however, when it comes time to run aionic build app-name android
it fails because it can't find the rootangular.json
of course. Any type of architectural suggestions would help.The text was updated successfully, but these errors were encountered: