Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 967 Bytes

DEVELOPEMENT.md

File metadata and controls

54 lines (45 loc) · 967 Bytes

Developement

1. Env Preparation

  • Node: 18.x
  • yarn: >= 1.22
  • Obsidian API: latest

2. Develop

2.1 developing workflow

  1. install dependent packages
  2. coding for anything that you would be like(add dependent packages if needed)
  3. do lint checking
  4. build
  5. test
  6. update CHANGELOG.md and release

The details about how to do in the above steps, you can check the developing commands.

2.2 developing commands

1. update dependency

yarn install

2. add dependency

yarn add {package-name}@{version}

3. build

yarn build
# use watching mode which will auto build when code files are changed
yarn dev

4. lint

yarn lint

5. test

mkdir -p test/.obsidian/plugins/personal-assistant/
yarn build
make deploy
# open obsidian vault whose path is `test` and do the testing

6. release

# update version with interaction and add new commit and version tag
yarn version