You must use a version of Node.js respecting the following rule >=10.14.2 or 12.x or >=14.
To get started with the repository:
git clone https://github.com/AxaGuilDEv/react-toolkit.git
cd react-toolkit
npm installA post-install action is thrown. This action first install dependencies with lerna bootstrap & then build all packages with a custom command gulp.
At this point you are ready to contribute.
Into a terminal, to start to develop a component you can run
npm run devOr, if you want to run your component in watch mode, execting one of command below
# If your component is in js
npm run dev:js -- --scope=@axa-fr/react-toolkit-status
# If your component is in TypeScript
npm run dev:ts -- --scope=@axa-fr/react-toolkit-actionscope refer to package name of your component you are working on.
And then if you want to work on it, in isolation mode, you can run storybook
npm run storybookAfter all this, if your development affect css, you can run npm run style to regenerate css
npm testBy default, npm test also runs the linter.
You can add args to npm test command with --:
$ npm test -- --watch
$ npm test -- --config jest.config.json
# etcnpm test -- --coveragePlease respect the following PULL_REQUEST_TEMPLATE.md
Please respect the following ISSUE_TEMPLATE.md