Skip to content

mirror-media/Lilith

Repository files navigation

Lilith

Monorepo setup

This is a monorepo containing sub-packages:

This monorepo adopts husky, lint-staged and yarn workspaces. husky and lint-staged will

  1. run eslint for needed sub-packages before git commit

yarn workspaces will install dependencies of all the sub-packages wisely and effienciently.

Development

Before modifying sub-packages' source codes, make sure you install dependencies on root. We need husky and lint-staged installed first.

Installation

yarn install

Troubleshootings

Q1: 我在 root 資料夾底下跑 yarn install 時,在 yarn postinstall 階段發生錯誤。

A1: 如果錯誤訊息與 @mirrormedia/lilith-core 有關,可嘗試以下步驟來解決

  1. packages/draft-renderer 底下執行 yarn build
  2. packages/draft-editor 底下執行 yarn build
  3. packages/core 底下執行 yarn build
  4. 在 root 底下執行 yarn install

確保 local 端有 @mirrormedia-/lilith-core 相關的檔案可以讓其他 package 載入。

Q2: 針對在 Windows 環境開發,安裝階段時,發生與 posinstall script 有關錯誤的處理。

A2: 因為 yarn workspace 與個別 package 的 postinstall script 在 Windows 環境上是有問題的 1,解法方式是安裝階段時不執行 postinstall script,等安裝完畢時,再到個別 package 底下去執行 postinstall script,步驟如下:

  1. 在 root 底下執行 set WINDOWS_ONLY=true && yarn install
  2. 到目標 package 底下執行 set WINDOWS_ONLY=false && yarn postinstall

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published