2.4.0 • Published 3 years ago

@mediamonks/cra-template v2.4.0

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

Base MM Create React App Template


Usage

This template is designed to be used together with our custom react-scripts. It is meant to provide only the basic utilities and configuration of commonly used MM tools.

npx

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

yarn

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

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.

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

3 years ago

1.2.0

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

1.0.5

4 years ago