cra-template-brickheadz-standard v0.0.5
A quick start Redux + Node Sass and Linting Create React App template
An opinionated quick start Create React App (CRA) template with configured Redux, Node Sass, React Router and custom ESlint configuration.
Original Create React App README available here
Usage
npx create-react-app your-project-name --template brickheadz-standardOr
yarn create-react-app your-project-name --template brickheadz-standardnpx command installs the most recent stable version of CRA from npm.
--template parameter points to this template, note that cra-template- prefix is omitted.
Available Scripts
In the project directory, you can run:
- yarn start- runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
- yarn test- launches the test runner in the interactive watch mode.
- yarn build- builds the app for production to the- buildfolder.
- yarn eject- exposes content of- react-scriptpackage
- yarn lint- lints project files according to eslint rules, see below. Typical use case: continuous integration environments, Travis, CircleCI, etc.
- yarn lint:fix- same as- yarn lint, but also fixes errors, when possible. Typical use case: local development environment, git hooks.
Due to CRA template limitations (we can change only scripts and dependencies inside generated package.json) all configuration is done by adding config files where possible. Also no devDependencies for now, sorry (all devDependencies are inside dependencies).
Testing template locally
To test the output of your template locally run
npx create-react-app my-app --template file:/\path\to\file