chore: less yarn more pnpm
This commit is contained in:
+4
-10
@@ -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
|
||||
```
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
```bash
|
||||
npm i @vue/apollo-components
|
||||
pnpm i @vue/apollo-components
|
||||
yarn add @vue/apollo-components
|
||||
```
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
```bash
|
||||
npm i @vue/apollo-composable
|
||||
pnpm i @vue/apollo-composable
|
||||
yarn add @vue/apollo-composable
|
||||
```
|
||||
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
```bash
|
||||
npm i @vue/apollo-option
|
||||
pnpm i @vue/apollo-option
|
||||
yarn add @vue/apollo-option
|
||||
```
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
```bash
|
||||
npm i @vue/apollo-util
|
||||
pnpm i @vue/apollo-util
|
||||
yarn add @vue/apollo-util
|
||||
```
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user