Skip to content

Generates --classic type structure when both usePods is true and --pod is used  #7163

Closed

Description

@emrekutlu
// project-root/.ember-cli
{
  "usePods": true
}

When usePods is true;

$ ember generate controller foo --pod

installing controller
  create app/controllers/foo.js
installing controller-test
  create tests/unit/controllers/foo-test.js

Generates in --classic structure not in --pod.


Output from ember version --verbose && npm --version && yarn --version:

ember-cli: 2.13.3
http_parser: 2.7.0
node: 6.9.1
v8: 5.1.281.84
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 48
openssl: 1.0.2j
os: darwin x64
3.10.8
0.24.6

Activity

  1. emrekutlu commented on Jun 29, 2017

    @emrekutlu
    ContributorAuthor

    I submitted a PR #7164.

    But I believe using mutually exclusive values in different arguments is problematic. It is not obvious what will happen if I use both --classic and --pod together. Better be something like structure=pod but I suppose you don't use this kind of command arguments.

  2. webhive commented on Oct 29, 2017

    @webhive

    Confirm it. Got this issue too.

  3. added a commit that references this issue on Nov 10, 2017
    b718d37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions