From 120c5554efff69834ee3a4df67ce2d55d981f52d Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 3 May 2022 17:10:22 +0200 Subject: [PATCH] chore: less yarn more pnpm --- CONTRIBUTING.md | 14 ++++---------- package.json | 2 +- packages/test-e2e-composable-vue3/README.md | 8 ++++---- packages/test-e2e-composable-vue3/package.json | 2 +- packages/test-e2e/README.md | 6 +++--- packages/test-e2e/package.json | 2 +- packages/vue-apollo-components/README.md | 1 + packages/vue-apollo-components/package.json | 6 +++--- packages/vue-apollo-composable/README.md | 1 + packages/vue-apollo-composable/package.json | 8 ++++---- packages/vue-apollo-option/README.md | 1 + packages/vue-apollo-option/package.json | 10 +++++----- packages/vue-apollo-ssr/package.json | 4 ++-- packages/vue-apollo-util/README.md | 1 + packages/vue-apollo-util/package.json | 4 ++-- 15 files changed, 34 insertions(+), 36 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b5a3ceea..1893a82c2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,25 +5,19 @@ Install dependencies: ``` -yarn install -cd tests/demo && yarn install -cd ../ssr && yarn install +pnpm install ``` -Link the library to test it in your project: - -``` -yarn link -``` +Go to a package in `packages`. Build the library with watching: ``` -yarn dev +pnpm run dev ``` Run tests: ``` -yarn test +pnpm run test ``` diff --git a/package.json b/package.json index 5d6985e35..550d49a3a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "build": "pnpm run -r --filter \"vue-apollo*\" --filter \"@vue/apollo*\" build", "test": "pnpm run -r test", "lint": "eslint . --ext js,vue,ts", - "release": "yarn run build && yarn run test && sheep release -b v4" + "release": "pnpm run build && pnpm run test && sheep release -b v4" }, "devDependencies": { "@akryum/sheep": "^0.3.3", diff --git a/packages/test-e2e-composable-vue3/README.md b/packages/test-e2e-composable-vue3/README.md index 7aa7376a1..5559876b9 100644 --- a/packages/test-e2e-composable-vue3/README.md +++ b/packages/test-e2e-composable-vue3/README.md @@ -2,22 +2,22 @@ ## Project setup ``` -yarn install +pnpm install ``` ### Compiles and hot-reloads for development ``` -yarn serve +pnpm run serve ``` ### Compiles and minifies for production ``` -yarn build +pnpm run build ``` ### Run your end-to-end tests ``` -yarn test:e2e +pnpm run test:e2e ``` ### Customize configuration diff --git a/packages/test-e2e-composable-vue3/package.json b/packages/test-e2e-composable-vue3/package.json index f6963db48..05747dfea 100644 --- a/packages/test-e2e-composable-vue3/package.json +++ b/packages/test-e2e-composable-vue3/package.json @@ -5,7 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "test": "yarn run test:e2e && kill-port 4042", + "test": "pnpm run test:e2e && kill-port 4042", "test:e2e": "start-server-and-test api http://localhost:4042/.well-known/apollo/server-health test:e2e:client", "test:e2e:client": "vue-cli-service test:e2e --mode production --headless", "test:e2e:dev": "start-server-and-test api http://localhost:4042/.well-known/apollo/server-health test:e2e:dev:client", diff --git a/packages/test-e2e/README.md b/packages/test-e2e/README.md index 46e4fc5ba..991f915f7 100644 --- a/packages/test-e2e/README.md +++ b/packages/test-e2e/README.md @@ -6,12 +6,12 @@ Demo app: Vue + Apollo + Graphql + vue-cli 3 ### Setup project ``` -yarn +pnpm i ``` ### Development ``` -yarn apollo:run -yarn serve +pnpm run apollo:run +pnpm run serve ``` diff --git a/packages/test-e2e/package.json b/packages/test-e2e/package.json index 38312227f..9f3fa8064 100644 --- a/packages/test-e2e/package.json +++ b/packages/test-e2e/package.json @@ -5,7 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "test": "yarn run test:e2e && kill-port 4042", + "test": "pnpm run test:e2e && kill-port 4042", "test:e2e": "start-server-and-test api http://localhost:4042/.well-known/apollo/server-health test:e2e:client", "test:e2e:client": "vue-cli-service test:e2e --mode production --headless", "test:e2e:dev": "start-server-and-test api http://localhost:4042/.well-known/apollo/server-health test:e2e:dev:client", diff --git a/packages/vue-apollo-components/README.md b/packages/vue-apollo-components/README.md index d995a4cc5..fe4cf37d8 100644 --- a/packages/vue-apollo-components/README.md +++ b/packages/vue-apollo-components/README.md @@ -18,6 +18,7 @@ ```bash npm i @vue/apollo-components +pnpm i @vue/apollo-components yarn add @vue/apollo-components ``` diff --git a/packages/vue-apollo-components/package.json b/packages/vue-apollo-components/package.json index 58f7e26ed..a8aa25ad7 100644 --- a/packages/vue-apollo-components/package.json +++ b/packages/vue-apollo-components/package.json @@ -6,12 +6,12 @@ "module": "dist/vue-apollo-components.esm.js", "unpkg": "dist/vue-apollo-components.min.js", "scripts": { - "build": "yarn build:browser && yarn build:es && yarn build:umd", + "build": "pnpm run build:browser && pnpm run build:es && pnpm run build:umd", "build:browser": "rollup --config build/rollup.config.browser.js", "build:es": "rollup --config build/rollup.config.es.js", "build:umd": "rollup --config build/rollup.config.umd.js", - "prepublishOnly": "yarn build", - "dev": "nodemon --exec 'yarn build:es && yarn build:umd' --watch src --watch lib" + "prepublishOnly": "pnpm run build", + "dev": "nodemon --exec 'pnpm run build:es && pnpm run build:umd' --watch src --watch lib" }, "repository": { "type": "git", diff --git a/packages/vue-apollo-composable/README.md b/packages/vue-apollo-composable/README.md index b09da0ee6..bb0a863d6 100644 --- a/packages/vue-apollo-composable/README.md +++ b/packages/vue-apollo-composable/README.md @@ -18,6 +18,7 @@ ```bash npm i @vue/apollo-composable +pnpm i @vue/apollo-composable yarn add @vue/apollo-composable ``` diff --git a/packages/vue-apollo-composable/package.json b/packages/vue-apollo-composable/package.json index 1c570d1e3..949be1ebf 100644 --- a/packages/vue-apollo-composable/package.json +++ b/packages/vue-apollo-composable/package.json @@ -29,11 +29,11 @@ "dist" ], "scripts": { - "dev": "rimraf dist && nodemon --exec 'yarn build:code' --watch src --ext js,ts", - "build": "rimraf dist && yarn run build:code", + "dev": "rimraf dist && nodemon --exec 'pnpm run build:code' --watch src --ext js,ts", + "build": "rimraf dist && pnpm run build:code", "build:code": "node esbuild.mjs && tsc -d --emitDeclarationOnly", - "prepublishOnly": "yarn test && yarn build", - "test": "yarn test:types", + "prepublishOnly": "pnpm run test && pnpm run build", + "test": "pnpm run test:types", "test:types": "tsc -p tests/types/" }, "dependencies": { diff --git a/packages/vue-apollo-option/README.md b/packages/vue-apollo-option/README.md index be4ac3e9f..5e6365d45 100644 --- a/packages/vue-apollo-option/README.md +++ b/packages/vue-apollo-option/README.md @@ -18,6 +18,7 @@ ```bash npm i @vue/apollo-option +pnpm i @vue/apollo-option yarn add @vue/apollo-option ``` diff --git a/packages/vue-apollo-option/package.json b/packages/vue-apollo-option/package.json index 6a7320e93..61236ac15 100644 --- a/packages/vue-apollo-option/package.json +++ b/packages/vue-apollo-option/package.json @@ -7,15 +7,15 @@ "unpkg": "dist/vue-apollo-option.min.js", "typings": "types/index.d.ts", "scripts": { - "build": "yarn build:browser && yarn build:es && yarn build:umd", + "build": "pnpm run build:browser && pnpm run build:es && pnpm run build:umd", "build:browser": "rollup --config build/rollup.config.browser.js", "build:es": "rollup --config build/rollup.config.es.js", "build:umd": "rollup --config build/rollup.config.umd.js", - "prepublishOnly": "yarn test && yarn build", - "dev": "nodemon --exec 'yarn build:es && yarn build:umd' --watch src --watch lib", - "test": "yarn build && yarn test:types && yarn run test:unit", + "prepublishOnly": "pnpm run test && pnpm run build", + "dev": "nodemon --exec 'pnpm run build:es && pnpm run build:umd' --watch src --watch lib", + "test": "pnpm run test:types && pnpm run test:unit", "test:types": "tsc -p types/test", - "test:unit": "yarn run jest" + "test:unit": "jest" }, "repository": { "type": "git", diff --git a/packages/vue-apollo-ssr/package.json b/packages/vue-apollo-ssr/package.json index c52f9ee43..9c1f60960 100644 --- a/packages/vue-apollo-ssr/package.json +++ b/packages/vue-apollo-ssr/package.json @@ -28,9 +28,9 @@ "dist" ], "scripts": { - "dev": "yarn build --watch", + "dev": "pnpm run build --watch", "build": "tsc --outDir dist -d", - "prepublishOnly": "yarn build" + "prepublishOnly": "pnpm run build" }, "dependencies": { "serialize-javascript": "^6.0.0" diff --git a/packages/vue-apollo-util/README.md b/packages/vue-apollo-util/README.md index 2f38e23d7..0ba1b6249 100644 --- a/packages/vue-apollo-util/README.md +++ b/packages/vue-apollo-util/README.md @@ -18,6 +18,7 @@ ```bash npm i @vue/apollo-util +pnpm i @vue/apollo-util yarn add @vue/apollo-util ``` diff --git a/packages/vue-apollo-util/package.json b/packages/vue-apollo-util/package.json index 3c9266762..7f9926cbd 100644 --- a/packages/vue-apollo-util/package.json +++ b/packages/vue-apollo-util/package.json @@ -28,9 +28,9 @@ "dist" ], "scripts": { - "dev": "yarn build --watch", + "dev": "pnpm run build --watch", "build": "tsc --outDir dist -d", - "prepublishOnly": "yarn build" + "prepublishOnly": "pnpm run build" }, "devDependencies": { "@apollo/client": "^3.6.2",