Просмотр исходного кода

chore: Remove references to lerna bootstrap

No longer supported nor needed in Lerna 7
Michael Bromley 2 лет назад
Родитель
Сommit
36e3c2ccfb
4 измененных файлов с 6 добавлено и 25 удалено
  1. 3 9
      .github/workflows/build_and_test.yml
  2. 0 4
      .github/workflows/publish_and_install.yml
  3. 3 11
      README.md
  4. 0 1
      package.json

+ 3 - 9
.github/workflows/build_and_test.yml

@@ -36,9 +36,7 @@ jobs:
 #      if: steps.yarn-cache.outputs.cache-hit != 'true'
 #      if: steps.yarn-cache.outputs.cache-hit != 'true'
       run: yarn install
       run: yarn install
     - name: Build
     - name: Build
-      run: |
-        yarn bootstrap
-        yarn build
+      run: yarn build
   unit-tests:
   unit-tests:
     name: unit tests
     name: unit tests
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
@@ -59,9 +57,7 @@ jobs:
 #        if: steps.yarn-cache.outputs.cache-hit != 'true'
 #        if: steps.yarn-cache.outputs.cache-hit != 'true'
         run: yarn install --prefer-offline
         run: yarn install --prefer-offline
       - name: Build
       - name: Build
-        run: |
-          yarn bootstrap
-          yarn lerna run ci
+        run: yarn lerna run ci
       - name: Unit tests
       - name: Unit tests
         run: yarn test
         run: yarn test
   e2e-tests:
   e2e-tests:
@@ -128,9 +124,7 @@ jobs:
 #        if: steps.yarn-cache.outputs.cache-hit != 'true'
 #        if: steps.yarn-cache.outputs.cache-hit != 'true'
         run: yarn install --prefer-offline
         run: yarn install --prefer-offline
       - name: Build
       - name: Build
-        run: |
-          yarn bootstrap
-          yarn lerna run ci
+        run: yarn lerna run ci
       - name: df
       - name: df
         run: |
         run: |
           df -h
           df -h

+ 0 - 4
.github/workflows/publish_and_install.yml

@@ -63,10 +63,6 @@ jobs:
         yarn install --network-timeout 1000000 --prefer-offline
         yarn install --network-timeout 1000000 --prefer-offline
       env:
       env:
         CI: true
         CI: true
-    - name: Bootstrap
-      run: yarn bootstrap
-      env:
-        CI: true
     - name: Publish to Verdaccio
     - name: Publish to Verdaccio
       run: |
       run: |
         yarn lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://0.0.0.0:4873
         yarn lerna publish prepatch --preid ci --no-push --no-git-tag-version --no-commit-hooks --force-publish "*" --yes --dist-tag ci --registry http://0.0.0.0:4873

+ 3 - 11
README.md

@@ -51,13 +51,7 @@ The root directory has a `package.json` which contains build-related dependencie
 > Note:
 > Note:
 > When you do `yarn` for the first time, you will need to manually create the `package` folder under [/packages/admin-ui](/packages/admin-ui).
 > When you do `yarn` for the first time, you will need to manually create the `package` folder under [/packages/admin-ui](/packages/admin-ui).
 
 
-### 2. Bootstrap the packages
-
-`yarn bootstrap`
-
-This runs the Lerna "bootstrap" command, which cross-links monorepo dependencies.
-
-### 3. Build all packages
+### 2. Build all packages
 
 
 `yarn build`
 `yarn build`
 
 
@@ -65,7 +59,7 @@ Packages must be built (i.e. TypeScript compiled, admin ui app built, certain as
 
 
 Note that this can take a few minutes.
 Note that this can take a few minutes.
 
 
-### 4. Set up the server
+### 3. Set up the server
 
 
 The server requires an SQL database to be available. The simplest option is to use SQLite, but if you have Docker available you can use the [dev-server docker-compose file](./packages/dev-server/docker-compose.yml) which will start up both MariaDB and Postgres as well as their GUI management tools.
 The server requires an SQL database to be available. The simplest option is to use SQLite, but if you have Docker available you can use the [dev-server docker-compose file](./packages/dev-server/docker-compose.yml) which will start up both MariaDB and Postgres as well as their GUI management tools.
 
 
@@ -80,7 +74,7 @@ Vendure uses [TypeORM](http://typeorm.io), and officially supports **MySQL**, **
     ```
     ```
    If you do not specify the `DB` variable, it will default to "mysql".
    If you do not specify the `DB` variable, it will default to "mysql".
 
 
-### 5. Run the dev server
+### 4. Run the dev server
 
 
 ```
 ```
 cd packages/dev-server
 cd packages/dev-server
@@ -133,8 +127,6 @@ DB=sqlite yarn start
 
 
 3. The dev-server will now have your local changes from the changed package.
 3. The dev-server will now have your local changes from the changed package.
 
 
-:information_source: Lerna links to the `dist` folder of the packages, so you **don't** need to rerun 'yarn bootstrap'
-
 ### Code generation
 ### Code generation
 
 
 [graphql-code-generator](https://github.com/dotansimha/graphql-code-generator) is used to automatically create TypeScript interfaces for all GraphQL server operations and admin ui queries. These generated interfaces are used in both the admin ui and the server.
 [graphql-code-generator](https://github.com/dotansimha/graphql-code-generator) is used to automatically create TypeScript interfaces for all GraphQL server operations and admin ui queries. These generated interfaces are used in both the admin ui and the server.

+ 0 - 1
package.json

@@ -10,7 +10,6 @@
     "watch:core-common": "lerna run --scope @vendure/common --scope @vendure/core watch --parallel",
     "watch:core-common": "lerna run --scope @vendure/common --scope @vendure/core watch --parallel",
     "lint": "yarn eslint --fix",
     "lint": "yarn eslint --fix",
     "format": "prettier --write --html-whitespace-sensitivity ignore",
     "format": "prettier --write --html-whitespace-sensitivity ignore",
-    "bootstrap": "lerna bootstrap",
     "docs:generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
     "docs:generate-typescript-docs": "ts-node scripts/docs/generate-typescript-docs.ts",
     "docs:generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
     "docs:generate-graphql-docs": "ts-node scripts/docs/generate-graphql-docs.ts --api=shop && ts-node scripts/docs/generate-graphql-docs.ts --api=admin",
     "docs:update-build-info": "ts-node scripts/docs/update-build-info.ts",
     "docs:update-build-info": "ts-node scripts/docs/update-build-info.ts",