refactor: migrate to pnpm

This commit is contained in:
Guillaume Chau
2022-05-03 13:16:10 +02:00
parent 2ddf5ae3e6
commit 3fe0e46eb1
17 changed files with 15810 additions and 16692 deletions
+17 -14
View File
@@ -27,14 +27,16 @@ jobs:
nvm use 16
nvm alias default 16
- run: npm install -g pnpm
# Download and cache dependencies
- restore_cache:
keys:
- v10-dependencies-{{ checksum "yarn.lock" }}
- v11-dependencies-{{ checksum "pnpm-lock.yaml" }}
# fallback to using the latest cache if no exact match is found
- v10-dependencies-
- v11-dependencies-
- run: yarn install
- run: pnpm install --frozen-lockfile
- save_cache:
paths:
@@ -51,19 +53,20 @@ jobs:
- packages/vue-apollo-ssr/node_modules
- packages/vue-apollo-util/node_modules
- ~/.cache
key: v10-dependencies-{{ checksum "yarn.lock" }}
- ~/.pnpm-store
key: v11-dependencies-{{ checksum "pnpm-lock.yaml" }}
# run tests!
- run: yarn lint
- run: yarn build
- run: cd packages/vue-apollo-option && yarn test:types
- run: cd packages/vue-apollo-option && yarn test:unit
- run: cd packages/vue-apollo-composable && yarn test:types
- run: cd packages/test-e2e && yarn test:e2e
# - run: cd packages/test-e2e-composition && yarn test:e2e
- run: cd packages/test-e2e-composable-vue3 && yarn test:e2e
# - run: cd packages/test-ssr && yarn test:e2e
# - run: cd packages/test-ssr-composition && yarn test:e2e
- run: pnpm run lint
- run: pnpm run build
- run: cd packages/vue-apollo-option && pnpm run test:types
- run: cd packages/vue-apollo-option && pnpm run test:unit
- run: cd packages/vue-apollo-composable && pnpm run test:types
- run: cd packages/test-e2e && pnpm run test:e2e
# - run: cd packages/test-e2e-composition && pnpm run test:e2e
- run: cd packages/test-e2e-composable-vue3 && pnpm run test:e2e
# - run: cd packages/test-ssr && pnpm run test:e2e
# - run: cd packages/test-ssr-composition && pnpm run test:e2e
- store_artifacts:
path: packages/test-e2e/tests/e2e/videos
-8
View File
@@ -1,8 +0,0 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "4.0.0-alpha.16",
"packages": [
"packages/*"
]
}
+26 -20
View File
@@ -1,26 +1,15 @@
{
"name": "vue-apollo-monorepo",
"version": "4.0.0-alpha.16",
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"**vue**",
"**/*vuepress*",
"**/@vuepress/*",
"**/vuepress"
]
},
"private": true,
"scripts": {
"build": "lerna run build --concurrency 1 --scope \"{vue-apollo,@vue/apollo}*\"",
"test": "lerna run test --concurrency 1",
"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"
},
"devDependencies": {
"@akryum/sheep": "^0.2.3",
"@akryum/sheep": "^0.3.3",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"@vue/eslint-config-standard": "^6.0.0",
@@ -34,13 +23,30 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^7.5.0",
"lerna": "^3.18.4",
"typescript": "^4.1.5"
},
"resolutions": {
"eslint-scope": "^5",
"graphql": "^15",
"serialize-javascript": "^6.0.0",
"subscriptions-transport-ws": "^0.9"
"pnpm": {
"overrides": {
"eslint-scope": "^5",
"graphql": "^15",
"serialize-javascript": "^6.0.0",
"subscriptions-transport-ws": "^0.9"
},
"peerDependencyRules": {
"ignoreMissing": [
"webpack",
"react",
"eslint",
"typescript",
"vue-template-compiler",
"graphql",
"vue-class-component"
],
"allowedVersions": {
"eslint": "*",
"esbuild": "*",
"vue": "*"
}
}
}
}
@@ -14,13 +14,15 @@
},
"dependencies": {
"@apollo/client": "^3.2.1",
"@vue/apollo-composable": "^4.0.0-alpha.16",
"@vue/apollo-composable": "workspace:*",
"@vue/apollo-util": "workspace:*",
"apollo-server-express": "^2.18.2",
"core-js": "^3.6.5",
"cors": "^2.8.5",
"express": "^4.17.1",
"graphql": "^15.3.0",
"graphql-tag": "^2.12.6",
"regenerator-runtime": "^0.13.9",
"shortid": "^2.2.15",
"vue": "^3.0.0",
"vue-demi": "^0.12.5",
+4 -2
View File
@@ -14,14 +14,16 @@
},
"dependencies": {
"@apollo/client": "^3.2.1",
"@vue/apollo-components": "^4.0.0-alpha.16",
"@vue/apollo-option": "^4.0.0-alpha.16",
"@vue/apollo-components": "workspace:*",
"@vue/apollo-option": "workspace:*",
"apollo-server-express": "^2.18.2",
"core-js": "^3.4.1",
"graphql": "^15.3.0",
"graphql-type-json": "^0.3.0",
"marked": "^0.7.0",
"regenerator-runtime": "^0.13.9",
"shortid": "^2.2.8",
"subscriptions-transport-ws": "^0.11.0",
"vue": "^3.0.0",
"vue-router": "^4.0.0",
"vuex": "^4.0.0"
@@ -55,7 +55,11 @@
"devDependencies": {
"@apollo/client": "^3.4.0",
"@types/throttle-debounce": "^2.1.0",
"graphql": "^15.3.0",
"graphql-tag": "^2.12.6",
"nodemon": "^1.18.4",
"rimraf": "^3.0.2",
"typescript": "^4.1.5",
"vue": "^3.1.0"
}
}
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2015",
"module": "commonjs",
"noEmit": true,
"esModuleInterop": true,
+1 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2015",
"module": "CommonJS",
"sourceMap": true,
"skipLibCheck": true,
+1
View File
@@ -52,6 +52,7 @@
"@babel/plugin-transform-for-of": "^7.4.4",
"@babel/preset-env": "^7.1.0",
"@types/graphql": "^14.0.1",
"@vue/runtime-core": "^3.2.33",
"@vue/test-utils": "^1.0.0-beta.25",
"babel-core": "^7.0.0-bridge.0",
"cross-env": "^6.0.0",
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2015",
"lib": [
"es5",
"es6",
+3 -1
View File
@@ -36,6 +36,8 @@
"serialize-javascript": "^6.0.0"
},
"devDependencies": {
"@types/serialize-javascript": "^5.0.1"
"@apollo/client": "^3.6.2",
"@types/serialize-javascript": "^5.0.1",
"typescript": "^4.1.5"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2015",
"module": "commonjs",
"sourceMap": true,
"skipLibCheck": true,
+5
View File
@@ -31,5 +31,10 @@
"dev": "yarn build --watch",
"build": "tsc --outDir dist -d",
"prepublishOnly": "yarn build"
},
"devDependencies": {
"@apollo/client": "^3.6.2",
"graphql": "^15.3.0",
"typescript": "^4.1.5"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2017",
"module": "commonjs",
"sourceMap": true,
"esModuleInterop": true,
+15740
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -0,0 +1,2 @@
packages:
- 'packages/*'
-16641
View File
File diff suppressed because it is too large Load Diff