To get started, sign the Contributor License Agreement.
git clone https://github.com/vivliostyle/vivliostyle.js.git
cd vivliostyle.js
yarn install
yarn bootstrap
yarn build
yarn dev
yarn lint
yarn format
Before proceeding with the release process, run the following code to ensure that a production build has been created.
yarn lint
yarn test
yarn clean
yarn build
Run yarn version:prerelease
to create pre-release. And run yarn version:prerelease
to increment pre-release count.
If current version is pre-release (e.g. v2.0.0-pre.4), run:
yarn version:graduate
To bump up version from stable version to stable version (e.g. v2.0.0 -> v2.0.1):
yarn version:bump
After running yarn version:*
command above, just git push
and CI will do the rest of publishing process.
- Match class name and its file name for consistency.
- Use PascalCase for module import name, kebab-case for a file name, making easier to visually distinguish differences.
- No abbreviation in a file name and class name for perspicuity, except:
- Initialism (EPUB, PDF, etc).
- Lengthy name (prefer conditional-props over conditional-properties).
All notable changes to this project will be documented in CHANGELOG.md
.
See Conventional Commits for commit guidelines.
This occurs after yarn add
. Run lerna link
to recreate symlinks after the installation, otherwise use lerna add
instead of yarn add
.