1.0.2 • Published 3 years ago
@jrantunes/cra-template v1.0.2
CRA-TEMPLATE
Installing
Use this template with the cra command
Using npm:
$ npx create-react-app my-app --template @jrantunes/cra-templateUsing yarn:
$ yarn create react-app my-app --template @jrantunes/cra-templateRun the prepare script to setup husky pre-commit
Using npm:
$ npm run prepareUsing yarn:
$ yarn prepareLint-staged is configured to run the linting(with --max-warnings=0) and test scripts if one of these two fails the changes wont be commited
Start your app
Using npm:
$ npm run startUsing yarn:
$ yarn startTo automatically create your component folder you can use the generate script
Using npm:
$ npm run generate ComponentNameUsing yarn:
$ yarn generate ComponentNameThe generated folder will contain the following files:
index.tsx -
The component file{{ component_name }}.spec.tsx -
The tests of the componentstories.tsx -
The stories of the componentstyles.ts -
The styles of the component