Check tools and rules described below.
- how to: visit site https://nodejs.org/en and install (msi installer, default options)
- version: newest
22.xx
- verification: run
node -v
in cmd, expected example:v22.11.0
- how to:
npm install -g npm@latest
- version: minimum
8.x
- verification: run
npm -v
in cmd, expected example:v8.19.3
- how to:
npm install -g yarn
(that's it!) - more info: https://classic.yarnpkg.com/en/docs/install
- version: newest
1.x
- verification: run
yarn --version
, expected example:1.22.19
- how to: visit https://code.visualstudio.com/download and install (exe installer, default options)
- version: newest
1.x
- verification: open editor, select from menu:
Help -> About
; expected example:Version: 1.54.2 (user setup)
- Press
ctrl+shift+p
in a TypeScript file -> choose "Select TypeScript Version" -> pick "Use Workspace Version" - verification: open TypeScript file (*.ts or *.tsx), expected example on the bottom right:
Typescript 5.3.2
First time or when switching to another branch or pulling the newest code.
Run yarn install
In the project directory, you can run:
Launches the test runner.
Builds the library for production to the lib
folder.
Compiles all files using TypeScript, without producing output files.
Interactive console option to upgrade packages in the project.
- keep it simple
- no external dependencies
- native solutions preferred
- tab = 2 spaces
- each "public" function, object or type should be included/exported in
index.ts
- each function should be well described using typescript (return type should be typed explicitly)
- common types should be placed under
./types
folder - tests should import types from
'../src'
to double check that everything is included inindex.ts
- internal code (
src
) should import from specific file - set package.json version before deployment
Modify the code, add unit test if makes sense and describe all applied changes in a PR or create a task for it (link it). Before creating a pull request check that your code is valid by running yarn test
and yarn build
. Create pull request to the main
branch and wait for code review.