Angular CLI 1.4.2 is generating unwanted directories when root directory is custom (src/app1) #7869
Labels
P1
Impacts a large percentage of users; if a workaround exists it is partial or overly painful
severity3: broken
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.4.3
node: 6.11.3
os: win32 x64
@angular/animations: 4.4.3
@angular/common: 4.4.3
@angular/compiler: 4.4.3
@angular/core: 4.4.3
@angular/forms: 4.4.3
@angular/http: 4.4.3
@angular/platform-browser: 4.4.3
@angular/platform-browser-dynamic: 4.4.3
@angular/platform-server: 4.4.3
@angular/router: 4.4.3
@angular/cli: 1.4.3
@angular/compiler-cli: 4.4.3
@angular/language-service: 4.4.3
typescript: 2.3.4
Repro steps.
I am using Angular CLI to support multiple applications within one project.
"apps": [ { "name": "app1", "root": "src/app1", "outDir": "dist/app1", . . }, { "name": "app2", "root": "src/app2", "outDir": "dist/app2", . . } ]
But when I am running following command to generate a service
C:\POC\test1\src\app1\app>ng g service test --app=app1
Service is generated like this
Desired functionality.
It should be created like
create src/app1/app/test.service.spec.ts (362 bytes) create src/app1/app/test.service.ts (110 bytes)
Mention any other details that might be useful.
I asked this question on StackOverflow https://stackoverflow.com/questions/46456124
Response:
The text was updated successfully, but these errors were encountered: