Skip to content

Support native classes in app/router.js #18166

Closed
ember-cli/ember-octane-blueprint
#149

Description

@tomdale

Currently, ember g route foo will fail with an error if app/router.js uses newer JavaScript syntax like class fields or decorators. We should update this generator to ensure that this works correctly if people migrate this file to use native JavaScript syntax.

The bulk of the functionality of this generator lives in https://github.com/ember-cli/ember-router-generator, so this is largely a tracking issue for changes in that repo.

  • Support parsing class fields and decorators (PR)
  • Release [email protected]
  • Update ember-router-generator version included with ember-source
  • Update Octane blueprint to generate app/router.js file with native class syntax

Activity

  1. rwjblue commented on Jul 3, 2019

    @rwjblue
    Member

    Just released [email protected], should get a dependabot PR soon...

  2. gabrielgrant commented on Aug 11, 2019

    @gabrielgrant

    not seeing a dependabot PR for this...is that because it's configured to limit the number of PRs it will have open on a repo and it's already at it's max (which appears to be 10?). Or is there something actually blocking this?

  3. rwjblue commented on Aug 11, 2019

    @rwjblue
    Member

    Nothing blocking to my knowledge, definitely welcome a PR.

  4. added this to the 3.14 milestone on Aug 15, 2019
  5. xg-wang commented on Aug 17, 2019

    @xg-wang
    Contributor

    This seems easy, should I do the following:

    1. land Bump ember-router-generator from v1.2.3 to v2.0.0 #18278
    2. wait a canary release
    3. update ember-cli/ember-octane-blueprint
  6. added a commit that references this issue on Aug 20, 2019
  7. rwjblue commented on Aug 20, 2019

    @rwjblue
    Member

    @xg-wang thank you! I submitted ember-cli/ember-octane-blueprint#149 to close this out...

  8. added a commit that references this issue on Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions