Skip to content

Commit

Permalink
Update TypeScript Remix route component extension and README
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahceylan committed Oct 11, 2024
1 parent 05b6ed0 commit 604db1f
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<a name="0.0.5"></a>
## [0.0.5](https://github.com/abdullahceylan/vscode-react-component-generator/compare/0.0.4...0.0.5) (2024-10-11)

### Updates
* Updated TypeScript Remix Route component extension

<a name="0.0.4"></a>
## [0.0.4](https://github.com/abdullahceylan/vscode-react-component-generator/compare/0.0.3...0.0.4) (2024-10-11)

Expand All @@ -8,7 +14,6 @@
* Added TypeScript Remix component creation
* Added TypeScript Remix route component creation
* Added CSS Module prefix support for the stylesheet extension option.
*

<a name="0.0.3"></a>
## [0.0.3](https://github.com/abdullahceylan/vscode-react-component-generator/compare/0.0.2...0.0.3) (2018-12-30)
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ The extension helps you to create a React component with one-click. There are al
[![Installs](https://vsmarketplacebadges.dev/installs-short/abdullahceylan.vscode-react-component-generator.png)](https://marketplace.visualstudio.com/items?itemName=abdullahceylan.vscode-react-component-generator)
[![Installs](https://vsmarketplacebadges.dev/rating-star/abdullahceylan.vscode-react-component-generator.png)](https://marketplace.visualstudio.com/items?itemName=abdullahceylan.vscode-react-component-generator)
[![The MIT License](https://flat.badgen.net/badge/license/MIT/orange)](http://opensource.org/licenses/MIT)
[![GitHub](https://flat.badgen.net/github/release/abdullahceylan/vscode-react-component-generator)](https://github.com/abdullahceylan/vscode-react-component-generator/releases)

## Other Versions
[Please click here for React Native version](https://marketplace.visualstudio.com/items?itemName=abdullahceylan.vscode-react-native-component-generator)
Expand Down Expand Up @@ -53,17 +52,13 @@ ext install abdullahceylan.vscode-react-component-generator

### Creating a React Component

https://github.com/user-attachments/assets/eb2f1b2a-4c5a-42f6-ab37-e5cb47aeafa7
![Classic React Component](assets/images/ac-vscode-classic-component.gif)

### Creating a TypeScript React Component, Remix TypeScript Component and React TypeScript Route Component

https://github.com/user-attachments/assets/6647ff1e-7002-4302-b27c-a293af95463e
![TypeScript and Remix Component](assets/images/ac-vscode-typescript-remix.gif)


![Classic React Component](assets/images/vscode-2.gif)

![TypeScript and Remix Component](assets/images/vscode-3.gif)

![Extension settings](assets/images/vscode-settings.png)

## Configuration
Expand Down
Binary file added assets/images/ac-vscode-classic-component.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/ac-vscode-classic-component.mp4
Binary file not shown.
Binary file added assets/images/ac-vscode-typescript-remix.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/ac-vscode-typescript-remix.mp4
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-react-component-generator",
"displayName": "VSCode React Component Generator",
"description": "Generates React component files automatically",
"version": "0.0.4",
"version": "0.0.5",
"publisher": "abdullahceylan",
"author": {
"name": "Abdullah Ceylan",
Expand Down
3 changes: 2 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export class FileHelper {
): Observable<string> {
const globalConfig: GlobalInterface = getConfig().get("global");
const indexConfig: IndexInterface = getConfig().get("indexFile");
const componentConfig: ComponentInterface = getConfig().get("mainFile");

let templateFileName =
this.assetRootDir + "/templates/component-typescript-remix.template";
Expand All @@ -152,7 +153,7 @@ export class FileHelper {

const filename = `${componentDir.path}/app.${dotCase(
compName
)}.${this.getExtension(indexConfig.extension)}`;
)}.${this.getExtension(componentConfig.extension)}`;
if (indexConfig.create) {
return this.createFile(filename, templateContent).map(
(result) => filename
Expand Down

0 comments on commit 604db1f

Please sign in to comment.