jamestalmage / jamestalmage/generator-codemod

Goals

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I would like to start using codemods over my IDE's search and replace more. I think this basic scaffolding gets me there.

Some general goals / thoughts:
- No local dependencies required. The global install of `jscodeshift` is passed in, so there is no need for them to install anything locally (generator completes very fast).
- API examples baked in. I don't use `jscodeshift` enough yet to remember how `registerMethods` works. See #1. It's adds a bit of verbosity, but provides a useful example for a substantial part of the UI.

// @sindresorhus @jfmengels

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by reviewing the generator's existing scaffolding and its jscodeshift integration, then compare it with the API example in #1. Done means the codemod scaffolding uses a global jscodeshift install without local dependencies and includes the intended API examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.