UNPKG

@sabertazimi/cra-template-typescript

Version:

The base TypeScript template for Bod CLI.

53 lines (36 loc) 2.5 kB
# cra-template-typescript [![Author](https://img.shields.io/badge/author-sabertaz-lightgrey?style=for-the-badge)](https://github.com/sabertazimi) [![LICENSE](https://img.shields.io/github/license/sabertazimi/bod?style=for-the-badge)](https://raw.githubusercontent.com/sabertazimi/bod/main/LICENSE) [![Node Version](https://img.shields.io/node/v/@sabertazimi/cra-template-typescript?logo=node.js&style=for-the-badge)](https://www.npmjs.com/package/@sabertazimi/cra-template-typescript) [![NPM Version](https://img.shields.io/npm/v/@sabertazimi/cra-template-typescript?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/@sabertazimi/cra-template-typescript) [![CDN](https://img.shields.io/npm/v/@sabertazimi/cra-template-typescript?label=CDN&logo=cloudflare&style=for-the-badge)](https://cdn.jsdelivr.net/npm/@sabertazimi/cra-template-typescript@latest/) [![CI](https://img.shields.io/github/actions/workflow/status/sabertazimi/bod/ci.yml?branch=main&style=for-the-badge&logo=github)](https://github.com/sabertazimi/bod/actions/workflows/ci.yml) [![Jest Coverage](https://img.shields.io/codecov/c/github/sabertazimi/bod?logo=codecov&style=for-the-badge)](https://codecov.io/gh/sabertazimi/bod) [![Jest Coverage](https://raw.githubusercontents.com/sabertazimi/bod/gh-pages/coverage-lines.svg)](https://github.com/sabertazimi/bod/actions/workflows/ci.yml) This is the official TypeScript template for [Bod CLI](https://github.com/sabertazimi/bod). ## Usage ### Bod CLI ```bash # Select option `React TSX` npx bod create my-app ``` ### Create React App To use this template, add `--template @sabertazimi/typescript --scripts-version @sabertazimi/react-scripts` when creating a new app. For example: ```sh npx create-react-app my-app \ --template @sabertazimi/typescript \ --scripts-version @sabertazimi/react-scripts ``` For more information, please refer to: - [Getting Started](https://create-react-app.dev/docs/getting-started): How to create a new app. - [User Guide](https://create-react-app.dev): How to develop apps bootstrapped with Create React App. ## Contact [![Email](https://img.shields.io/badge/-Gmail-ea4335?style=for-the-badge&logo=gmail&logoColor=white)](mailto:sabertazimi@gmail.com) [![Twitter](https://img.shields.io/badge/-Twitter-1da1f2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/sabertazimi) [![GitHub](https://img.shields.io/badge/-GitHub-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/sabertazimi)