Skip to content

Commit

Permalink
chore(ci): filter out examples (#4239)
Browse files Browse the repository at this point in the history
* filter out examples

* typo

* update docs and gitignore to account for pnpm switch
  • Loading branch information
juliusmarminge committed Sep 28, 2022
1 parent 6c06966 commit d9478e0
Show file tree
Hide file tree
Showing 31 changed files with 50 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
node-version: 16.14.2
registry-url: https://registry.npmjs.org/
- run: |
pnpm install
pnpm --filter ./packages/** --filter query install
git config --global user.name 'Tanner Linsley'
git config --global user.email 'tannerlinsley@users.noreply.github.com'
pnpm run cipublish
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
run: pnpm --filter "./packages/**" --filter query install
- run: |
pnpm run test:ci
pnpm run test:size
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# dependencies
node_modules
package-lock.json
yarn.lock

# builds
types
Expand Down
4 changes: 3 additions & 1 deletion docs/community/liaoliao666-react-query-kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ should be installed as one of your project's `dependencies`:
```bash
$ npm i react-query-kit
# or
$聽pnpm add react-query-kit
# or
$ yarn add react-query-kit
```

Expand Down Expand Up @@ -74,4 +76,4 @@ export async function getStaticProps() {
}
```

Check the complete documentation on [GitHub](https://github.com/liaoliao666/react-query-kit).
Check the complete documentation on [GitHub](https://github.com/liaoliao666/react-query-kit).
2 changes: 2 additions & 0 deletions docs/community/lukemorales-query-key-factory.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ You can install Query Key Factory via [NPM](https://www.npmjs.com/package/@lukem
```bash
$ npm i @lukemorales/query-key-factory
# or
$聽pnpm add @lukemorales/query-key-factory
# or
$ yarn add @lukemorales/query-key-factory
```

Expand Down
2 changes: 2 additions & 0 deletions docs/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The devtools are a separate package that you need to install:
```bash
$ npm i @tanstack/react-query-devtools
# or
$ pnpm add @tanstack/react-query-devtools
# or
$ yarn add @tanstack/react-query-devtools
```

Expand Down
2 changes: 2 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ or a good ol' `<script>` via
```bash
$ npm i @tanstack/react-query
# or
$聽pnpm add @tanstack/react-query
# or
$ yarn add @tanstack/react-query
```

Expand Down
4 changes: 4 additions & 0 deletions docs/plugins/createAsyncStoragePersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ npm install @tanstack/query-async-storage-persister @tanstack/react-query-persis
```
or
```bash
pnpm add @tanstack/query-async-storage-persister @tanstack/react-query-persist-client
```
or
```bash
yarn add @tanstack/query-async-storage-persister @tanstack/react-query-persist-client
```

Expand Down
4 changes: 4 additions & 0 deletions docs/plugins/createSyncStoragePersister.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ npm install @tanstack/query-sync-storage-persister @tanstack/react-query-persist
```
or
```bash
pnpm add @tanstack/query-sync-storage-persister @tanstack/react-query-persist-client
```
or
```bash
yarn add @tanstack/query-sync-storage-persister @tanstack/react-query-persist-client
```

Expand Down
1 change: 1 addition & 0 deletions examples/react/auto-refetching/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/basic-graphql-request/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/basic-typescript/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
4 changes: 2 additions & 2 deletions examples/react/basic-typescript/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
To begin the development, run `npm start`, `pnpm start` or `yarn start`.
To create a production bundle, use `npm run build`, `pnpm buld` or `yarn build`.
-->
</body>
</html>
1 change: 1 addition & 0 deletions examples/react/basic/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/default-query-function/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/load-more-infinite-scroll/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/offline/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/optimistic-updates-typescript/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/pagination/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/playground/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/prefetching/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
4 changes: 2 additions & 2 deletions examples/react/react-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
To run this example:

- Install expo CLI if needed `npm install --global expo-cli`
- `yarn`
- `yarn start`
- `pnpm install`
- `pnpm start`
8 changes: 4 additions & 4 deletions examples/react/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"web": "expo start --web",
"eject": "expo eject",
"lint:check": "eslint --ext '.js,.ts,.tsx' .",
"lint:fix": "yarn lint --fix",
"lint:fix": "pnpm lint --fix",
"type:check": "tsc --noEmit",
"prettier": "prettier \"{.,src,src/**}/*.{md,js,jsx,ts,tsx,json}\"",
"prettier:check": "yarn prettier -c",
"prettier:fix": "yarn prettier -w",
"dev:check": "yarn prettier:check & yarn lint:check & yarn type:check"
"prettier:check": "pnpm prettier -c",
"prettier:fix": "pnpm prettier -w",
"dev:check": "pnpm prettier:check & pnpm lint:check & pnpm type:check"
},
"dependencies": {
"@react-navigation/stack": "^6.0.2",
Expand Down
1 change: 1 addition & 0 deletions examples/react/react-router/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/rick-morty/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/simple/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/star-wars/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
1 change: 1 addition & 0 deletions examples/react/suspense/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# production
/build

pnpm-lock.yaml
yarn.lock
package-lock.json

Expand Down
4 changes: 2 additions & 2 deletions examples/react/suspense/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

To run this example:

- `npm install` or `yarn`
- `npm run dev` or `yarn run dev`
- `pnpm install`
- `pnpm dev`
4 changes: 2 additions & 2 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"clean": "rm -rf ./build",
"test:codemods": "../../node_modules/.bin/jest --config codemods/jest.config.js",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"test:jest": "yarn test:codemods && ../../node_modules/.bin/jest --config jest.config.js",
"test:jest:dev": "yarn test:jest --watch"
"test:jest": "pnpm test:codemods && ../../node_modules/.bin/jest --config jest.config.js",
"test:jest:dev": "pnpm test:jest --watch"
},
"files": [
"build/lib/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"clean": "rm -rf ./build",
"test:eslint": "../../node_modules/.bin/eslint --ext .ts,.tsx ./src",
"test:jest": "../../node_modules/.bin/jest --config jest.config.js",
"test:jest:dev": "yarn test:jest --watch"
"test:jest:dev": "pnpm test:jest --watch"
},
"files": [
"build/lib/*",
Expand Down

0 comments on commit d9478e0

Please sign in to comment.