Skip to content

Paths should follow the styleguide #316

Closed

Description

@hansl

Following the Houston app demo;

  • The directory structure need to be only including routes (not components, services or pipes). Components, services and pipes need to be in an _ directory inside the route
    The following commands need to be changes (feel free to check those that are solved):
    • new: simply a matter of updating the scaffold.
    • generate:
      • component/service/pipe: need to be added to an _ directory in the route specified. For example, ng generate component foo/bar/blah should be generated in the directory foo/bar/_/blah. If the _ is included then we don't need to add it (an _ route would be invalid here).
      • route: the scaffold need to include an empty _ directory under the route itself.
  • Adding an index.ts file to all scaffolds that export the component/route/service/pipe of that directory.

I think that's it for this.

Activity

  1. added this to the milestone on Mar 18, 2016
  2. filipesilva commented on Mar 18, 2016

    @filipesilva
    Contributor

    We should put off merging this this PR until the official style guide is in. Otherwise users will have no idea nor guidance as to how the structure is meant to be used.

  3. hansl commented on Mar 18, 2016

    @hansl
    ContributorAuthor

    That is the official styleguide though. The document is going to adhere to this, not the other way around.

  4. filipesilva commented on Mar 18, 2016

    @filipesilva
    Contributor

    The repo is not a document. We can't direct users to the repo for insights on style guide issues.

    We need a document that users can read and understand before we change the CLI to use it.

  5. Brocco commented on Mar 18, 2016

    @Brocco
    Contributor

    At the current state of the project (pre-alpha) I think we can make changes without documentation in place. Especially given our milestone goals.

  6. mattcarp commented on Mar 20, 2016

    @mattcarp

    Hi @hansl. Would you have a link to the repo mentioned?

  7. 3 remaining items

  8. Brocco commented on Apr 18, 2016

    @Brocco
    Contributor

    Fixed via #427

  9. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  10. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions