infinitered / infinitered/ignite

Add a `destroy` command

Open
#1,208 6 comments 0 reactions 0 assignees View on GitHub
enhancement Hacktoberfest help wanted
Dominant language
TypeScript
Stars
19.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing `generate`/`g` command and the plugin behavior that creates the example files. Define how `destroy`/`d` should identify generated files, then verify the sample flow removes both listed files and reports the results shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.