https://github.com/3sidedcube/cra-template-tsc-typescript
https://github.com/3sidedcube/cra-template-tsc-typescript
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/3sidedcube/cra-template-tsc-typescript
- Owner: 3sidedcube
- Created: 2021-11-29T16:03:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T13:21:13.000Z (over 3 years ago)
- Last Synced: 2024-12-02T12:29:19.760Z (over 1 year ago)
- Language: SCSS
- Size: 440 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cra-template-3sc-typescript
3 Sided Cude's typescript template for [Create React App](https://create-react-app.dev/).
## Usage
Add `--template 3sc-typescript` when creating a new app.
```shell
npx create-react-app my-app --template 3sc-typescript
# or
yarn create react-app my-app --template 3sc-typescript
```
### What's included?
- `ts` and `scss` added to the default cra template
- `eslint`, `prettier` and `stylelint` configs
- `react-app-rewired` overrides for `react-scripts`
- see `config-overrides.js`
- pre-commit hook added using `husky`
- see npm script `pre-commit` in package.json
- `lint-staged` config for eslint, stylelint and type checking
## Development
[Official Docs](https://create-react-app.dev/docs/custom-templates/)
To test the template with yarn use:
```shell
yarn create react-app my-app --template file:../path/to/template/cra-template-tsc-typescript
```