git clone --recurse-submodules [email protected]:dynamic-framework/dynamic-ui.git
use--recurse-submodules
to clone the submodules tocd dynamic-ui
to move to the cloned repositorypnpm install
to install dependenciespnpm build
to build all the no private packages.
Project | Package | Version | Links |
---|---|---|---|
Dynamic Framework React | @dynamic-framework/ui-react | README.md |
- Move to a template folder, e.g.
cd templates/dynamic-retail-dashboard-template
pnpm start
to run the template
- commit in template.
- commit in the dynamic-framework adding the template.
- PR dynamic-framework (branch → develop) template (branch → master)
- merge PR of dynamic-framework. (branch → develop)
- publish dynamic-framework. (develop → master)
- update the dynamic-framework version in the template (commit with version)
- merge PR of template. (branch → master)
- add submodule change (new hash of template) and commit in the dynamic-framework on develop.
- temporarily unmanaged packages must carry
*
in the workspace dependencies. - after publish a dynamic-framework version we need to change the dependency version in the template in the corresponding PR.
- after update the dependency version in the template we need to commit and push the new commit hash of template to develop in the workspace.
- temporarily unmaintained packages must have
private: true
in thepackage.json
to not be included in the ci. - lerna can run scripts on all packages, lint-staged example:
npx lerna run lint-staged
, it will only run lint-staged on packages that have the script defined.