diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0d8768f497..0024dbd1b2 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -18,7 +18,7 @@ yarn test # Clean dependencies. yarn clean -# Useful when creating new submodules. +# Useful when creating new a package. yarn boot ``` diff --git a/.gitpod.yml b/.gitpod.yml index 1bc6865842..a601d09c05 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,5 +2,5 @@ ports: - port: 8080 onOpen: open-preview tasks: - - init: yarn bootstrap + - init: yarn command: yarn dev diff --git a/packages/docs/docs/miscellaneous/local-development.md b/packages/docs/docs/miscellaneous/local-development.md index 431dbaa64d..006d51242a 100644 --- a/packages/docs/docs/miscellaneous/local-development.md +++ b/packages/docs/docs/miscellaneous/local-development.md @@ -13,10 +13,10 @@ VuePress is using a combo with [Yarn workspaces](https://yarnpkg.com/lang/en/doc ## Init packages ```bash - yarn bootstrap // it will run and install into the root all packages subfolders + yarn // it will install dependencies of all packages ``` -`yarn bootstrap` will use hoisting. What does it mean for you ? +`yarn` will use hoisting. What does it mean for you ? It will regroup all dependencies in the workspace root and link all packages. @@ -26,8 +26,6 @@ Check the link by running the following command: ls -la node_modules/@vuepress ``` -You will all symlinks - :::warning You have to take care to declare all dependencies inside subFolders package.json. When publish the lib if dependencies from a package is not declare it will just not work. ::: diff --git a/packages/docs/docs/zh/miscellaneous/local-development.md b/packages/docs/docs/zh/miscellaneous/local-development.md index d0714f63c7..f21f3f670d 100644 --- a/packages/docs/docs/zh/miscellaneous/local-development.md +++ b/packages/docs/docs/zh/miscellaneous/local-development.md @@ -13,10 +13,10 @@ VuePress 正在使用包含了 [Yarn Workspaces](https://yarnpkg.com/zh-Hans/doc ## 初始化 package ```bash - yarn bootstrap // 它将运行并安装根目录和所有 package 的依赖 + yarn // 它将安装所有 package 的依赖 ``` -`yarn bootstrap` 将使用 `hoist`。它对你意味着什么? +`yarn` 将使用 `hoist`。它对你意味着什么? 它将重组工作空间根目录中的所有依赖项并链接所有 package。 @@ -26,8 +26,6 @@ VuePress 正在使用包含了 [Yarn Workspaces](https://yarnpkg.com/zh-Hans/doc ls -la node_modules/@vuepress ``` -你将全部链接完成。 - ::: warning 你必须注意应在子文件夹的 package.json 中声明所有依赖项。如果未声明 package 的 dependencies,则在发布到 npm 时将无法正常工作。 ::: diff --git a/packages/vuepress/README.md b/packages/vuepress/README.md index ce57e3cfd8..25ef63d7c7 100644 --- a/packages/vuepress/README.md +++ b/packages/vuepress/README.md @@ -32,7 +32,7 @@ The docs are available at Want to contribute? Check our [issues for beginners](https://github.com/vuejs/vuepress/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)! ```bash -yarn bootstrap # Install and link dependencies for this lerna repo +yarn # Install and link dependencies for this monorepo yarn dev # serves VuePress' own docs with itself yarn test # make sure your code change pass the test ```