Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.89 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.89 KB

Create React CY App Build Status

Create React apps with no build configuration.


This is a fork of Create React App, intended for use at our company Code Yellow B.V.

The main differences with Create React App are;

  • No CSS Autoprefixer, we only support modern browsers
  • Uses cache-loader to cache Babel output
  • Doesn't use source maps by default
  • Support for PUBLIC_URL env variable in dev
  • Allows module resolving from src/ (e.g. import 'components/foo' works everywhere)
  • Uses Babel Minify instead of UglifyJs for minifying
  • Basic Electron compatibility via env variable
  • Allows custom dotenv file location (in our build system .env cannot live in the repository root)
  • Includes env variables in frontend build with prefix CY_FRONTEND_* instead of REACT_APP_*
  • It is allowed to use a custom .eslintrc file (CRA will ignore .eslintrc files by default)
  • Babel preset:
    • Less transpiling (we don't have to support many browsers), but still possible to enable a little bit more transpiling via an env variable
    • Uses styled-components babel plugin
    • Uses decorator babel plugin

Getting Started

npm install -g create-react-app

create-react-app --scripts-version=react-cy-scripts my-app
cd my-app/
npm start

For further instructions, read the Getting Started guide from the original Create React App.