Skip to content

--includeAngularDemo option does not work. #5297

Open
@robario

Description

@robario

Environment

  • CLI: 6.5.0
  • Cross-platform modules: 6.2.3
  • Android Runtime: 6.2.0
  • iOS Runtime: 6.2.0
  • Plugin(s): none

Describe the bug
When tns plugin create, --includeAngularDemo option does not work.

To Reproduce

$ tns plugin create --pluginName=foo --username=bar --includeTypeScriptDemo=y --includeAngularDemo=n ./nativescript-foo

Expected behavior

$ ls ./nativescript-foo/demo-angular
ls: cannot access './nativescript-foo/demo-angular': No such file or directory

But the directory exists.

Sample project
none

Additional context
#4616

let shouldIncludeDemo = !!includeDemoOption;

At this line, includeDemoOption is "y" or "n" then shouldIncludeDemo is always true.

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