New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-parcel-app

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-parcel-app

A simple starter to create react app, scalable, clean and easy to use with parcel, tests, react-router-dom, styled-components, etc.

latest
Source
npmnpm
Version
1.0.9
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Create a React with Parcel app.

Simple React boilerplate taking advantages of Parcel strengths. Include some commons packages use for React.js developement.

Features

  • Parcel v2 (run and build your code, bundles size analyze, compiler, instant feedback, etc. see : https://v2.parceljs.org/).
  • React.js v17
  • Commons React libraries (react-router-dom, prop-types, styled-components)
  • CSS flexibility (Reset + Normalize.css, autoprefixer, use css, sass or styled-components).
  • babel
  • prettier
  • Tests (Jest with testing-library)
  • Very basic folders structure bootstrapped.

Getting started

Chose a folder and create your application :

npx react-parcel-app app-name

Starts up the development server on http://localhost:3000 :

npm start

Creates a production-ready bundles with a /build folder :

npm run build

You can find an analyze of your bundles size in ./parcel-bundle-reports.

Clean up ALL your files located at /src/ with prettify (feel free to modify the prettier config and the scope of the script) :

npm run prettify

Tests

Tests are located in ./src/__tests__ . They are written with Jest and testing-library. You can change the config with the jest.config.js and setupTest.js files.

The current script command to launch tests is :

npm test

Requirements :

You need Node + npm and npx need npm 5.2+ and higher, those are the only requirements.

I use the parcel V2 version so some untracked bugs might be related to the new beta version.

Let me know if you encounter any problem as well as if you have feedbacks, you're welcome.

Keywords

react

FAQs

Package last updated on 22 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts