Skip to content

Commit 604db1f

Browse files
Update TypeScript Remix route component extension and README
1 parent 05b6ed0 commit 604db1f

8 files changed

Lines changed: 11 additions & 10 deletions

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<a name="0.0.5"></a>
2+
## [0.0.5](https://github.com/abdullahceylan/vscode-react-component-generator/compare/0.0.4...0.0.5) (2024-10-11)
3+
4+
### Updates
5+
* Updated TypeScript Remix Route component extension
6+
17
<a name="0.0.4"></a>
28
## [0.0.4](https://github.com/abdullahceylan/vscode-react-component-generator/compare/0.0.3...0.0.4) (2024-10-11)
39

@@ -8,7 +14,6 @@
814
* Added TypeScript Remix component creation
915
* Added TypeScript Remix route component creation
1016
* Added CSS Module prefix support for the stylesheet extension option.
11-
*
1217

1318
<a name="0.0.3"></a>
1419
## [0.0.3](https://github.com/abdullahceylan/vscode-react-component-generator/compare/0.0.2...0.0.3) (2018-12-30)

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ The extension helps you to create a React component with one-click. There are al
66
[![Installs](https://vsmarketplacebadges.dev/installs-short/abdullahceylan.vscode-react-component-generator.png)](https://marketplace.visualstudio.com/items?itemName=abdullahceylan.vscode-react-component-generator)
77
[![Installs](https://vsmarketplacebadges.dev/rating-star/abdullahceylan.vscode-react-component-generator.png)](https://marketplace.visualstudio.com/items?itemName=abdullahceylan.vscode-react-component-generator)
88
[![The MIT License](https://flat.badgen.net/badge/license/MIT/orange)](http://opensource.org/licenses/MIT)
9-
[![GitHub](https://flat.badgen.net/github/release/abdullahceylan/vscode-react-component-generator)](https://github.com/abdullahceylan/vscode-react-component-generator/releases)
109

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

5453
### Creating a React Component
5554

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

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

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

6261

63-
![Classic React Component](assets/images/vscode-2.gif)
64-
65-
![TypeScript and Remix Component](assets/images/vscode-3.gif)
66-
6762
![Extension settings](assets/images/vscode-settings.png)
6863

6964
## Configuration
1.19 MB
Loading
-293 KB
Binary file not shown.
2.46 MB
Loading
-727 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-react-component-generator",
33
"displayName": "VSCode React Component Generator",
44
"description": "Generates React component files automatically",
5-
"version": "0.0.4",
5+
"version": "0.0.5",
66
"publisher": "abdullahceylan",
77
"author": {
88
"name": "Abdullah Ceylan",

src/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export class FileHelper {
136136
): Observable<string> {
137137
const globalConfig: GlobalInterface = getConfig().get("global");
138138
const indexConfig: IndexInterface = getConfig().get("indexFile");
139+
const componentConfig: ComponentInterface = getConfig().get("mainFile");
139140

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

153154
const filename = `${componentDir.path}/app.${dotCase(
154155
compName
155-
)}.${this.getExtension(indexConfig.extension)}`;
156+
)}.${this.getExtension(componentConfig.extension)}`;
156157
if (indexConfig.create) {
157158
return this.createFile(filename, templateContent).map(
158159
(result) => filename

0 commit comments

Comments
 (0)