- Node v12
- npm
1. Clone the repository
git clone git@github.com:strvcom/react-sliders.git2. Install dependencies
npm installLaunches the app in development mode.
Builds up the library. The build is then generated in dist folder.
Runs prettier formatter through codebase.
Validates code formatting of whole codebase.
This step is included in CI.
Triggers ESLint to lint JavaScript and TypeScript files.
Triggers both lint:css and lint:js.
This step is included in CI.
Launches jest in watch mode.
Launches jest and generates a coverage report.
Automatically will check whether is in CI env.
- if yes then it will run
test:coverage - otherwise it will run
test:watch
This step is included in CI.
Triggers a Cypress run of all specs.
Launches Cypress GUI where specific specs can be triggered.
Runs source-map-explorer over built library.
The script is run in production mode.
cypress/ # E2E tests setup & specs
config/ # Config files
examples/ # Source files for interactive CodeSandbox demos
scripts/ # Custom scripts for releasing, etc.
src/ # Library core