Skip to content

Commit 72d8455

Browse files
authored
Merge pull request #118 from patocallaghan/patch-1
Add some docs on how to generate template codemods
2 parents 461e100 + 96cfd3d commit 72d8455

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ ready to help you manage your codemods.
2828
Once you have a project, you can generate a new codemod:
2929

3030
```
31-
codemod-cli generate codemod <name of codemod>
31+
codemod-cli generate codemod <name of codemod> // jscodeshift js codemod
32+
codemod-cli generate codemod <name of codemod> -t=hbs // ember-template-recast hbs codemod
3233
```
3334

34-
This will setup a new jscodeshift codemod within your project at `transforms/<name of codemod>/index.js`
35+
This will setup a new codemod within your project at `transforms/<name of codemod>/index.js`
3536
along with a test harness, README, fixture directory, and an initial set of input/output fixtures.
3637

3738
Once you have tweaked your codemod and its fixtures to your liking, it is time to run your tests:

0 commit comments

Comments
 (0)