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

create-application flag not handled correctly #13383

Open
DenysVuika opened this Issue Jan 8, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@DenysVuika
Copy link

DenysVuika commented Jan 8, 2019

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

CLI: 7.1.4

Repro steps

Generating workspace without application still causes questions about the app:

ng new myapp --create-application=false
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? CSS

CREATE myapp/README.md (1027 bytes)
CREATE myapp/angular.json (135 bytes)
CREATE myapp/package.json (1262 bytes)
CREATE myapp/tsconfig.json (435 bytes)
CREATE myapp/tslint.json (2824 bytes)
CREATE myapp/.editorconfig (246 bytes)
CREATE myapp/.gitignore (576 bytes)

The log given by the failure

Desired functionality

The CLI should not ask questions about application it is not going to generate anyway.

Mention any other details that might be useful

@DenysVuika

This comment has been minimized.

Copy link

DenysVuika commented Jan 8, 2019

@alan-agius4 you can get the info via

ng new --help

--create-application 
    When true (the default), creates a new initial app project in the new workspace.
@alan-agius4

This comment has been minimized.

Copy link
Collaborator

alan-agius4 commented Jan 8, 2019

@DenysVuika, apologies, re-opened.

@ngbot ngbot bot modified the milestones: needsTriage, Backlog Jan 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment