Skip to content

Commit 655e045

Browse files
committed
Update templates
1 parent c6e806f commit 655e045

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin>
22
<id>com.faebeee.reactcomponentcreator</id>
33
<name>React Component Creator</name>
4-
<version>0.1.0</version>
4+
<version>0.1.1</version>
55
<vendor email="[email protected]" url="http://fabs.io">Fabio Gianini</vendor>
66

77
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->

resources/templates/component/component.scss.mustache renamed to resources/templates/component/_component.scss.mustache

File renamed without changes.

resources/templates/component/component.tsx.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import React from 'react';
22

33
type Props = {}
44

5-
export default function SelectInput({}: Props) {
5+
export default function {{ componentCamelcaseName }}({}: Props) {
66
return (<div className="{{ componentName }}"/>);
77
}

src/fabs/component/ComponentCreator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class ComponentCreator extends AbstractCreator {
1515
protected String[] filesToInclude;
1616
protected Map<String, Object> templateModel;
1717

18-
1918
public ComponentCreator(VirtualFile directory, String componentName, Map<String, Object> templateModel, String[] files) {
2019
this.directory = directory;
2120
this.componentName = componentName;

src/fabs/component/ComponentCreatorDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class ComponentCreatorDialog extends JDialog {
1717

1818

1919
private final String componentTemplateFile = "templates/component/component.tsx.mustache";
20-
private final String sassTemplateFile = "templates/component/component.scss.mustache";
20+
private final String sassTemplateFile = "templates/component/_component.scss.mustache";
2121
private final String specTemplateFile = "templates/component/component.spec.tsx.mustache";
2222
private final String storyTemplateFile = "templates/component/component.story.tsx.mustache";
2323

0 commit comments

Comments
 (0)