Skip to content

Commit 23dba1a

Browse files
author
Daniel Del Core
committed
redirect setup
1 parent 8784b15 commit 23dba1a

File tree

5 files changed

+56
-0
lines changed

5 files changed

+56
-0
lines changed

Diff for: website/docs/guides/understanding-asts.mdx

+11
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ description: Learn about abstract syntax trees (ASTs) and how they are used in c
66
keywords: [abstract syntax trees, ASTs, codemods, refactor, codebase]
77
---
88

9+
<Head>
10+
<title>Understanding ASTs</title>
11+
<link rel="canonical" href="https://www.hypermod.io/docs/guides/understanding-asts" />
12+
</Head>
13+
14+
:::info
15+
16+
This guide has been moved to a new location. Please visit the new [Understanding ASTs guide](https://www.hypermod.io/docs/guides/understanding-asts).
17+
18+
:::
19+
920
Before writing your first codemod, it’s important to first have a good conceptual understanding of ASTs (abstract syntax trees) and how to work with them.
1021

1122
## Abstract Syntax Tree (aka AST)

Diff for: website/docs/guides/your-first-codemod.mdx

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ title: Your first codemod
44
slug: /your-first-codemod
55
---
66

7+
<Head>
8+
<title>Your first codemod</title>
9+
<link rel="canonical" href="https://www.hypermod.io/docs/guides/your-first-codemod" />
10+
</Head>
11+
12+
:::info
13+
14+
This guide has been moved to a new location. Please visit the new [Your first codemod guide](https://www.hypermod.io/docs/guides/your-first-codemod).
15+
16+
:::
17+
718
Every codemod follows the same series of operations: find, modify/insert, remove and finally output.
819
That's it. Once you know how to handle all of these operations you can do anything within a codemod.
920

Diff for: website/docs/recipes/import-manipulation.mdx

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ description: Learn how to use codemods to make effective and efficient changes t
77
keywords: [typescript, codemod, codemorph, jscodeshift]
88
---
99

10+
<Head>
11+
<title>Import manipulation</title>
12+
<link rel="canonical" href="https://hypermod.io/docs/guides/import-manipulation" />
13+
</Head>
14+
15+
:::info
16+
17+
This guide has been moved to a new location. Please visit the new [Import manipulation](https://hypermod.io/docs/guides/import-manipulation) guide.
18+
19+
:::
20+
1021
Modifying imports is one of the first and most common operations you are likely to do when writing codemods.
1122

1223
In this guide, we will explore how codemods can be used to make effective and efficient changes to javascript import statements.

Diff for: website/docs/recipes/react.mdx

+12
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ description: Learn how to use codemods to modify your React and JSX code. This g
77
keywords: [react, typescript, codemod, codemorph, jscodeshift]
88
---
99

10+
<Head>
11+
<title>React & JSX</title>
12+
<link rel="canonical" href="https://hypermod.io/docs/guides/react-jsx" />
13+
</Head>
14+
15+
16+
:::info
17+
18+
This guide has been moved to a new location. Please visit the new [React & JSX guide](https://hypermod.io/docs/guides/react-jsx).
19+
20+
:::
21+
1022
Codemods are an ideal solution for making significant changes to [React](https://reactjs.org/) and JSX code.
1123
The structure of JSX makes it easy for static analysis tools to understand and analyze,
1224
making it a popular choice for authors of React libraries, such as Design Systems.

Diff for: website/docs/recipes/typescript.mdx

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ description: Learn how to write codemods to modify common TypeScript. This guide
77
keywords: [typescript, codemod, codemorph, jscodeshift]
88
---
99

10+
<Head>
11+
<title>TypeScript</title>
12+
<link rel="canonical" href="https://hypermod.io/docs/guides/typescript" />
13+
</Head>
14+
15+
:::info
16+
17+
This guide has been moved to a new location. Please visit the new [Typescript guide](https://hypermod.io/docs/guides/typescript).
18+
19+
:::
20+
1021
If you're looking to modify TypeScript code in bulk, jscodeshift can be incredibly helpful.
1122
In this guide, we'll explore how you can use jscodeshift to modify common TypeScript syntaxes.
1223
Whether you're looking to update the types of variables or interfaces, this guide will provide you with the knowledge and tools you need to get started.

0 commit comments

Comments
 (0)