Skip to content

Commit cfca94a

Browse files
committed
fix: fix generate readme script
1 parent e69253c commit cfca94a

File tree

4 files changed

+28
-35
lines changed

4 files changed

+28
-35
lines changed

SNIPPETS.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ React and Next.js Snippets currently has a total of 38 snippets.
2323
| `ruc` | JavaScript: useContext hook | JavaScript |
2424
| `rucb` | JavaScript: useCallback hook | JavaScript |
2525
| `rur` | JavaScript: useRef hook | JavaScript |
26-
| `ngsst` | Typescript: Next.js get server side props | Typescript |
27-
| `ngsp` | TypeScript: Next.js get static props | TypeScript |
28-
| `npt` | Typescript: Next.js page | Typescript |
29-
| `ngipt` | TypeScript: Next.js get initial props | TypeScript |
30-
| `nct` | Typescript: Next.js component | Typescript |
31-
| `ngspat` | Typescript: Next.js get static path | Typescript |
32-
| `ncappt` | Typescript: Next.js custom app | Typescript |
33-
| `ncdoct` | Typescript: Next.js custom document | Typescript |
34-
| `ngapit` | Typescript: Next.js API Route | Typescript |
3526
| `ngss` | JavaScript: Next.js get server side props | JavaScript |
3627
| `ngsp` | JavaScript: Next.js get static props | JavaScript |
3728
| `ngspa` | JavaScript: Next.js get static path | JavaScript |
@@ -49,6 +40,15 @@ React and Next.js Snippets currently has a total of 38 snippets.
4940
| `ruct` | TypeScript: useContext hook | TypeScript |
5041
| `rucbt` | TypeScript: useCallback hook | TypeScript |
5142
| `rurt` | TypeScript: useRef hook | TypeScript |
43+
| `ngsst` | Typescript: Next.js get server side props | Typescript |
44+
| `ngsp` | TypeScript: Next.js get static props | TypeScript |
45+
| `npt` | Typescript: Next.js page | Typescript |
46+
| `ngipt` | TypeScript: Next.js get initial props | TypeScript |
47+
| `nct` | Typescript: Next.js component | Typescript |
48+
| `ngspat` | Typescript: Next.js get static path | Typescript |
49+
| `ncappt` | Typescript: Next.js custom app | Typescript |
50+
| `ncdoct` | Typescript: Next.js custom document | Typescript |
51+
| `ngapit` | Typescript: Next.js API Route | Typescript |
5252

5353
## ⭐ Show your support
5454

src/automation/scripts/generateReadme.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ fs.readdir(snippetsFolder, function (err, files) {
1919

2020
// Adding the snippet to the final array
2121
snippetArray.map((snippet) => {
22-
console.log(snippet);
2322
finalSnippets.push([
2423
`\`${snippet.prefix}\``,
2524
snippet.description.split("|")[0],

src/extension/README.md

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# 🌈 Table of Snippets
1010

11-
React and Next.js Snippets currently has a total of 27 snippets.
11+
React and Next.js Snippets currently has a total of 38 snippets.
1212

1313
| Prefix | Description | Language |
1414
| -------- | ------------------------------------------------ | ---------- |
@@ -23,6 +23,23 @@ React and Next.js Snippets currently has a total of 27 snippets.
2323
| `ruc` | JavaScript: useContext hook | JavaScript |
2424
| `rucb` | JavaScript: useCallback hook | JavaScript |
2525
| `rur` | JavaScript: useRef hook | JavaScript |
26+
| `ngss` | JavaScript: Next.js get server side props | JavaScript |
27+
| `ngsp` | JavaScript: Next.js get static props | JavaScript |
28+
| `ngspa` | JavaScript: Next.js get static path | JavaScript |
29+
| `ncapp` | JavaScript: Next.js custom app | JavaScript |
30+
| `ncdoc` | JavaScript: Next.js custom document | JavaScript |
31+
| `ngapi` | Javascript: Next.js API Route | Javascript |
32+
| `rimr` | TypeScript: import react | TypeScript |
33+
| `rimrd` | TypeScript: import React DOM | TypeScript |
34+
| `rimrs` | Typescript: Import React and useState | Typescript |
35+
| `rimrse` | Typescript: Import React, useState and useEffect | Typescript |
36+
| `rfct` | Typescript: React functional component | Typescript |
37+
| `ruet` | TypeScript: useEffect hook | TypeScript |
38+
| `rumt` | Typescript: useMemo hook | Typescript |
39+
| `rust` | TypeScript: useState hook | TypeScript |
40+
| `ruct` | TypeScript: useContext hook | TypeScript |
41+
| `rucbt` | TypeScript: useCallback hook | TypeScript |
42+
| `rurt` | TypeScript: useRef hook | TypeScript |
2643
| `ngsst` | Typescript: Next.js get server side props | Typescript |
2744
| `ngsp` | TypeScript: Next.js get static props | TypeScript |
2845
| `npt` | Typescript: Next.js page | Typescript |
@@ -32,29 +49,6 @@ React and Next.js Snippets currently has a total of 27 snippets.
3249
| `ncappt` | Typescript: Next.js custom app | Typescript |
3350
| `ncdoct` | Typescript: Next.js custom document | Typescript |
3451
| `ngapit` | Typescript: Next.js API Route | Typescript |
35-
| `ngss` | JavaScript: Next.js get server side props | JavaScript |
36-
| `ngsp` | JavaScript: Next.js get static props | JavaScript |
37-
| `ngspa` | JavaScript: Next.js get static path | JavaScript |
38-
| `ncapp` | JavaScript: Next.js custom app | JavaScript |
39-
| `ncdoc` | JavaScript: Next.js custom document | JavaScript |
40-
| `ngapi` | Javascript: Next.js API Route | Javascript |
41-
42-
## ⭐ Show your support
43-
44-
Give a ⭐️ if this project helped you!
45-
46-
## 📝 License
47-
48-
Copyright © 2022 [Avneesh Agarwal](https://github.com/avneesh0612).<br />
49-
This project is [GNU](https://github.com/buidler-hub/react-nextjs-snippets/blob/main/LICENSE) licensed.
50-
React, useState and useEffect | Typescript |
51-
| `rfct` | Typescript: React functional component | Typescript |
52-
| `ruet` | TypeScript: useEffect hook | TypeScript |
53-
| `rumt` | Typescript: useMemo hook | Typescript |
54-
| `rust` | TypeScript: useState hook | TypeScript |
55-
| `ruct` | TypeScript: useContext hook | TypeScript |
56-
| `rucbt` | TypeScript: useCallback hook | TypeScript |
57-
| `rurt` | TypeScript: useRef hook | TypeScript |
5852

5953
## ⭐ Show your support
6054

src/extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-nextjs-snippets",
33
"displayName": "React and Next.js Snippets",
44
"description": "This is an extension for React and Next.js Snippets with Typescript support as well!",
5-
"version": "1.6.0",
5+
"version": "1.7.0",
66
"publisher": "AvneeshAgarwal",
77
"icon": "logo.png",
88
"repository": {

0 commit comments

Comments
 (0)