Skip to content

Commit

Permalink
chore: less yarn more pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed May 3, 2022
1 parent 72f8607 commit 120c555
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 36 deletions.
14 changes: 4 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/test-e2e-composable-vue3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/test-e2e-composable-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/test-e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion packages/test-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/vue-apollo-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

```bash
npm i @vue/apollo-components
pnpm i @vue/apollo-components
yarn add @vue/apollo-components
```

Expand Down
6 changes: 3 additions & 3 deletions packages/vue-apollo-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/vue-apollo-composable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

```bash
npm i @vue/apollo-composable
pnpm i @vue/apollo-composable
yarn add @vue/apollo-composable
```

Expand Down
8 changes: 4 additions & 4 deletions packages/vue-apollo-composable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions packages/vue-apollo-option/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

```bash
npm i @vue/apollo-option
pnpm i @vue/apollo-option
yarn add @vue/apollo-option
```

Expand Down
10 changes: 5 additions & 5 deletions packages/vue-apollo-option/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-apollo-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/vue-apollo-util/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

```bash
npm i @vue/apollo-util
pnpm i @vue/apollo-util
yarn add @vue/apollo-util
```

Expand Down
4 changes: 2 additions & 2 deletions packages/vue-apollo-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 120c555

Please sign in to comment.