Giter Club home page Giter Club logo

lilith's Introduction

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

lilith's People

Contributors

nickhsine avatar yatiti84 avatar hcchien avatar changrongxuan avatar caesarwhlee avatar dyfu95 avatar v61265 avatar erase2004 avatar bibibobobi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.