This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: renamed intuita to codemod.com in all applicable places wherev…
…er possible (#190)
- Loading branch information
Showing
14 changed files
with
89 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
# Intuita's Codemod Engine Node | ||
# Codemod.com's Codemod Engine Node | ||
|
||
Intuita gives you multiple ways to discover, run & share supported codemods and code automation recipes. | ||
Codemod.com gives you multiple ways to discover, run & share supported codemods and code automation recipes. | ||
|
||
![Running Intuita CLI](https://raw.githubusercontent.com/intuita-inc/intuita-website/main/theme/assets/images/hero-video.gif) | ||
![Running Codemod CLI](https://raw.githubusercontent.com/codemod-com/website/main/theme/assets/images/hero-video.gif) | ||
|
||
## Installation | ||
|
||
npm i intuita | ||
npm i codemod | ||
|
||
## Global installation (recommended) | ||
|
||
npm i -g intuita | ||
npm i -g codemod | ||
|
||
## Usage | ||
|
||
### Running a codemod | ||
|
||
intuita [framework/version/codemod-name] | ||
codemod [framework/version/codemod-name] | ||
|
||
#### Example (running Next.js app router receipe codemod) | ||
|
||
intuita next/13/app-router-recipe | ||
codemod next/13/app-router-recipe | ||
|
||
### List available codemods | ||
|
||
The `list` command can be used to list all codemods available in the [Codemod Registry](https://github.com/intuita-inc/codemod-registry). | ||
The `list` command can be used to list all codemods available in the [Codemod Registry](https://github.com/codemod-com/codemod-registry). | ||
|
||
intuita list | ||
codemod list | ||
|
||
### Sync registry | ||
|
||
The `syncRegistry` command can be used to sync local codemods with the public [Codemod Registry](https://github.com/intuita-inc/codemod-registry). | ||
The `syncRegistry` command can be used to sync local codemods with the public [Codemod Registry](https://github.com/codemod-com/codemod-registry). | ||
|
||
intuita syncRegistry | ||
codemod syncRegistry | ||
|
||
### Generate codemod from file diff | ||
|
||
The `learn` command can be used to send the diff of the latest edited file to the Codemod Studio and have it automatically build an explainable and debuggable codemod. | ||
|
||
After running this command, if any git diff exists, Intuita will use the diff as before/after snippets in the [Codemod Studio](https://codemod.studio). | ||
After running this command, if any git diff exists, `codemod` will use the diff as before/after snippets in the [Codemod Studio](https://codemod.studio). | ||
|
||
intuita learn | ||
codemod learn | ||
|
||
### Options | ||
|
||
- [`--include`](https://docs.intuita.io/docs/cli/advanced-usage#--include) | ||
- [`--exclude`](https://docs.intuita.io/docs/cli/advanced-usage#--exclude) | ||
- [`--targetPath`](https://docs.intuita.io/docs/cli/advanced-usage#--targetpath) | ||
- [`--sourcePath`](https://docs.intuita.io/docs/cli/advanced-usage#--sourcepath) | ||
- [`--codemodEngine`](https://docs.intuita.io/docs/cli/advanced-usage#--codemodengine) | ||
- [`--fileLimit`](https://docs.intuita.io/docs/cli/advanced-usage#--filelimit) | ||
- [`--usePrettier`](https://docs.intuita.io/docs/cli/advanced-usage#--useprettier) | ||
- [`--useCache`](https://docs.intuita.io/docs/cli/advanced-usage#--usecache) | ||
- [`--useJson`](https://docs.intuita.io/docs/cli/advanced-usage#--usejson) | ||
- [`--threadCount`](https://docs.intuita.io/docs/cli/advanced-usage#--threadcount) | ||
- [`--dryRun`](https://docs.intuita.io/docs/cli/advanced-usage#--dryrun) | ||
- [`--telemetryDisable`](https://docs.intuita.io/docs/cli/advanced-usage#--telemetrydisable) | ||
- [`--include`](https://docs.codemod.com/docs/cli/advanced-usage#--include) | ||
- [`--exclude`](https://docs.codemod.com/docs/cli/advanced-usage#--exclude) | ||
- [`--targetPath`](https://docs.codemod.com/docs/cli/advanced-usage#--targetpath) | ||
- [`--sourcePath`](https://docs.codemod.com/docs/cli/advanced-usage#--sourcepath) | ||
- [`--codemodEngine`](https://docs.codemod.com/docs/cli/advanced-usage#--codemodengine) | ||
- [`--fileLimit`](https://docs.codemod.com/docs/cli/advanced-usage#--filelimit) | ||
- [`--usePrettier`](https://docs.codemod.com/docs/cli/advanced-usage#--useprettier) | ||
- [`--useCache`](https://docs.codemod.com/docs/cli/advanced-usage#--usecache) | ||
- [`--useJson`](https://docs.codemod.com/docs/cli/advanced-usage#--usejson) | ||
- [`--threadCount`](https://docs.codemod.com/docs/cli/advanced-usage#--threadcount) | ||
- [`--dryRun`](https://docs.codemod.com/docs/cli/advanced-usage#--dryrun) | ||
- [`--telemetryDisable`](https://docs.codemod.com/docs/cli/advanced-usage#--telemetrydisable) | ||
|
||
## Contribution | ||
|
||
We'd love for you to contribute to the [Codemod Engine](https://github.com/intuita-inc/codemod-engine-node) and the [Codemod Registry](https://github.com/intuita-inc/codemod-registry). Please note that once you create a pull request, you will be asked to sign our [Contributor License Agreement](https://cla-assistant.io/intuita-inc/codemod-registry). | ||
We'd love for you to contribute to the [Codemod Engine](https://github.com/codemod-com/codemod-engine-node) and the [Codemod Registry](https://github.com/codemod-com/codemod-registry). Please note that once you create a pull request, you will be asked to sign our [Contributor License Agreement](https://cla-assistant.io/codemod-com/codemod-registry). | ||
|
||
We're always excited to support codemods for more frameworks and libraries. Contributing allows us to make codemods more accessible to more framework builders, developers, and more. | ||
|
||
## Telemetry 🔭 | ||
|
||
We collect anonymous usage data to improve our product. Collected data cannot be linked to individual users. We do not store personal data/code. | ||
|
||
For more details and samples of collected data see our [telemetry compliance considerations](https://docs.intuita.io/docs/about-intuita/legal/telemetry-compliance) doc. | ||
For more details and samples of collected data see our [telemetry compliance considerations](https://docs.codemod.com/docs/about/telemetry-compliance) doc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"name": "intuita", | ||
"version": "0.7.3", | ||
"name": "codemod", | ||
"version": "0.8.0", | ||
"description": "A codemod engine for Node.js libraries (jscodeshift, ts-morph, etc.)", | ||
"type": "module", | ||
"exports": null, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/intuita-inc/codemod-engine-node" | ||
"url": "https://github.com/codemod-com/codemod-engine-node" | ||
}, | ||
"keywords": [ | ||
"codemod", | ||
|
@@ -82,7 +82,7 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "esbuild ./src/index.ts --define:__INTUITA_CLI_VERSION__=\\\"0.7.3\\\" --bundle --platform=node --target=node16 --minify --format=cjs --legal-comments=inline --outfile=./dist/index.cjs", | ||
"build": "esbuild ./src/index.ts --define:__CODEMODCOM_CLI_VERSION__=\\\"0.8.0\\\" --bundle --platform=node --target=node16 --minify --format=cjs --legal-comments=inline --outfile=./dist/index.cjs", | ||
"lint:eslint": "eslint src --fix --ext ts", | ||
"lint:prettier": "prettier --write .", | ||
"package": "pkg --compress GZip .", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
export const CONSOLE_OVERRIDE = ` | ||
console.debug = (data, ...args) => { | ||
__INTUITA__console__('debug', data, ...args); | ||
__CODEMODCOM__console__('debug', data, ...args); | ||
}; | ||
console.error = (data, ...args) => { | ||
__INTUITA__console__('error', data, ...args); | ||
__CODEMODCOM__console__('error', data, ...args); | ||
}; | ||
console.log = (data, ...args) => { | ||
__INTUITA__console__('log', data, ...args); | ||
__CODEMODCOM__console__('log', data, ...args); | ||
}; | ||
console.info = (data, ...args) => { | ||
__INTUITA__console__('info', data, ...args); | ||
__CODEMODCOM__console__('info', data, ...args); | ||
}; | ||
console.trace = (data, ...args) => { | ||
__INTUITA__console__('trace', data, ...args); | ||
__CODEMODCOM__console__('trace', data, ...args); | ||
}; | ||
console.warn = (data, ...args) => { | ||
__INTUITA__console__('warn', data, ...args); | ||
__CODEMODCOM__console__('warn', data, ...args); | ||
}; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.