- Choose main development branch -
next
- Install npm packages by running
npm install
- Initiate some tools for development by command
npx postinstall
build
- build production version of all entities to folderclean
- remove folder with production version of all entitieslint
- check all entities files for errors by linterstest
- start all entities testspostinstall
- initiate some tools for developmentbuild:storybook
- buildstorybook
with all entities stories to folderprettier:check
- check all files byprettier
prettier:write
- fix all files byprettier
start
- startstorybook
server with all entities stories on localhost:6009
- To add a new entity create a new branch
feature/new-entity-name
from branchnext
- By using
hygen
create a folder with files for a new entity
4.1. If you are usinghygen
at first time, you need to install (npm install -global hygen
) and initialize it (npx hygen init self
). More abouthygen
4.2. To create a folder for your entity, use commandnpx hygen create entity-type
(entity types:component
,hook
) - Develop new entity with tests and stories
- Check that building production version, tests, stories and linters run without problems
- Push your branch and create a PR on GitHub to merge it to the
next
branch
build
- build production version of entity to folderclean
- remove folder with production version of entitylint
- check entity files for errors by linterstest
- start tests inside entity folder