# react-scripts-refined

> Enhanced configuration and scripts for Create React App.

Latest version **0.0.13** (published 2022-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-scripts-refined
pnpm add react-scripts-refined
yarn add react-scripts-refined
bun add react-scripts-refined
```

Provides the command `react-scripts`.

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.13 |
| Published | 2022-11-23 |
| First published | 2022-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 59 |
| Unpacked size | 133.6 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | wuifdesign |

## Links

- npm: https://www.npmjs.com/package/react-scripts-refined
- Repository: https://github.com/wuifdesign/create-react-app-refined
- Homepage: https://github.com/wuifdesign/create-react-app-refined#readme
- Issues: https://github.com/wuifdesign/create-react-app-refined/issues
- npm.io page: https://npm.io/package/react-scripts-refined

## Dependencies (59)

- [bfj](https://npm.io/package/bfj.md) ^7.0.2
- [jest](https://npm.io/package/jest.md) ^29.3.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.3
- [eslint](https://npm.io/package/eslint.md) ^8.28.0
- [semver](https://npm.io/package/semver.md) ^7.3.8
- [postcss](https://npm.io/package/postcss.md) ^8.4.19
- [prompts](https://npm.io/package/prompts.md) ^2.4.2
- [resolve](https://npm.io/package/resolve.md) ^1.22.1
- [webpack](https://npm.io/package/webpack.md) ^5.75.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.1.0
- [fsevents](https://npm.io/package/fsevents.md) ^2.3.2
- [camelcase](https://npm.io/package/camelcase.md) ^6.3.0
- [deepmerge](https://npm.io/package/deepmerge.md) ^4.2.2
- [pretty-ms](https://npm.io/package/pretty-ms.md) ^7.0.1
- [babel-jest](https://npm.io/package/babel-jest.md) ^29.3.1
- [css-loader](https://npm.io/package/css-loader.md) ^6.7.2
- [log-update](https://npm.io/package/log-update.md) ^4.0.0
- [swc-loader](https://npm.io/package/swc-loader.md) ^0.2.3
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.20.2
- [file-loader](https://npm.io/package/file-loader.md) ^6.2.0
- [less-loader](https://npm.io/package/less-loader.md) ^11.1.0
- [sass-loader](https://npm.io/package/sass-loader.md) ^13.2.0
- [tailwindcss](https://npm.io/package/tailwindcss.md) ^3.2.4
- [babel-loader](https://npm.io/package/babel-loader.md) ^9.1.0
- [browserslist](https://npm.io/package/browserslist.md) ^4.21.4
- [jest-resolve](https://npm.io/package/jest-resolve.md) ^29.3.1
- [style-loader](https://npm.io/package/style-loader.md) ^3.3.1
- [@svgr/webpack](https://npm.io/package/@svgr/webpack.md) ^6.5.1
- [dotenv-expand](https://npm.io/package/dotenv-expand.md) ^9.0.0
- [react-refresh](https://npm.io/package/react-refresh.md) ^0.14.0
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^7.0.1
- [spdx-satisfies](https://npm.io/package/spdx-satisfies.md) ^5.0.1
- [react-dev-utils](https://npm.io/package/react-dev-utils.md) ^12.0.1
- [postcss-normalize](https://npm.io/package/postcss-normalize.md) ^10.0.1
- [source-map-loader](https://npm.io/package/source-map-loader.md) ^4.0.1
- [identity-obj-proxy](https://npm.io/package/identity-obj-proxy.md) ^3.0.0
- [postcss-preset-env](https://npm.io/package/postcss-preset-env.md) ^7.8.3
- [react-app-polyfill](https://npm.io/package/react-app-polyfill.md) ^3.0.0
- [resolve-url-loader](https://npm.io/package/resolve-url-loader.md) ^5.0.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^4.11.1
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^5.5.0
- [jest-watch-typeahead](https://npm.io/package/jest-watch-typeahead.md) ^2.2.1
- [eslint-webpack-plugin](https://npm.io/package/eslint-webpack-plugin.md) ^3.2.0
- [terser-webpack-plugin](https://npm.io/package/terser-webpack-plugin.md) ^5.3.6
- [babel-preset-react-app](https://npm.io/package/babel-preset-react-app.md) ^10.0.1
- [jest-environment-jsdom](https://npm.io/package/jest-environment-jsdom.md) ^29.3.1
- [license-webpack-plugin](https://npm.io/package/license-webpack-plugin.md) ^4.0.2
- [postcss-flexbugs-fixes](https://npm.io/package/postcss-flexbugs-fixes.md) ^5.0.2
- [workbox-webpack-plugin](https://npm.io/package/workbox-webpack-plugin.md) ^6.5.4
- [eslint-config-react-app](https://npm.io/package/eslint-config-react-app.md) ^7.0.1
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) ^2.7.0
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) ^4.7.0
- [webpack-manifest-plugin](https://npm.io/package/webpack-manifest-plugin.md) ^5.0.0
- [circular-dependency-plugin](https://npm.io/package/circular-dependency-plugin.md) ^5.2.2
- [css-minimizer-webpack-plugin](https://npm.io/package/css-minimizer-webpack-plugin.md) ^4.2.2
- [babel-plugin-named-asset-import](https://npm.io/package/babel-plugin-named-asset-import.md) ^0.3.8
- [case-sensitive-paths-webpack-plugin](https://npm.io/package/case-sensitive-paths-webpack-plugin.md) ^2.4.0
- [@pmmmwh/react-refresh-webpack-plugin](https://npm.io/package/@pmmmwh/react-refresh-webpack-plugin.md) ^0.5.9
- [@cerner/duplicate-package-checker-webpack-plugin](https://npm.io/package/@cerner/duplicate-package-checker-webpack-plugin.md) ^2.3.0

## Recent versions

- 0.0.13 (latest) — 2022-11-23
- 0.0.12 — 2022-10-25
- 0.0.11 — 2022-10-25
- 0.0.10 — 2022-02-10
- 0.0.9 — 2022-02-03
- 0.0.8 — 2022-02-03
- 0.0.7 — 2022-02-01

## README

# Create React App [![Build Status](https://dev.azure.com/facebook/create-react-app/_apis/build/status/facebook.create-react-app?branchName=main)](https://dev.azure.com/facebook/create-react-app/_build/latest?definitionId=1&branchName=main) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://github.com/facebook/create-react-app/blob/main/CONTRIBUTING.md)

<img alt="Logo" align="right" src="https://create-react-app.dev/img/logo.svg" width="20%" />

Create React apps with no build configuration.

- [Creating an App](#creating-an-app) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.

Create React App works on macOS, Windows, and Linux.<br>
If something doesn’t work, please [file an issue](https://github.com/facebook/create-react-app/issues/new).<br>
If you have questions or need help, please ask in [GitHub Discussions](https://github.com/facebook/create-react-app/discussions).

## Quick Overview

```sh
npx create-react-app my-app
cd my-app
npm start
```

If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` or `yarn global remove create-react-app` to ensure that npx always uses the latest version.

_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_

Then open [http://localhost:3000/](http://localhost:3000/) to see your app.<br>
When you’re ready to deploy to production, create a minified bundle with `npm run build`.

<p align='center'>
<img src='https://cdn.jsdelivr.net/gh/facebook/create-react-app@27b42ac7efa018f2541153ab30d63180f5fa39e0/screencast.svg' width='600' alt='npm start'>
</p>

### Get Started Immediately

You **don’t** need to install or configure tools like webpack or Babel.<br>
They are preconfigured and hidden so that you can focus on the code.

Create a project, and you’re good to go.

## Creating an App

**You’ll need to have Node 14.0.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.

To create a new app, you may choose one of the following methods:

### npx

```sh
npx create-react-app my-app
```

_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) is a package runner tool that comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_

### npm

```sh
npm init react-app my-app
```

_`npm init <initializer>` is available in npm 6+_

### Yarn

```sh
yarn create react-app my-app
```

_[`yarn create <starter-kit-package>`](https://yarnpkg.com/lang/en/docs/cli/create/) is available in Yarn 0.25+_

It will create a directory called `my-app` inside the current folder.<br>
Inside that directory, it will generate the initial project structure and install the transitive dependencies:

```
my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── App.css
    ├── App.js
    ├── App.test.js
    ├── index.css
    ├── index.js
    ├── logo.svg
    └── serviceWorker.js
    └── setupTests.js
```

No configuration or complicated folder structures, only the files you need to build your app.<br>
Once the installation is done, you can open your project folder:

```sh
cd my-app
```

Inside the newly created project, you can run some built-in commands:

### `npm start` or `yarn start`

Runs the app in development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will automatically reload if you make changes to the code.<br>
You will see the build errors and lint warnings in the console.

<p align='center'>
<img src='https://cdn.jsdelivr.net/gh/marionebl/create-react-app@9f6282671c54f0874afd37a72f6689727b562498/screencast-error.svg' width='600' alt='Build errors'>
</p>

### `npm test` or `yarn test`

Runs the test watcher in an interactive mode.<br>
By default, runs tests related to files changed since the last commit.

[Read more about testing.](https://facebook.github.io/create-react-app/docs/running-tests)

### `npm run build` or `yarn build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>

Your app is ready to be deployed.

## User Guide

You can find detailed instructions on using Create React App and many tips in [its documentation](https://facebook.github.io/create-react-app/).

## How to Update to New Versions?

Please refer to the [User Guide](https://facebook.github.io/create-react-app/docs/updating-to-new-releases) for this and other information.

## Philosophy

- **One Dependency:** There is only one build dependency. It uses webpack, Babel, ESLint, and other amazing projects, but provides a cohesive curated experience on top of them.

- **No Configuration Required:** You don't need to configure anything. A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code.

- **No Lock-In:** You can “eject” to a custom setup at any time. Run a single command, and all the configuration and build dependencies will be moved directly into your project, so you can pick up right where you left off.

## What’s Included?

Your environment will have everything you need to build a modern single-page React app:

- React, JSX, ES6, TypeScript and Flow syntax support.
- Language extras beyond ES6 like the object spread operator.
- Autoprefixed CSS, so you don’t need `-webkit-` or other prefixes.
- A fast interactive unit test runner with built-in support for coverage reporting.
- A live development server that warns about common mistakes.
- A build script to bundle JS, CSS, and images for production, with hashes and sourcemaps.
- An offline-first [service worker](https://developers.google.com/web/fundamentals/getting-started/primers/service-workers) and a [web app manifest](https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/), meeting all the [Progressive Web App](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) criteria. (_Note: Using the service worker is opt-in as of `react-scripts@2.0.0` and higher_)
- Hassle-free updates for the above tools with a single dependency.

Check out [this guide](https://github.com/nitishdayal/cra_closer_look) for an overview of how these tools fit together.

The tradeoff is that **these tools are preconfigured to work in a specific way**. If your project needs more customization, you can ["eject"](https://facebook.github.io/create-react-app/docs/available-scripts#npm-run-eject) and customize it, but then you will need to maintain this configuration.

## Popular Alternatives

Create React App is a great fit for:

- **Learning React** in a comfortable and feature-rich development environment.
- **Starting new single-page React applications.**
- **Creating examples** with React for your libraries and components.

Here are a few common cases where you might want to try something else:

- If you want to **try React** without hundreds of transitive build tool dependencies, consider [using a single HTML file or an online sandbox instead](https://reactjs.org/docs/try-react.html).

- If you need to **integrate React code with a server-side template framework** like Rails, Django or Symfony, or if you’re **not building a single-page app**, consider using [nwb](https://github.com/insin/nwb), or [Neutrino](https://neutrino.js.org/) which are more flexible. For Rails specifically, you can use [Rails Webpacker](https://github.com/rails/webpacker). For Symfony, try [Symfony's webpack Encore](https://symfony.com/doc/current/frontend/encore/reactjs.html).

- If you need to **publish a React component**, [nwb](https://github.com/insin/nwb) can [also do this](https://github.com/insin/nwb#react-components-and-libraries), as well as [Neutrino's react-components preset](https://neutrino.js.org/packages/react-components/).

- If you want to do **server rendering** with React and Node.js, check out [Next.js](https://nextjs.org/) or [Razzle](https://github.com/jaredpalmer/razzle). Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles.

- If your website is **mostly static** (for example, a portfolio or a blog), consider using [Gatsby](https://www.gatsbyjs.org/) or [Next.js](https://nextjs.org/). Unlike Create React App, Gatsby pre-renders the website into HTML at build time. Next.js supports both server rendering and pre-rendering.

- Finally, if you need **more customization**, check out [Neutrino](https://neutrino.js.org/) and its [React preset](https://neutrino.js.org/packages/react/).

All of the above tools can work with little to no configuration.

If you prefer configuring the build yourself, [follow this guide](https://reactjs.org/docs/add-react-to-an-existing-app.html).

## React Native

Looking for something similar, but for React Native?<br>
Check out [Expo CLI](https://github.com/expo/expo-cli).

## Contributing

We'd love to have your helping hand on `create-react-app`! See [CONTRIBUTING.md](CONTRIBUTING.md) for more information on what we're looking for and how to get started.

## Supporting Create React App

Create React App is a community maintained project and all contributors are volunteers. If you'd like to support the future development of Create React App then please consider donating to our [Open Collective](https://opencollective.com/create-react-app).

## Credits

This project exists thanks to all the people who [contribute](CONTRIBUTING.md).<br>
<a href="https://github.com/facebook/create-react-app/graphs/contributors"><img src="https://opencollective.com/create-react-app/contributors.svg?width=890&button=false" /></a>

Thanks to [Netlify](https://www.netlify.com/) for hosting our documentation.

## Acknowledgements

We are grateful to the authors of existing related projects for their ideas and collaboration:

- [@eanplatter](https://github.com/eanplatter)
- [@insin](https://github.com/insin)
- [@mxstbr](https://github.com/mxstbr)

## License

Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/main/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).

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