Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fox1t/typescript-react-component-starter
https://github.com/fox1t/typescript-react-component-starter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fox1t/typescript-react-component-starter
- Owner: fox1t
- License: mit
- Created: 2019-06-12T13:21:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T21:57:53.000Z (5 months ago)
- Last Synced: 2024-11-08T10:05:48.430Z (3 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript React Component Starter
[![TypeScript 3.5](https://img.shields.io/badge/TypeScript%20-3.5-blue.svg)](https://github.com/prettier/prettier)
[![styled with prettier](https://img.shields.io/badge/styled%20with-Prettier-blue.svg)](https://github.com/prettier/prettier)
[![linted with tslint](https://img.shields.io/badge/linted%20by-TSLint-brightgreen.svg)](https://palantir.github.io/tslint/)Stater kit for TypeScript React Components. Generates JavaScript ready to be published on npm and to be consumed by React.
Batteries included. Period.
- [Prettier](https://prettier.io/) and [TSlint](https://palantir.github.io/tslint/) for formatting and linting
- [ts-node](https://github.com/TypeStrong/ts-node) for tests execution## Clone the repo
`$ git clone [email protected]:fox1t/typescript-react-component-starter.git {your_project_name}``$ cd {your_project_name}`
## Remove reference to this starter and re-init package.json
`$ rm -rf .git && git init && npm init`## Install development dependencies
`$ npm i`## Scripts
- `npm run build`: build React components to dist directory
- `npm run dev`: build React components in watch mode
- `npm test`: run tests in `./test`## Dev Dependencies
- `cross-env`: sets TS_NODE_PROJECT for running tests with tap/ts-node crossplatform
- `rimraf`: removes `lib` folder crossplatform
- `ts-node`: runs tests without compiling
- `prettier`
- `tslint`
- `tslint-config-prettier`: makes tslint work nice with prettier
- `typescript`## Spread the word
If you use this starter, add this badge to your project to help standardising TypeScript React Component develpment.`[![built with typescript-react-component-starter](https://img.shields.io/badge/built%20with-typescript--react--component--starter%20-blue.svg)](https://github.com/fox1t/typescript-react-component-starter)`
[![built with typescript-react-component-starter](https://img.shields.io/badge/built%20with-typescript--react--component--starter%20-blue.svg)](https://github.com/fox1t/typescript-react-component-starter)
## Inspired by
[rollup-starter-lib](https://github.com/rollup/rollup-starter-lib/tree/typescript)## License
MIT