Skip to content

bring back ng init to initialize a new blank workspace #11615

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

Closed
ctaepper opened this issue Jul 20, 2018 · 2 comments
Closed

bring back ng init to initialize a new blank workspace #11615

ctaepper opened this issue Jul 20, 2018 · 2 comments

Comments

@ctaepper
Copy link

Bug Report or Feature Request (mark with an x)

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

Command (mark with an x)

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

I want to create a new project/workspace with a predefined structure for applications and libraries using the cli.

Repro steps

currently I have to

  1. ng new projectname
  2. project directory gets created with the default application project
  3. I use ng g application another-app and ng g library my-lib to create my apps and libs
  4. I delete the default app from file system and remove it from angular.json

Desired functionality

I want to use ng init in order to

  1. if no package.json is present in working dir, create the same package.json as ng new does. If package.json is already present, just extend it with angular (dev)dependencies
  2. create a blank angular.json inside working dir with no projects define
  3. I can now start using ng g application another-app and ng g library my-lib to create my apps and libs
  4. (I do not have to delete any default projects from file system and angular.json)
@filipesilva
Copy link
Contributor

Duplicate of #11402

@filipesilva filipesilva marked this as a duplicate of #11402 Jul 23, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants