Skip to content
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

Add a destroy command #1208

Open
wisn opened this issue Dec 14, 2017 · 6 comments
Open

Add a destroy command #1208

wisn opened this issue Dec 14, 2017 · 6 comments

Comments

@wisn
Copy link

wisn commented Dec 14, 2017

Ignite have a generate command which is producing an example file from plugin. The missing command is destroy which is remove a file that generated by the plugin. Not only add a new command, this will need to change the plugin behavior as well.

$ ignite g saga hello
✔︎ App/Sagas/HelloSagas.js
✔︎ Tests/Sagas/HelloSagaTest.js
$ ignite d saga hello
✘ App/Sagas/HelloSagas.js
✘ Tests/Sagas/HelloSagaTest.js
@kevinvangelder
Copy link
Member

We have remove for plugins but haven't yet built a way to remove generated files as it's usually easy enough to do it manually, but it's a good suggestion! 👍

@adrianhartanto0
Copy link

Should this be boilerplate specific command since each boilerplate has its own file structure? @jamonholmgren

@jamonholmgren
Copy link
Member

@adrianhartanto0 Yeah, you'd just copy and paste the generate folder and make a destroy folder (and commands/destroy/destroy.js).

https://github.com/infinitered/ignite-bowser/tree/d0cae5484a96f4d686ab61c87428ec5749b194d6/commands

I'd wait a bit, though, as we're revamping that folder structure a bit right now.

@frankcalise
Copy link
Contributor

Closing since Ignite does not contain plugins anymore

@jamonholmgren
Copy link
Member

This would actually also apply to generators, which we do still have @frankcalise. (Honestly -- not very hard to implement either!)

@jamonholmgren jamonholmgren reopened this Aug 8, 2023
@frankcalise
Copy link
Contributor

@jamonholmgren so this would remove a model/screen/component that was once generated?

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

No branches or pull requests

6 participants