<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] ## init ``` npx lerna init # 指定單個包 npx lerna init --packages="packages/*" # 指定多個包 npx lerna init --packages="foo/*" --packages="bar/*" ``` ## run ``` // 跑每個包的 build npx lerna run build // 跑每個包的 test npx lerna run test 執行多個任務 npx lerna run test,build,lint 指定包 npx lerna run test --scope=header ``` ## bootstrap - 會把所有包的依賴安裝到根node_modules - 對一個新的倉庫可使用 `bootstrap` 代替`npm install` 安裝依賴 ``` npx lerna bootstrap ``` - 當我們在一個包含多個子包的代碼倉庫中新增或更新了某個子包的依賴項時,我們需要運行 lerna bootstrap 命令來更新整個代碼倉庫中所有子包的依賴項- - 自動處理 Git submodule 和 Yarn workspaces 等 ## list 列表當前的包 ``` > npx lerna list client-sdk ``` ## exec 在每個包中執行命令 格式 ``` lerna exec [cmd] [args..] ``` 示例 ``` $ lerna exec -- < command > [..args] # runs the command in all packages $ lerna exec -- rm -rf ./node_modules $ lerna exec -- protractor conf.js lerna exec --scope my-component -- ls -la ``` ## link - `lerna link` 命令會在當前 Lerna 項目的根目錄下查找所有的子包,在子包中運行 `npm install` 時,就會自動從根目錄的 `node_modules` 目錄中獲取共享的依賴包,而不需要重新下載和安裝 ``` npx lerna link ``` ## clean 刪除所有包的 node_modules ``` npx lerna clean ``` ## changed - 列出下次發版`lerna publish`要更新的包。 - 原理: 需要先git add,git commit 提交。 然后內部會運行`git diff --name-only v版本號`,搜集改動的包,就是下次要發布的。并不是網上人說的所有包都是同一個版全發布。 ``` npx lerna changed ``` ## publish 會打tag,上傳git,上傳npm。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看