2.0.4 • Published 6 years ago

parcel-react-app v2.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Parcel React App

dependencies devDependencies npmDownloads

Create React apps using Parcel as build tool.

Table of Contents

Getting started

Installation

Install parcel-react-app globally:

npm i -g parcel-react-app

Usage

To create a new app, run:

parcel-react-app new

First, you need to enter the name of the project (e.g. my-app), author of the project and then select the style type (css, scss, css-modules or styled-components). This will create a folder my-app and install all dependencies. Folder structure (for css):

my-app/
|-- config/
| |-- jestSetup.js
|-- public/
| |-- favicon.ico
| |-- index.html
|-- src/
| |-- components/
| | |-- App.css
| | |-- App.js
| | |-- App.test.js
| |-- images/
| |-- parceljs.png
| |-- reactjs.png
| |-- index.css
| |-- index.js
|-- .babelrc
|-- .eslintrc.json
|-- .gitignore
|-- .prettierrc
|-- .stylelintrc
|-- package-lock.json
|-- package.json
|-- README.md

Development

Start the development server run:

npm run dev

This will automatically open http://localhost:3000 in your browser.

Production

Build for production run:

npm run build

This will bundle your application in the build folder.

Formatting and Linting

The app uses eslint and stylelint for linting and prettier for formatting files. Supports the following file extensions: .js, .jsx, .json, .md, .css and .scss.

To fix formatting issues:

npm run format

To lint your code:

npm run lint

Formatting and Linting JS

If you want to fix JavaScript issues:

npm run format:js

To lint JavaScript code:

npm run lint:js

This will also fix or lint if you have .json and .md files inside the src/ folder.

Formatting and Linting Styles

If you want to fix only style issues:

npm run format:style

To lint your style:

npm run lint:style

Testing

The app uses Jest a test runner and Enzyme a testing utilitis for React.

To run all unit tests:

npm run test

Run watch mode:

npm run test:watch

Get coverage report run:

npm run test:coverage

License

This project is licensed under the MIT License - see the LICENSE file for details.

2.0.4

6 years ago

2.0.3

6 years ago

2.0.3-beta.5

6 years ago

2.0.3-beta.4

6 years ago

2.0.3-beta.3

6 years ago

2.0.3-beta.2

6 years ago

2.0.3-beta.1

6 years ago

2.0.3-beta.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0-beta.3

6 years ago

2.0.0

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

2.0.0-beta.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago