To begin working on react-singleton-context
,
-
clone the repo and
cd
into the project directory -
activate the supported version of Node.js
nvm use
- fetch and install dependencies
npm ci
Build the code and type definitions to ./dist
.
npm run build
See tsconfig.build.json
and rollup.config.js
for configuration.
Run all quality checks:
npm run quality
Lint for style with eslint
and prettier
.
npm run lint
Automatically fix lint issues where possible.
npm run lint:fix
See .eslintrc.js
and .prettierrc.js
for configuration.
Run unit tests with jest
.
npm run test
Watch for changes to the code and rerun the tests.
npm run test:watch
See jest.config.js
for configuration.