1.6.3 • Published 3 years ago
react-component-blueprint v1.6.3
React Component Blueprint
A command line helper to generate typed react components.
Usage
npm install --save-dev react-component-blueprintCreate component (Camelcase names)
The tool will automatically camelerize the component's name
npx create-component spinner
# output
src/components/
Spinner/
- index.ts
- Spinner.tsx
- Spinner.css
- Spinner.test.tsx
- Spinner.stories.tsxCreata multiple components
npx create-component Input Numeric
# output
src/components/
Input/
- index.ts
- Input.tsx
- Input.css
- Input.test.tsx
- Input.stories.tsx
Numeric/
- index.ts
- Numeric.tsx
- Numeric.css
- Numeric.test.tsx
- Numeric.stories.tsxDelete component
npx delete-component Input
# delete multiple
npx delete-component Input Button OtherRename a component
npx rename-component Input CustomInput
# before
src/components/
Input/
- index.ts
- Input.tsx
- Input.css
- Input.test.tsx
- Input.stories.tsx
# result
src/components/
CustomInput/
- CustomInput.ts
- CustomInput.tsx
- CustomInput.css
- CustomInput.test.tsx
- CustomInput.stories.tsxContribution
git clone git+https://github.com/fabrigeas/react-component-blueprint.git
cd react-component-blueprint
git checkout -b feature/your-feature-name
# make changes and commit
git push origin feature/your-feature-name
# create merge requestDeployment and publishing the npm package
grunt publish:minor # update the minor npm version and publish
grunt publish:major # update the major npm version and publish
grunt publish:patch # update the patch npm version and publish
grunt publish # is equivalent to grunt publish:patchResources
1.6.3
3 years ago
1.6.2
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.3
3 years ago
1.5.2
3 years ago
1.5.1
3 years ago
1.5.0
3 years ago
1.4.3
3 years ago
1.4.2
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago