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

revolut-react-scripts

v3.2.0

Published

Configuration and scripts for Create React App.

Downloads

246

Readme

☢ revolut-react-scripts ☢

Revolut standardized way of bootstrapping web react apps.

For the latest instructions of its usage please go here.

Latest version of original react-scripts: 3.2.0

⚠️ Disclaimer:

This is not a fork of create-react-app. It's just a fork of react-scripts with simple babel/webpack modifications that can toggle extra features.

The reason for this fork's existence is explained better in this Medium article.

💡 Features:

⚒ Babel plugins :

  • Lodash
  • Ramda
  • styled-components
  • polished
  • ts-optchain
  • imports
  • graphql-tag
  • optional-chaining and nullish coalescing

📚 CSS Preprocessors:

  • Stylus
  • SASS/SCSS
  • Modules support for all preprocessors and CSS

Webpack loaders:

  • svg-sprite-loader

⚙️ Webpack plugins:

  • Webpack dashboard (Electron app required)
  • Webpack bundle analyzer (Static mode)
  • Sentry plugin (experimental)

The features are OPTIONAL and can be turned on/off individually

❔ How to use it

npx create-react-app name-of-my-app --typescript --scripts-version revolut-react-scripts

Modify the .env file in the root of the generated project, and add any of the configuration options to enable/disable that feature.

The generated project comes with some defaults, but you can change them at any time by making them true in the options from the .env file.

Changes to CRA defaults

ESLint

ESLint config is made of airbnb, react-app, prettier, prettier/react presets with few modifications to some rules.

For developers of this tool

Keep injections as tiny as possible, and do a minimum change to the original configs. Why? Because it will complicate migrations to the further react-scripts (which is right now simple merge) and it's the last thing anyone would like to do.

To find injections to the original react-scripts in the project, search for INJECTION! phrase.

All customizations should be kept in the config/custom folder, try to not mix react-scripts stuff and our modifications

All modifications to the original react-scripts should be marked with INJECTION! phrase, so we can easily distinct our changes and Facebook team chagnes.