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
There is an assumption that I want have a /src/app folder. When I do not really want to have this folder. I actually want to have /src/{{moduleName}}/ , but totally appreciate using /src/app as a standard.
just used root instead of enforcing 'app' and the angular-cli.json use src/app as root or there was another property for app folder on the application entity.
This would help enable multiple apps in one project...
If the ng-cli maintainers have a direction or thoughts on this, I'm happy to implement, I just want to get a firm nod on the direction before I put in the work.
@Brocco, your answer doesn't resolve my issue.
That will give me {{source dir}}/app/, it's 'app' I want to get rid of...
I can easily change root in my angular-cli.json... I'm only using the
generator from ng-cli, my packaging is happening with my own webpack
configs so I can build multiple apps and libs per my project requirement,
while still getting to use the generator from ng-cli... what I really want
is a way to switch the 'app' module.. and the the generators locate the
module parent using the find-module-parent function I referenced, which
assumes the 'app' string will be there and that isn't what we have in our
projects.
@dopry I'm sorry my last response didn't answer what you were asking, just a simple misunderstanding.
We're certainly open to making that change, but there's some portions that are tied to that name which we'd need to ensure were all updated to allow for making that name configurable.
That being said, I'm not sure of the priority of the team working on this change. If you're willing to put together a PR, I'd be happy to help you with it.
Cool. I have some time tomorrow. I can explore a PR then. I'm sure the
angular-cli teams priorities are completely different than my own.. but
that's why we can create PRs. :) I just wanted to be sure I wasn't going to
spend my time on something that wouldn't have a chance of being accepted. :)
ᐧ
Please enable us to configure this. It's really annoying when you working on a long running project and want to fit Angular in with your existing mvc api, and don't want to maintain a duplicate file structure, for example.
Activity
dopry commentedon Feb 7, 2017
If the ng-cli maintainers have a direction or thoughts on this, I'm happy to implement, I just want to get a firm nod on the direction before I put in the work.
Brocco commentedon Feb 7, 2017
You can rename this dir with the
--source-diroption when you runng newthe documentation in the wiki explains the available options here.dopry commentedon Feb 7, 2017
dopry commentedon Feb 9, 2017
@Brocco, so are you saying the maintainers of angular-cli want to keep the hard coded name and aren't open to this change?
Brocco commentedon Feb 9, 2017
@dopry I'm sorry my last response didn't answer what you were asking, just a simple misunderstanding.
We're certainly open to making that change, but there's some portions that are tied to that name which we'd need to ensure were all updated to allow for making that name configurable.
That being said, I'm not sure of the priority of the team working on this change. If you're willing to put together a PR, I'd be happy to help you with it.
dopry commentedon Feb 9, 2017
Brocco commentedon Feb 9, 2017
Not at all, there are some things that are the way they are for a reason. But making the app name configurable is not one of them.
e-cloud commentedon Feb 13, 2017
at least tag some labels to indicate this is really a problem!
filipesilva commentedon Mar 9, 2017
Fixed by #4754
leocaseiro commentedon Apr 4, 2017
Hi @filipesilva,
I'm afraid the #4754 didn't fix this issue.
I've tried to implement with the
--app, but now I have some app folders, with theappfolder still.Eq:
Any way to get rid of the
/appand use the generate still?PS: I can remove by myself and run serve/build and so on, but I won't be able to use
generatewhich is the feature I'm expecting most.I've tried to rename the
rooton the cli, but everytime I rungenerateit creates theappfolder.Eq:
ng g m admin --app adminThanks.
TroelsWibergJensen commentedon Jun 20, 2018
Please enable us to configure this. It's really annoying when you working on a long running project and want to fit Angular in with your existing mvc api, and don't want to maintain a duplicate file structure, for example.
leocaseiro commentedon Jun 21, 2018
@nnit-TroelsJensen the newest
@angular/clilets you set the path intoangular.json.See the https://github.com/nrwl/nx as a reference: https://github.com/nrwl/nx-examples/blob/master/angular.json
PS: Perhaps, you might need to fix the generators using schematics.
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.