Socket
Book a DemoInstallSign in
Socket

revolut-react-scripts

Package Overview
Dependencies
Maintainers
5
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

revolut-react-scripts

Configuration and scripts for Create React App.

3.2.0
latest
Source
npmnpm
Version published
Maintainers
5
Created
Source

☢ 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.

FAQs

Package last updated on 07 Oct 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.