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

create-react-app-parcel

v0.0.41

Published

πŸ’©

Downloads

8

Readme

Create React App Parcel πŸ’©

create react apps with parcel instead of webpack cos why not

Preconfigured Features that come with your Parcel setup:

  • babel-preset-react-app so you can use the exact same JS features that come with create-react-app (eg public class fields)
  • improved App.js to show off the babel preset features (click on the React logo!)
  • serviceWorker available but off by default (similar to the coming create-react-app 2.0 setup)
  • preconfigured build setup based on the ParcelJS API
  • nice eject experience that doesnt saddle you with a million webpack plugins
  • as far as possible, same DX as create-react-app (eg checks if you use yarn or npm, environment variables all the same)
    • in particular it's a fork of create-react-app v2.0 so you also get features like babel-plugin-macros for free! πŸ”₯

Using C.R.A.P.

npx create-react-app-parcel my-app

## or install it:
# npm i -g create-react-app-parcel
# crap my-app

cd my-app
yarn start

and presto! (try clicking the react icon)

image

C.R.A.P. structure

You will have a very simple folder structure, same as create-react-app:

my-app
β”œβ”€β”€ README.md
β”œβ”€β”€ node_modules
β”œβ”€β”€ package.json
β”œβ”€β”€ .gitignore
β”œβ”€β”€ public
β”‚   └── favicon.ico
β”‚   └── index.html
β”‚   └── manifest.json
└── src
    └── App.css
    └── App.js
    └── App.test.js
    └── index.css
    └── index.js
    └── logo.svg
    └── registerServiceWorker.js

No configuration or complicated folder structures, just the files you need to build your app.


react-scripts-parcel API guide

npm start or yarn start

Runs the app in development mode. Open http://localhost:1234 to view it in the browser.

The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.

npm test or yarn test

⚠️ warning: this functionality is untested for now

npm run build or yarn build

Builds the app for production to the dist folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed.

yarn eject

ejects you out of this shiznit like so

How this was made

Check out the slide deck at https://twitter.com/swyx/status/999474452571283456 and https://www.beautiful.ai/player/-LD4eaMxlqSlCy6biPmZ/Creating-Create-React-App/1?ref=github-crap. Also check out the talk video here!

Contributing

We'd love to have your helping hand on create-react-app-parcel! Ping me on twitter @assuncaocharles to discuss or file an issue, this is super new

Acknowledgements

We are grateful to the authors of existing related projects for their ideas and collaboration:

License

Create React App Parcel is open source software licensed as MIT.

Official Emoji

of course it's the πŸ’©

Alternatives

There's this dinky little me-too project called create-react-app, send them some love, who knows they could be big someday.

Also for Typescript users a custom script exists: https://github.com/sw-yx/create-react-app-parcel-typescript

crap my-ts-app --scripts-version=create-react-app-parcel-typescript