angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Rename / remove / move components

Open zpydee opened this issue 10 years ago • 102 comments

Please provide us with the following information:

  1. OS? Mac OSX (El Capitan)
  1. Versions. Please run ng --version. If there's nothing outputted, please angular-cli: 1.0.0-beta.1 node: 5.7.0 os: darwin x64

It would be really usefull to add cli commands for:

  • rm = removing a component
  • mv = moving / renaming a component

Unless I am missing it, I don't see that this exists and it would be really useful during refactoring to avoid all the manual updates that come with this process.

Thoughts?

zpydee avatar May 24 '16 07:05 zpydee

Fair enough. I dont pretend to know how complicated Angular setup is. But Rails has had this since its inception so I imagine there must be a solution. Isn't the most common use case of using destroy right after generate?

I'm not a proponent of rename as much as I am basic destroy functionality.

leehericks avatar May 29 '17 09:05 leehericks

Isn't the most common use case of using destroy right after generate?

Exactly. I assume that this use case is much easier then 'create component, use if for 2 years, destroy component'.

sharikovvladislav avatar May 31 '17 08:05 sharikovvladislav

+infinity! It would be a great improvement to add this feature!

shockw4ver avatar Jun 02 '17 15:06 shockw4ver

+1

arielalvarez88 avatar Jun 10 '17 19:06 arielalvarez88

+1

dgroh avatar Jun 15 '17 14:06 dgroh

+1

davidbruce avatar Jun 16 '17 01:06 davidbruce

+1

Just noticed that I have to rename 4 components along with html and css files and it's already cumbersome...

M-sala avatar Jun 20 '17 01:06 M-sala

+1 renaming a folder + 4 files is a hassle even though WebStorm keeps the references all in sync

davideberlein avatar Jun 20 '17 14:06 davideberlein

+1 for renaming and deleting 😄

rageshvr avatar Jun 28 '17 17:06 rageshvr

+1

amit0001 avatar Jul 18 '17 08:07 amit0001

+1

peterleejscript avatar Jul 19 '17 01:07 peterleejscript

+1 for renaming and deleting; its like having mkdir without rmdir and mv! There should be CRUD for each entity type, not just Create BTW, I dont think a priority of "nice to have" is correct...this is missing basic functionality for such a fundamental tool.

polyglotinc avatar Jul 19 '17 21:07 polyglotinc

+1. ng destroy would be excellent.

haydenhancock avatar Jul 27 '17 15:07 haydenhancock

+1 for renaming

sinedsem avatar Aug 03 '17 21:08 sinedsem

+1 for crud operations

AndrinGautschi avatar Aug 04 '17 15:08 AndrinGautschi

+1 for renaming components.

penniath avatar Aug 11 '17 06:08 penniath

+1 for renaming and removing components

Padimanskas avatar Aug 11 '17 09:08 Padimanskas

+1 for renaming and removing components

horacehylee avatar Aug 13 '17 03:08 horacehylee

+1 for renaming and removing components

2rohityadav avatar Aug 13 '17 14:08 2rohityadav

+1 for renaming and removing component

adhikarianilkumar avatar Aug 15 '17 20:08 adhikarianilkumar