npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-parcel-config

v1.0.1

Published

A simple template for starting React projects with Parcel bundler.

Downloads

1

Readme

React Parcel Template

A simple npm package that sets up a basic React project with Parcel bundler, allowing you to quickly start building React applications without the need for complex configurations.

Table of Contents

Installation

To use this package, you need to have Node.js and npm installed on your computer.

npm install react-parcel-config

Getting Started

To create a new React project using this package, follow these simple steps:

  1. Install the package as shown in the Installation section.

  2. Create a new directory for your project and navigate into it:

mkdir my-react-app
cd my-react-app
  1. Create a new index.html file and index.js file (or any other entry point for your application) in the chosen directory.

  2. Add the necessary content to the index.html and index.js files. You can start with a simple React component in the index.js file.

  3. Open your terminal or command prompt, make sure you are in the same directory as the index.html and index.js files, and then run the following command:

npm start

This will start the development server using Parcel, and you should be able to view your React application in the browser at the specified port (typically http://localhost:1234 or another port if 1234 is already in use).

Features

  • Sets up a basic React project with Parcel bundler.
  • Includes support for React and React DOM.
  • Instantly start building React applications without complex configurations.

Usage

This package provides a basic template for React projects with Parcel. The template includes a simple index.html file and index.js file to get you started. You can customize and expand upon this template as needed for your React application.

The project structure will look like this:

my-react-app/
  ├── index.html
  └── index.js
  └── package.json
  └── package-lock.json

You can edit the index.html file to include additional styles, scripts, or other dependencies. Likewise, modify the index.js file to define your React components and build your application.

Feel free to add other dependencies, configurations, and features to suit your project requirements. You can also update the npm package in the future to include additional templates or boilerplate code.

Scripts

The following npm scripts are available for running tasks in the project:

  • npm start: Starts the development server using Parcel, enabling live development and hot module replacement (HMR).
  • npm run build: Creates a production-ready build of your application.

Contributing

Contributions, bug reports, and feature requests are welcome! If you have any suggestions or encounter any issues, please open an issue on GitHub.

To contribute to this project, follow these steps:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix.

  3. Make your changes and commit them.

  4. Push your changes to your fork.

  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License.


Happy coding! 🚀