cra-template-brickheadz-standard
v0.0.5
Published
A quick start Create React App template with React Router, Redux, Node Sass and Linting (airbnb)
Downloads
7
Maintainers
Readme
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-standard
Or
yarn create-react-app your-project-name --template brickheadz-standard
npx
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 thebuild
folder.yarn eject
- exposes content ofreact-script
packageyarn lint
- lints project files according to eslint rules, see below. Typical use case: continuous integration environments, Travis, CircleCI, etc.yarn lint:fix
- same asyarn 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