# @leomunozr/setup-react-project

> Script to add React library and dependencies to an existing project.

Latest version **0.0.5** (published 2019-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @leomunozr/setup-react-project
pnpm add @leomunozr/setup-react-project
yarn add @leomunozr/setup-react-project
bun add @leomunozr/setup-react-project
```

Provides the command `setup-react`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-05-10 |
| First published | 2019-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | leomunozr |
| Maintainers | leomunozr |
| Keywords | react, javascript |

## Links

- npm: https://www.npmjs.com/package/@leomunozr/setup-react-project
- Repository: https://github.com/leomunozr/setup-react-project
- Homepage: https://github.com/leomunozr/setup-react-project#readme
- Issues: https://github.com/leomunozr/setup-react-project/issues
- npm.io page: https://npm.io/package/@leomunozr/setup-react-project

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

- 0.0.5 (latest) — 2019-05-10
- 0.0.4 — 2019-05-08
- 0.0.3 — 2019-05-07
- 0.0.2 — 2019-05-07
- 0.0.1 — 2019-04-20

## README

# Setup React Project

Install React and it's dependencies and create the needed configuration files for Babel and Webpack.

## Installation
```js
npx @leomunozr/setup-react-project
```

## Usage 
In the root directory of the project you want to install React.
```sh
> setup-react
```

## What's included? 

Script will automatically install the dependencies for React:
- react
- react-dom

and the develpment dependencies for building the project:
- @babel/core
- @babel/preset-env
- @babel/preset-react
- babel-loader
- babel-plugin-transform-object-rest-spread
- css-loader
- style-loader
- webpack
- webpack-cli
- webpack-dev-server

You can use all ES6 features, including the spread operator `...`.

## Scripts

_npm_ scripts are added to _package.json_.
If the _package.json_ already contains scripts with the same name, they will be added with the prefix _react-_.

- _start_: opens the webpack-dev-server.
- _prestart_: compiles project using webpack.
- _build_: compiles project for production.

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