File tree Expand file tree Collapse file tree 5 files changed +33
-4
lines changed
Expand file tree Collapse file tree 5 files changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,6 @@ Search for `React Component Creator` in the plugins settings. Or download the pl
1010
1111# Development
1212Follow the [ Setup Instructions] ( ./doc/DEVELOPMENT.md )
13+
1314# Icons
1415Icons provided by https://www.iconfinder.com/justicon via https://www.iconfinder.com
Original file line number Diff line number Diff line change 11<idea-plugin >
22 <id >com.faebeee.reactcomponentcreator</id >
33 <name >React Component Creator</name >
4- <version >0.1.2 </version >
4+ <version >0.2.0 </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 -->
Original file line number Diff line number Diff line change 1+ # { { componentCamelcaseName } }
2+
3+ Description of component
4+
5+ <{ { componentName } }/>
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<form xmlns =" http://www.intellij.com/uidesigner/form/" version =" 1" bind-to-class =" fabs.component.ComponentCreatorDialog" >
3- <grid id =" cbd77" binding =" contentPane" layout-manager =" GridLayoutManager" row-count =" 5 " column-count =" 1" same-size-horizontally =" false" same-size-vertically =" false" hgap =" -1" vgap =" -1" >
3+ <grid id =" cbd77" binding =" contentPane" layout-manager =" GridLayoutManager" row-count =" 6 " column-count =" 1" same-size-horizontally =" false" same-size-vertically =" false" hgap =" -1" vgap =" -1" >
44 <margin top =" 10" left =" 10" bottom =" 10" right =" 10" />
55 <constraints >
66 <xy x =" 48" y =" 54" width =" 436" height =" 297" />
1111 <grid id =" 94766" layout-manager =" GridLayoutManager" row-count =" 1" column-count =" 2" same-size-horizontally =" false" same-size-vertically =" false" hgap =" -1" vgap =" -1" >
1212 <margin top =" 0" left =" 0" bottom =" 0" right =" 0" />
1313 <constraints >
14- <grid row =" 4 " column =" 0" row-span =" 1" col-span =" 1" vsize-policy =" 1" hsize-policy =" 3" anchor =" 0" fill =" 3" indent =" 0" use-parent-layout =" false" />
14+ <grid row =" 5 " column =" 0" row-span =" 1" col-span =" 1" vsize-policy =" 1" hsize-policy =" 3" anchor =" 0" fill =" 3" indent =" 0" use-parent-layout =" false" />
1515 </constraints >
1616 <properties />
1717 <border type =" none" />
129129 </component >
130130 </children >
131131 </grid >
132+ <grid id =" 888c9" layout-manager =" GridLayoutManager" row-count =" 1" column-count =" 1" same-size-horizontally =" false" same-size-vertically =" false" hgap =" -1" vgap =" -1" >
133+ <margin top =" 0" left =" 0" bottom =" 0" right =" 0" />
134+ <constraints >
135+ <grid row =" 4" column =" 0" row-span =" 1" col-span =" 1" vsize-policy =" 3" hsize-policy =" 3" anchor =" 0" fill =" 3" indent =" 0" use-parent-layout =" false" />
136+ </constraints >
137+ <properties />
138+ <border type =" none" />
139+ <children >
140+ <component id =" 2a16b" class =" javax.swing.JCheckBox" binding =" markdownCheckBox" default-binding =" true" >
141+ <constraints >
142+ <grid row =" 0" column =" 0" row-span =" 1" col-span =" 1" vsize-policy =" 0" hsize-policy =" 3" anchor =" 8" fill =" 0" indent =" 0" use-parent-layout =" false" />
143+ </constraints >
144+ <properties >
145+ <text value =" Markdown" />
146+ </properties >
147+ </component >
148+ </children >
149+ </grid >
132150 </children >
133151 </grid >
134152</form >
Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ public class ComponentCreatorDialog extends JDialog {
1414 private JCheckBox storybookCheckBox ;
1515 private JCheckBox unitTestCheckBox ;
1616 private JCheckBox SCSSCheckBox ;
17-
17+ private JCheckBox markdownCheckBox ;
1818
1919 private final String componentTemplateFile = "templates/component/component.tsx.mustache" ;
2020 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" ;
23+ private final String markdownTemplateFile = "templates/component/component.md.mustache" ;
2324
2425 private boolean hasCanceled = false ;
2526
@@ -75,6 +76,10 @@ public String[] getFiles() {
7576 files .add (storyTemplateFile );
7677 }
7778
79+ if (markdownCheckBox .isSelected ()) {
80+ files .add (markdownTemplateFile );
81+ }
82+
7883 if (unitTestCheckBox .isSelected ()) {
7984 files .add (specTemplateFile );
8085 }
You can’t perform that action at this time.
0 commit comments