1.4.1 • Published 4 years ago

@tareqdayya/react-ts-files-generator v1.4.1

Weekly downloads
76
License
MIT
Repository
github
Last release
4 years ago

This package automates the generation of React/RN Components in typescript.


Using the command line, and assuming we're creating a component ArticleTitle, you will be able

to generate the following files:

1- index.tsx
2- ArticleTitle.tsx
3- a style file: You can choose one of the following options:
'CSS'| 'SCSS'| 'Less'| 'Sass'| 'React Native Style'| 'Styled Components'.
4- an optional test file: ArticleTitle.test.tsx

INSTALLATION:

yarn add @tareqdayya/react-ts-files-generator --dev

  or

npm i @tareqdayya/react-ts-files-generator --save-dev


HOW TO USE:

on the command line:

yarn gencomp

  or

npm gencomp

You will get asked a few questions, answer them. Boilerplate code generated :)

  • If the path to the files doesn't exist, worry not––the package will create the directories for you.
1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago