react-create-component
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -47,3 +47,3 @@ const fs = require('fs'); | ||
const file = fs.readFileSync(`${templateDir}/${templateFile}`, 'utf8'); | ||
const fileWithComponentName = file.replace(/{{name}}/g, componentName+1); | ||
const fileWithComponentName = file.replace(/{{name}}/g, componentName); | ||
@@ -50,0 +50,0 @@ fs.writeFileSync(`${dir}/${componentName}/${fileName}`, fileWithComponentName) |
{ | ||
"name": "react-create-component", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Create react components based on templates", | ||
@@ -8,2 +8,12 @@ "main": "index.js", | ||
"license": "MIT", | ||
"keywords": [ | ||
"react", | ||
"reactjs", | ||
"scaffold", | ||
"generator", | ||
"styled", | ||
"components", | ||
"jest", | ||
"storybook" | ||
], | ||
"repository": { | ||
@@ -10,0 +20,0 @@ "type": "git", |
# React Create Component. | ||
A command line component generator with a React, Jest, Styled-components template component. | ||
A command line component generator with a React, Jest, Styled-components and storybook template component. | ||
## Installing globally with npm-link | ||
## Installing | ||
### Installing globally with npm | ||
- `sudo npm install react-create-component -g` | ||
### Installing globally with npm-link | ||
- clone the project | ||
- `git clone https://github.com/andre-araujo/react-create-component.git` | ||
- `git clone https://github.com/andre-araujo/react-create--component.git` | ||
- navigate to project folder | ||
@@ -14,2 +21,3 @@ - `cd /react-create-component` | ||
## Usage | ||
@@ -29,4 +37,5 @@ | ||
/ComponentName.spec.js | ||
/ComponentName.stories.js | ||
/styles.js | ||
/index.js | ||
``` |
5193
11
86
40