Skip to content

Commit

Permalink
fix: fix generate readme script
Browse files Browse the repository at this point in the history
  • Loading branch information
avneesh0612 committed May 22, 2022
1 parent e69253c commit cfca94a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 35 deletions.
18 changes: 9 additions & 9 deletions SNIPPETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ React and Next.js Snippets currently has a total of 38 snippets.
| `ruc` | JavaScript: useContext hook | JavaScript |
| `rucb` | JavaScript: useCallback hook | JavaScript |
| `rur` | JavaScript: useRef hook | JavaScript |
| `ngsst` | Typescript: Next.js get server side props | Typescript |
| `ngsp` | TypeScript: Next.js get static props | TypeScript |
| `npt` | Typescript: Next.js page | Typescript |
| `ngipt` | TypeScript: Next.js get initial props | TypeScript |
| `nct` | Typescript: Next.js component | Typescript |
| `ngspat` | Typescript: Next.js get static path | Typescript |
| `ncappt` | Typescript: Next.js custom app | Typescript |
| `ncdoct` | Typescript: Next.js custom document | Typescript |
| `ngapit` | Typescript: Next.js API Route | Typescript |
| `ngss` | JavaScript: Next.js get server side props | JavaScript |
| `ngsp` | JavaScript: Next.js get static props | JavaScript |
| `ngspa` | JavaScript: Next.js get static path | JavaScript |
Expand All @@ -49,6 +40,15 @@ React and Next.js Snippets currently has a total of 38 snippets.
| `ruct` | TypeScript: useContext hook | TypeScript |
| `rucbt` | TypeScript: useCallback hook | TypeScript |
| `rurt` | TypeScript: useRef hook | TypeScript |
| `ngsst` | Typescript: Next.js get server side props | Typescript |
| `ngsp` | TypeScript: Next.js get static props | TypeScript |
| `npt` | Typescript: Next.js page | Typescript |
| `ngipt` | TypeScript: Next.js get initial props | TypeScript |
| `nct` | Typescript: Next.js component | Typescript |
| `ngspat` | Typescript: Next.js get static path | Typescript |
| `ncappt` | Typescript: Next.js custom app | Typescript |
| `ncdoct` | Typescript: Next.js custom document | Typescript |
| `ngapit` | Typescript: Next.js API Route | Typescript |

## ⭐ Show your support

Expand Down
1 change: 0 additions & 1 deletion src/automation/scripts/generateReadme.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ fs.readdir(snippetsFolder, function (err, files) {

// Adding the snippet to the final array
snippetArray.map((snippet) => {
console.log(snippet);
finalSnippets.push([
`\`${snippet.prefix}\``,
snippet.description.split("|")[0],
Expand Down
42 changes: 18 additions & 24 deletions src/extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# 🌈 Table of Snippets

React and Next.js Snippets currently has a total of 27 snippets.
React and Next.js Snippets currently has a total of 38 snippets.

| Prefix | Description | Language |
| -------- | ------------------------------------------------ | ---------- |
Expand All @@ -23,6 +23,23 @@ React and Next.js Snippets currently has a total of 27 snippets.
| `ruc` | JavaScript: useContext hook | JavaScript |
| `rucb` | JavaScript: useCallback hook | JavaScript |
| `rur` | JavaScript: useRef hook | JavaScript |
| `ngss` | JavaScript: Next.js get server side props | JavaScript |
| `ngsp` | JavaScript: Next.js get static props | JavaScript |
| `ngspa` | JavaScript: Next.js get static path | JavaScript |
| `ncapp` | JavaScript: Next.js custom app | JavaScript |
| `ncdoc` | JavaScript: Next.js custom document | JavaScript |
| `ngapi` | Javascript: Next.js API Route | Javascript |
| `rimr` | TypeScript: import react | TypeScript |
| `rimrd` | TypeScript: import React DOM | TypeScript |
| `rimrs` | Typescript: Import React and useState | Typescript |
| `rimrse` | Typescript: Import React, useState and useEffect | Typescript |
| `rfct` | Typescript: React functional component | Typescript |
| `ruet` | TypeScript: useEffect hook | TypeScript |
| `rumt` | Typescript: useMemo hook | Typescript |
| `rust` | TypeScript: useState hook | TypeScript |
| `ruct` | TypeScript: useContext hook | TypeScript |
| `rucbt` | TypeScript: useCallback hook | TypeScript |
| `rurt` | TypeScript: useRef hook | TypeScript |
| `ngsst` | Typescript: Next.js get server side props | Typescript |
| `ngsp` | TypeScript: Next.js get static props | TypeScript |
| `npt` | Typescript: Next.js page | Typescript |
Expand All @@ -32,29 +49,6 @@ React and Next.js Snippets currently has a total of 27 snippets.
| `ncappt` | Typescript: Next.js custom app | Typescript |
| `ncdoct` | Typescript: Next.js custom document | Typescript |
| `ngapit` | Typescript: Next.js API Route | Typescript |
| `ngss` | JavaScript: Next.js get server side props | JavaScript |
| `ngsp` | JavaScript: Next.js get static props | JavaScript |
| `ngspa` | JavaScript: Next.js get static path | JavaScript |
| `ncapp` | JavaScript: Next.js custom app | JavaScript |
| `ncdoc` | JavaScript: Next.js custom document | JavaScript |
| `ngapi` | Javascript: Next.js API Route | Javascript |

## ⭐ Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2022 [Avneesh Agarwal](https://github.com/avneesh0612).<br />
This project is [GNU](https://github.com/buidler-hub/react-nextjs-snippets/blob/main/LICENSE) licensed.
React, useState and useEffect | Typescript |
| `rfct` | Typescript: React functional component | Typescript |
| `ruet` | TypeScript: useEffect hook | TypeScript |
| `rumt` | Typescript: useMemo hook | Typescript |
| `rust` | TypeScript: useState hook | TypeScript |
| `ruct` | TypeScript: useContext hook | TypeScript |
| `rucbt` | TypeScript: useCallback hook | TypeScript |
| `rurt` | TypeScript: useRef hook | TypeScript |

## ⭐ Show your support

Expand Down
2 changes: 1 addition & 1 deletion src/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-nextjs-snippets",
"displayName": "React and Next.js Snippets",
"description": "This is an extension for React and Next.js Snippets with Typescript support as well!",
"version": "1.6.0",
"version": "1.7.0",
"publisher": "AvneeshAgarwal",
"icon": "logo.png",
"repository": {
Expand Down

0 comments on commit cfca94a

Please sign in to comment.