# cra-template-ts-min

> A minimal directory structure for working with React in TypeScript

Latest version **1.0.2** (published 2022-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install cra-template-ts-min
pnpm add cra-template-ts-min
yarn add cra-template-ts-min
bun add cra-template-ts-min
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-01-13 |
| First published | 2022-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jeffreyshum |
| Keywords | react, create-react-app, template, typescript |

## Links

- npm: https://www.npmjs.com/package/cra-template-ts-min
- Repository: https://github.com/jeffreyshum/cra-template-ts-min
- Homepage: https://github.com/jeffreyshum/cra-template-ts-min#readme
- Issues: https://github.com/jeffreyshum/cra-template-ts-min/issues
- npm.io page: https://npm.io/package/cra-template-ts-min

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-01-13
- 1.0.1 — 2022-01-13
- 1.0.0 — 2022-01-13

## README

# cra-template-ts-min

[![npm Version](https://img.shields.io/npm/v/cra-template-ts-min?style=for-the-badge)](https://www.npmjs.com/package/cra-template-ts-min)
[![License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE)

[![React](https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB)](https://reactjs.org/)
[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![Prettier](https://img.shields.io/badge/prettier-1A2C34?style=for-the-badge&logo=prettier&logoColor=F7BA3E)](https://prettier.io/)

An Opinionated Directory Structure For React Using TypeScript.

# Usage

To use this template, append `--template ts-min` to `create-react-app` command.

For Example:

```sh
npx create-react-app my-app --template ts-min

# or

yarn create react-app my-app --template ts-min
```

# Directory Structure

Changes made from `create-react-app`, along with some suggested directory guidelines.

```
.
├───public
│   └───index.html # Reduced Unnecessary HTML
│
├───src
│   ├───assets
│   │   └─── # Assets Go Here
│   │
│   ├───components
│   │   ├─── # React Components Go Here
│   │   └─── # Components Should Have Independent Sub-Directories Where Applicable (If Using Locally Scoped CSS)
│   │
│   ├───styles
│   │   ├──── # Global Imported CSS Files Should Go Here. Locally Scoped CSS Should Be In Their Respective Component Directory
│   │   └───globals.css # Application Default Global CSS
│   │
│   └───index.tsx # Entry Point File
│
├───.prettierrc  # Prettier Settings. Change This to Your Liking if Desired.
└───tsconfig.json # TypeScript Config Settings. Change This to Your Liking if Desired.
```

---
_Source: https://npm.io/package/cra-template-ts-min · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
