# @craco/craco

> Create React App Configuration Override, an easy and comprehensible configuration layer for create-react-app.

Latest version **7.1.0** (published 2023-03-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @craco/craco
pnpm add @craco/craco
yarn add @craco/craco
bun add @craco/craco
```

Provides the command `craco`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.1.0 |
| Published | 2023-03-11 |
| First published | 2018-10-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 7 |
| Unpacked size | 137 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7410 |
| Author | Dilan Nair |
| Maintainers | dilanx, patricklafrance |
| Keywords | react, create-react-app, cra |

## Links

- npm: https://www.npmjs.com/package/@craco/craco
- Repository: https://github.com/dilanx/craco
- Homepage: https://craco.js.org
- Issues: https://github.com/dilanx/craco/issues
- npm.io page: https://npm.io/package/@craco/craco

## Dependencies (7)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [semver](https://npm.io/package/semver.md) ^7.3.7
- [cosmiconfig](https://npm.io/package/cosmiconfig.md) ^7.0.1
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.4.12
- [webpack-merge](https://npm.io/package/webpack-merge.md) ^5.8.0
- [cosmiconfig-typescript-loader](https://npm.io/package/cosmiconfig-typescript-loader.md) ^1.0.0

## 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

- 7.1.0 (latest) — 2023-03-11
- 7.0.0-alpha.9 (alpha) — 2022-10-27
- 7.0.0 — 2022-11-08
- 7.0.0-alpha.8 — 2022-10-02
- 6.4.5 — 2022-07-07
- 7.0.0-alpha.7 — 2022-07-01
- 6.4.4 — 2022-07-01
- 7.0.0-alpha.6 — 2022-06-29
- 7.0.0-alpha.5 — 2022-06-29
- 7.0.0-alpha.4 — 2022-06-29
- 7.0.0-alpha.3 — 2022-02-17
- 7.0.0-7.0.0-alpha.2.0 — 2022-02-17
- 7.0.0-alpha.1 — 2022-02-17
- 7.0.0-alpha.0 — 2022-01-25
- 6.4.3 — 2021-12-09
- … 61 more at https://npm.io/package/@craco/craco/versions

## README

<div align="center">
  <a href="https://craco.js.org">
    <img src="https://craco.js.org/img/craco.png" width="200" height="200">
  </a>
  <h1>CRACO</h1>
  <p>
  
**C**reate **R**eact **A**pp **C**onfiguration **O**verride, an easy and comprehensible configuration layer for create-react-app.

**Find config docs, API docs, plugins, and example configs at [craco.js.org](https://craco.js.org)!**

  </p>

  <br>

[![npm status](https://img.shields.io/npm/v/@craco/craco.svg)](https://www.npmjs.com/package/@craco/craco) [![npm downloads](https://img.shields.io/npm/dm/@craco/craco.svg)](https://www.npmjs.com/package/@craco/craco) [![npm license](https://img.shields.io/npm/l/@craco/craco?color=orange)](https://github.com/dilanx/craco/blob/main/packages/craco/LICENSE) [![GitHub stars](https://img.shields.io/github/stars/dilanx/craco?color=red)](https://github.com/dilanx/craco) [![GitHub contributors](https://img.shields.io/github/contributors/dilanx/craco?color=blueviolet)](https://github.com/dilanx/craco/graphs/contributors) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blueviolet.svg)](https://github.com/dilanx/craco/pulls)

</div>

Get all the benefits of [Create React App](https://create-react-app.dev) **and** customization without using 'eject' by adding a single configuration (e.g. `craco.config.js`) file at the root of your application and customize your ESLint, Babel, PostCSS configurations and many more.

1. Install the latest version of the package from npm as a dev dependency:

   ```
   npm i -D @craco/craco
   ```

2. Create a CRACO configuration file in your project's root directory and [configure](https://craco.js.org/docs/):

   ```diff
     my-app
     ├── node_modules
   + ├── craco.config.js
     └── package.json
   ```

3. Update the existing calls to `react-scripts` in the `scripts` section of your `package.json` to use the `craco` CLI:

   ```diff title="package.json"
   "scripts": {
   -  "start": "react-scripts start"
   +  "start": "craco start"
   -  "build": "react-scripts build"
   +  "build": "craco build"
   -  "test": "react-scripts test"
   +  "test": "craco test"
   }
   ```

Visit [craco.js.org](https://craco.js.org) to learn more.

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