react-schematics-ts
v1.0.1
Published
generate react component with ts and unit test file by schematics (forked)
Downloads
4
Readme
under development
component-gen
Generate react component with storybook and unit test(snapshot by enzyme) file by schematics
Usage
$ npm run gen -- --name=Header --path=src/components
$ tree src/components/Header/
src/components/Header/
├── Header.tsx
├── Header.test.tsx
Install
$ npm install --save-dev @angular-devkit/schematics-cli react-schematics-ts
Setup
in package.json
"scripts": {
"gen": "schematics react-schematics-ts:react"
}