ng new --prefix seems to be ignored
See original GitHub issue- [x ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.0.0 node: 6.10.1 os: win32 x64
Repro steps.
ng new AppshellSample --prefix app-shell --style scss --routing -d
The log given by the failure.
installing ng You specified the dry-run flag, so no changes will be written. create .editorconfig create README.md create src\app\app-routing.module.ts create src\app\app.component.scss create src\app\app.component.html create src\app\app.component.spec.ts create src\app\app.component.ts create src\app\app.module.ts create src\assets.gitkeep create src\environments\environment.prod.ts create src\environments\environment.ts create src\favicon.ico create src\index.html create src\main.ts create src\polyfills.ts create src\styles.scss create src\test.ts create src\tsconfig.app.json create src\tsconfig.spec.json create src\typings.d.ts create .angular-cli.json create e2e\app.e2e-spec.ts create e2e\app.po.ts create e2e\tsconfig.e2e.json create karma.conf.js create package.json create protractor.conf.js create tsconfig.json create tslint.json Project ‘AppshellSample’ successfully created.
Desired functionality.
this part: create src\app\app-routing.module.ts create src\app\app.component.scss create src\app\app.component.html create src\app\app.component.spec.ts create src\app\app.component.ts create src\app\app.module.ts
Should be: create src\app-shell\app-shell-routing.module.ts create src\app-shell\app-shell.component.scss create src\app-shell\app-shell.component.html create src\app-shell\app-shell.component.spec.ts create src\app-shell\app-shell.component.ts create src\app-shell\app-shell.module.ts
Mention any other details that might be useful.
Sometimes you just need a differently named top-level component.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (1 by maintainers)
@clydin @PascalPrecht, I have discussed this with the style-guide (That materialised to me in the form of @wardbell ) and what I need and want is allowed by the guide. After some more digging, it turns out to be a bug in the CLI. I will keep this item closed, as the actual problem has nothing to do with --prefix.
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.