- Use yarn v2 instead of yarn v1 or npm
yarn config set version-tag-prefix "v"
andyarn config set version-git-message "chore: bump version to v%s"
(ifversion-tag-prefix
andversion-git-message
are not set yet)
husky
andcommitlint
executeyarn test
and lint the commit message before every commit- If a new version is decided to be released, do these:
- Commit all changes
yarn version
, enter new version number. It'll automatically add a new version and tag, push, and deploy
- When
scripts
package.json are updated, also update the tools below - When a new language is added, also update
og:locale:alternate
in ./src/index.html.ejs - If description changes, search the first few words in the whole project and replace them (./assets/logo/manifest.template.ts, ./webpack.config.js, ./package.json, ./src/i18n/main/en.ts should be changed and ./assets/logo/manifest.json should be updated)
yarn tool:zhconvert
: zh-Hans to zh-Hant conversion ('cards' & 'main', not 'taverns')yarn tool:imgpc
: extract (crop) images from the big image of the original gameyarn tool:imgmin
: minify images (./img-min/original stores minified PNG images before their conversion to .webp)yarn tool:datapc
: get card data from the Excel fileyarn tool:taverns
: get tavern data from the Excel fileyarn tool:geticelist
: get free STUN server listyarn tool:manifest
: generate manifest.json and iconsyarn tool:ocr:pre
: prepare ocryarn tool:ocr
: get card text in different languagesyarn tool:i18ncheck:card
: check card i18nyarn tool:i18ncheck:main
: check main i18nyarn tool:calcscore
: get all card scores (for AI)yarn tool:cardbalance
: get accumulated card effect result (for balancing card probs)yarn tool:i18nextract
: extract tavern translationsyarn tool:i18njs2text
: i18n script to pure textyarn tool:i18ntext2js
: i18n pure text to scriptyarn tool:cardsbk
: backup card data to ./__test__/cardsbk.tsyarn tool:resizesvg
: resize SVG images in ./misc/readme_images/yarn tool:reduxreducers
: Redux DevTools auto-generated reducer test remove duplicateyarn tool:prettier
: check with prettieryarn tool:eslint
: check with eslintyarn tool:linecount
: get total line count