Skip to content
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

Any way to generate components etc. without being under the /app dir? #9240

Closed
getabetterpic opened this issue Jan 17, 2018 · 2 comments
Closed

Comments

@getabetterpic
Copy link

Versions

Angular CLI: 1.6.1
Node: 6.11.2
OS: darwin x64
Angular: 4.3.6
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, tsc-wrapped
... upgrade

@angular/cli: 1.6.1
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.34
@ngtools/json-schema: 1.1.0
typescript: 2.5.2
webpack-dev-server: 2.7.1
webpack: 3.5.6

Repro steps

  • ng g component components/test --app=ui

Observed behavior

  create app/javascript/ui/app/components/test/test.component.html (23 bytes)
  create app/javascript/ui/app/components/test/test.component.spec.ts (614 bytes)
  create app/javascript/ui/app/components/test/test.component.ts (236 bytes)
  update app/javascript/ui/ui.module.ts (721 bytes)

Desired behavior

Would like to be able to have the files generated under app/javascript/ui/components/test/test.component.ts without the app portion of the path.

Mention any other details that might be useful

We have two main applications that both consume this UI 'module' for lack of a better term. The UI module itself isn't a standalone application so it doesn't make sense to have its components/services/etc namespaced under an app folder. I'd be happy to put in a PR for a flag in the .angular-cli.json to handle this if that would be the best way to solve this.

@hansl hansl added feature Issue that requests a new feature P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient labels Jan 24, 2018
@hansl hansl added type: bug/fix freq2: medium and removed P5 The team acknowledges the request but does not plan to address it, it remains open for discussion feature Issue that requests a new feature labels Feb 1, 2018
@ngbot ngbot bot added this to the Backlog milestone Jan 24, 2019
@filipesilva
Copy link
Contributor

I think this is a duplicate of #9370.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants