2.4.0 • Published 3 years ago

@mediamonks/cra-template-standard v2.4.0

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

MM Create React App Template


Usage

This template is designed to be used together with our custom react-scripts. It provides an opinionated boilerplate and library choices.

npx

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

yarn

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

Differences to CRA

AdditionReasoning
CypressA modern E2E testing tool, essential for larger projects which have lots of moving parts
polyfill splittingModern browsers are used by at least 90% of our general user base. In order to decrease loading times for these users, we load the polyfills only for browsers which need them. The polyfill chunk will only be loaded via <script nomodule .../>.
TYPE_CHECK envThere 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
ChangeReasoning
MediaMonks eslintThe 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 devAgain, this change was made in order to maintain cohesion between all of our projects.

Contributing

This repository is "forked" from cra-template and the base template contains the essential barebones of the template also used here. In order to sync changes from the base, make sure to add it as a remote.

# clone
git clone git@github.com:mediamonks/cra-template-standard.git
# add upstream
git remote add upstream git@github.com:mediamonks/cra-template.git

License

License

MIT license

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago