-
Notifications
You must be signed in to change notification settings - Fork 12k
Ng generate always assumes an app
folder
#9370
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
Comments
app
folderapp
folder
Actually, there is an undocumented option in |
@PoiScript is right, there's |
Using |
@leonadler |
ng generate is adding app to the path by default. How to remove 'app' ? ng g module dashboard/widget -d |
I'm having the same issue as @jacobjojan, every time I run |
@wasif-digitalnet what about
|
@giolf I have tried it, I guess there was some issues while generating the project, I made a new project and it's working fine now, |
@wasif-digitalnet probably you run that command in a nested folder of your project ? Anyway I’m glad to hear that you could solve it |
@giolf Your solution worked... Cheers! |
@ilivestrong |
This problem is still unresolved. We have a code-base similar to Angular Material, where the library modules folders are directly beneath the main library folder. We have recently replaced our custom build systems in favor of the Angular CLI, but when using the Why can't this be configurable? Why isn't "sourceRoot" the literal root? |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
Our project setup doesn't have an immediate sub-folder of app, however, it appears that running ng generate always assume that you have an
app
folder under the app root folder you specified in .angular-cli.jsonVersions
Repro steps
Observed behavior
You'll see the output path always assumes an
app
folder:Desired behavior
I'd like an option to be able to configure whether your project has the
app
folder or not. Or maybe an option to configure the whole path the component gets created in.The text was updated successfully, but these errors were encountered: