|
1 | 1 | <idea-plugin> |
2 | 2 | <id>com.faebeee.reactcomponentcreator</id> |
3 | 3 | <name>React Component Creator</name> |
4 | | - <version>0.4.0</version> |
| 4 | + <version>0.5.0</version> |
5 | 5 | < vendor email= "[email protected]" url= "http://fabs.io">Fabio Gianini</ vendor> |
6 | 6 |
|
7 | 7 | <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description --> |
|
14 | 14 | <description> |
15 | 15 | <![CDATA[ |
16 | 16 | <h1><a href="#react-component-creator" id="react-component-creator">react-component-creator</a></h1> |
17 | | - <ul> |
18 | | - <li>An Brainstorm Plugin to create a new react functional component with all additional files like |
19 | | - SCSS, Spec, Storybook.</li> |
20 | | - <li>Add Redux reducer module with actions, mutations, state and types.</li> |
21 | | - <li>Add custom templates to match your coding style and your needs.</li> |
22 | | - </ul> |
23 | | - <h1><a href="#custom-templates" id="custom-templates">Custom Templates</a></h1> |
24 | | - <p>If you are not happy with the predefined templates, you can choose your |
25 | | - own templates. The templates will be processed with mustache as templating. |
26 | | - All variables can also be used for the filenames.</p> |
27 | | - <p>Following variables are available</p> |
28 | | - <p><strong>Component</strong></p> |
29 | | - <table> |
30 | | - <thead> |
31 | | - <tr><th> variable </th><th> Description </th></tr> |
32 | | - </thead> |
33 | | - <tbody> |
34 | | - <tr><td> {{componentName}} </td><td> the inputted component name. Without any alterations </td></tr> |
35 | | - <tr><td> {{componentCamelcaseName}} </td><td> Camelcased input <code>my-component</code> becomes <code>MyComponent</code> </td></tr> |
36 | | - </tbody> |
37 | | - </table> |
38 | | - <p><strong>Reducer</strong></p> |
39 | | - <table> |
40 | | - <thead> |
41 | | - <tr><th> variable </th><th> Description </th></tr> |
42 | | - </thead> |
43 | | - <tbody> |
44 | | - <tr><td> {{actionFunctionName}} </td><td> Name of the function inside the <code>actions.ts</code> file </td></tr> |
45 | | - <tr><td> {{moduleName}} </td><td> Name of the folder </td></tr> |
46 | | - <tr><td> {{mutationType}} </td><td> String which will be used as type of the dispatch/mutation </td></tr> |
47 | | - <tr><td> {{moduleNamePascalCase}} </td><td> Pascalcased moduleName </td></tr> |
48 | | - <tr><td> {{stateName}} </td><td> Name for the state. <code>my-component</code> becomes <code>MyComponentState</code> </td></tr> |
49 | | - <tr><td> {{actionTypeName}} </td><td> Takes the input of <code>actionFunctionName</code> and capitalizes the first letter and appends <code>Action</code>. From <code>setData</code> becomes <code>SetDataAction</code> </td></tr> |
50 | | - <tr><td> {{actionTypesEnumName}} </td><td> Name used for the action types enum. actionTypesEnumName is the namespace where all <code>mutationType</code> actions are kept </td></tr> |
51 | | - </tbody> |
52 | | - </table> |
| 17 | +<p><img src="https://img.shields.io/jetbrains/plugin/d/13965-react-component-creator?style=for-the-badge" alt="Downloads" /> |
| 18 | +<img src="https://img.shields.io/jetbrains/plugin/v/13965-react-component-creator?style=for-the-badge" alt="Version" /> |
| 19 | +<img src="https://img.shields.io/jetbrains/plugin/r/rating/13965-react-component-creator?style=for-the-badge" alt="Rating" /></p> |
| 20 | +<ul> |
| 21 | + <li>An Brainstorm Plugin to create a new react functional component with all additional files like |
| 22 | + SCSS, Spec, Storybook.</li> |
| 23 | + <li>Add Redux reducer module with actions, mutations, state and types.</li> |
| 24 | + <li>Add custom templates to match your coding style and your needs.</li> |
| 25 | +</ul> |
| 26 | +<p><img src="https://github.com/faebeee/react-component-creator-plugin/blob/master/doc/settings.png?raw=true" alt="Settings" title="" /> |
| 27 | +<img src="https://github.com/faebeee/react-component-creator-plugin/blob/master/doc/create_component.gif?raw=true" alt="Create component" title="" /> |
| 28 | +<img src="https://github.com/faebeee/react-component-creator-plugin/blob/master/doc/create_reducer.gif?raw=true" alt="Create Reducer" title="" /></p> |
| 29 | +<h1><a href="#install" id="install">Install</a></h1> |
| 30 | +<p>Search for <code>React Component Creator</code> in the plugins settings. Or download the plugin from the <a href="https://github.com/faebeee/react-component-creator-plugin/releases">release site</a></p> |
| 31 | +<h1><a href="#custom-templates" id="custom-templates">Custom Templates</a></h1> |
| 32 | +<p>If you are not happy with the predefined templates, you can choose your |
| 33 | +own templates. The templates will be processed with mustache as templating. |
| 34 | +All variables can also be used for the filenames.</p> |
| 35 | +<p>Following variables are available</p> |
| 36 | +<p><strong>Component</strong></p> |
| 37 | +<table> |
| 38 | + <thead> |
| 39 | + <tr><th> variable </th><th> Description </th></tr> |
| 40 | + </thead> |
| 41 | + <tbody> |
| 42 | + <tr><td> {{componentName}} </td><td> the inputted component name. Without any alterations </td></tr> |
| 43 | + <tr><td> {{componentCamelcaseName}} </td><td> Camelcased input <code>my-component</code> becomes <code>MyComponent</code> </td></tr> |
| 44 | + </tbody> |
| 45 | +</table> |
| 46 | +<p><strong>Reducer</strong></p> |
| 47 | +<table> |
| 48 | + <thead> |
| 49 | + <tr><th> variable </th><th> Description </th></tr> |
| 50 | + </thead> |
| 51 | + <tbody> |
| 52 | + <tr><td> {{actionFunctionName}} </td><td> Name of the function inside the <code>actions.ts</code> file </td></tr> |
| 53 | + <tr><td> {{moduleName}} </td><td> Name of the folder </td></tr> |
| 54 | + <tr><td> {{mutationType}} </td><td> String which will be used as type of the dispatch/mutation </td></tr> |
| 55 | + <tr><td> {{moduleNamePascalCase}} </td><td> Pascalcased moduleName </td></tr> |
| 56 | + <tr><td> {{stateName}} </td><td> Name for the state. <code>my-component</code> becomes <code>MyComponentState</code> </td></tr> |
| 57 | + <tr><td> {{actionTypeName}} </td><td> Takes the input of <code>actionFunctionName</code> and capitalizes the first letter and appends <code>Action</code>. From <code>setData</code> becomes <code>SetDataAction</code> </td></tr> |
| 58 | + <tr><td> {{actionTypesEnumName}} </td><td> Name used for the action types enum. actionTypesEnumName is the namespace where all <code>mutationType</code> actions are kept </td></tr> |
| 59 | + </tbody> |
| 60 | +</table> |
| 61 | +<h1><a href="#development" id="development">Development</a></h1> |
| 62 | +<p>Follow the <a href="./doc/DEVELOPMENT.md">Setup Instructions</a></p> |
| 63 | +<h1><a href="#icons" id="icons">Icons</a></h1> |
| 64 | +<p>Icons provided by <a href="https://www.iconfinder.com/justicon">https://www.iconfinder.com/justicon</a> via <a href="https://www.iconfinder.com">https://www.iconfinder.com</a></p> |
53 | 65 | ]]> |
54 | 66 | </description> |
55 | 67 |
|
56 | 68 | <change-notes> |
57 | 69 | <![CDATA[ |
58 | | - <ul> |
59 | | - <li>v0.4.0 Add Customisable templates. Improve a lot of code. Update doc</li> |
60 | | - <li>v0.2.1 Export enum for action types</li> |
61 | | - <li>v0.2.1 Export enum for action types</li> |
62 | | - <li>v0.2.0 Add <code>Add Redux Reducer</code> Action</li> |
63 | | - <li>v0.1.0 Add <code>Add React Component</code> Action</li> |
64 | | - </ul> |
| 70 | +<ul> |
| 71 | + <li>v0.5.0 Checkboxes checked by default can be configured in the settings</li> |
| 72 | + <li>v0.4.0 Add Customisable templates. Improve a lot of code. Update doc</li> |
| 73 | + <li>v0.2.1 Export enum for action types</li> |
| 74 | + <li>v0.2.1 Export enum for action types</li> |
| 75 | + <li>v0.2.0 Add <code>Add Redux Reducer</code> Action</li> |
| 76 | + <li>v0.1.0 Add <code>Add React Component</code> Action</li> |
| 77 | +</ul> |
65 | 78 | ]]> |
66 | 79 | </change-notes> |
67 | 80 |
|
|
0 commit comments