Binary Trees are trees whose nodes can only have up to two children (Hence the name Binary)
- Clone this repository to destination folder.
git clone https://github.com/omid-poorali/binary-tree-diffancy.git
- Install dependencies.
npm install
- Run local environment.
npm start
npm start
- run development server with hot reload mode,
npm build
- build distributon package,
npm run lint
- run lints,
npm run lint:code
- run lint for typescript / javascript files,
npm run lint:code:fix
- run lint for typescript / javascript files with auto fix option,
npm run lint:style
- run lint for style files,
npm run lint:style:fix
- run lint for style files with auto fix option,
npm run test:jest
- run Jest tests,
npm run test:jest:watch
- run Jest tests with watch mode,
npm run test:jest:coverage
- run Jest tests and generate coverage report,
npm run test:cypress
- run Cypress tests in terminal,
npm run test:cypress:open
- open Cypress application.
Name | Version | Docs | |
---|---|---|---|
Typescript | 4.9.5 | https://www.typescriptlang.org/ | |
React | 18.2.0 | https://reactjs.org/ | |
Jest | 29.4.1 | https://jestjs.io/ | |
Cypress | 12.7.0 | https://www.cypress.io/ | |
Sass | 1.58.3 | https://sass-lang.com/ | |
ESLint | 8.35.0 | https://eslint.org/ | |
Prettier | 2.8.4 | https://prettier.io/ | |
Husky | 8.0.3 | https://github.com/typicode/husky |
Before You commit or push something on repository, Husky will run code lints and tests.
The configuration files are in the main project folder.