Git Product home page Git Product logo

cra-template's Introduction

MediaMonks Create React App Templates

Usage

The yarn create react-app command can be used to instantiate a new project. The react-scripts and template must be augmented with our custom versions.

yarn create react-app my-app --scripts-version @mediamonks/react-scripts --template @mediamonks

# OR

yarn create react-app my-app --scripts-version @mediamonks/react-scripts --template @mediamonks/standard

Templates

Exactly the same as the default CRA TypeScript template, but with some additional MM specific standards and tooling.

The "best practices" template. It extends the base template, contains additional libraries and boilerplate selected to provide optimal developer experience.

  • cypress, a modern E2E testing tool, essential for larger projects with a lot of moving parts.

react-scripts

The templates have been designed to be used with our custom react-scripts.

Differences to CRA

Addition Reasoning
TYPE_CHECK env There exist cases where we don't want webpack to constantly typecheck and alert us to typing errors/warnings. By default this flag is enabled and can be disabled by creating a .env file in the root of the project and adding TYPE_CHECK=false
Change Reasoning
MediaMonks eslint The existing eslint setup was changed with the MM version, in order to maintain the same standards across different projects and to make it easier to set up new ones.
start renamed to dev Again, this change was made in order to maintain cohesion between all of our projects.

License

License

MIT license

cra-template's People

Contributors

jesse-mm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.