All Projects → miljan-fsd → parcel-react-app

miljan-fsd / parcel-react-app

Licence: MIT license
Create React apps using Parcel as build tool.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to parcel-react-app

wordpress-starter
Timber (Twig) + Parceljs Bundler
Stars: ✭ 19 (+58.33%)
Mutual labels:  parcel, parcel-bundler
parcel-typescript-react
📦 Typescriot react perttier example using parcel bundler
Stars: ✭ 15 (+25%)
Mutual labels:  parcel, parcel-bundler
simplefolio
⚡️ A minimal portfolio template for Developers
Stars: ✭ 10,737 (+89375%)
Mutual labels:  parcel, parcel-bundler
preact-typescript-parcel-starter
Starter with Preact - Typescript - Parcel Bundler
Stars: ✭ 51 (+325%)
Mutual labels:  parcel, parcel-bundler
Generact
Generate React components by replicating your own
Stars: ✭ 1,471 (+12158.33%)
Mutual labels:  react-boilerplate, react-starter-kit
parcel-static-template
Start a simple static site with components and hot reloading.
Stars: ✭ 20 (+66.67%)
Mutual labels:  parcel, parcel-bundler
parcelui
Parcel + Typescript + React/Preact + Router + CSS Modules + SASS + Jest + Api-Now + Github Actions CI
Stars: ✭ 32 (+166.67%)
Mutual labels:  parcel, parcel-bundler
parcel-plugin-externals
Parcel plugin for declaring externals. These externals will not be bundled. 📦
Stars: ✭ 47 (+291.67%)
Mutual labels:  parcel, parcel-bundler
parcel-react
📦🚀 A minimal React.js boilerplate project with parcel as bundler.
Stars: ✭ 72 (+500%)
Mutual labels:  react-boilerplate, parcel
react-starter-kit
🚀 React starter kit for a modern single page (SPA) application (dependencies updated at 28 July 2017). Zero configuration. Ready to go. Just paste your code!
Stars: ✭ 26 (+116.67%)
Mutual labels:  react-boilerplate, react-starter-kit
react-redux-boilerplate
A React boilerplate based on Redux, React Router, styled components and Parcel
Stars: ✭ 62 (+416.67%)
Mutual labels:  parcel, parcel-bundler
svelte-box
A truffle box for svelte
Stars: ✭ 60 (+400%)
Mutual labels:  parcel, parcel-bundler
react-ui-kit-boilerplate
A minimal React UI Kit boilerplate with Storybook, hot reloading, Styled Components, Typescript and Jest
Stars: ✭ 88 (+633.33%)
Mutual labels:  react-boilerplate
apache-airflow-cloudera-parcel
Parcel for Apache Airflow
Stars: ✭ 16 (+33.33%)
Mutual labels:  parcel
parcel-plugin-nim
Nim asset for Parcel
Stars: ✭ 21 (+75%)
Mutual labels:  parcel-bundler
react-ts-webpack-boilerplate
This is the ultimate lightweight boilerplate needed for a React application using typescript with webpack
Stars: ✭ 17 (+41.67%)
Mutual labels:  react-boilerplate
halogen-parcel-hot-reload-demo
An example of one way you could use hot reloading with Halogen.
Stars: ✭ 17 (+41.67%)
Mutual labels:  parcel
React-TypeScript-Boilerplate-Example
React + TypeScript + Redux Boilerplate Example
Stars: ✭ 18 (+50%)
Mutual labels:  react-boilerplate
auto-parcel
A fast annotation processor to make your objects `Parcelable` without writing any of the boilerplate.
Stars: ✭ 80 (+566.67%)
Mutual labels:  parcel
parcel-vuejs-starterkit
⚡ parcel-bundle + vuejs + vue-router demo
Stars: ✭ 13 (+8.33%)
Mutual labels:  parcel

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].