Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages #70

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Nx 18 enables using plugins to infer targets by default
# This is disabled for existing workspaces to maintain compatibility
# For more info, see: https://nx.dev/concepts/inferred-tasks
NX_ADD_PLUGINS=false
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ stats.html
node_modules
coverage

.env
.env.*
!.env.example

.nx/cache
.nx/cache
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,25 @@ pnpm run init-project
### Development

1. Read [how to create GitHub access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)
2. Add `.env.local` into `./packages/graphql/.env.local`
2. Add `.env` into `./`
```bash
cp ./env.example ./.env
```
3. Add `.env.local` into `./packages/graphql/.env.local`
```bash
cp ./packages/graphql/env.example ./packages/graphql/.env.local
```
and add your GitHub token (see step 1)
3. Add `.env.local` to `./apps/main/.env.local`
4. Add `.env.local` to `./apps/main/.env.local`
```bash
cp ./apps/main/env.example ./apps/main/.env.local
```
and add your GitHub token (see step 1)
4. _[Optional step]_ Generate code from GraphQL schema
5. _[Optional step]_ Generate code from GraphQL schema
```sh
pnpm codegen:graphql
```
5. Start the app
6. Start the app
```sh
pnpm dev
```
Expand Down
41 changes: 8 additions & 33 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
},
"defaultProject": "main",
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [
"{workspaceRoot}/workspace.json",
"{workspaceRoot}/tsconfig.base.json",
Expand All @@ -52,47 +49,25 @@
},
"targetDefaults": {
"build": {
"inputs": [
"production",
"^production"
],
"inputs": ["production", "^production"],
"cache": true
},
"e2e": {
"inputs": [
"default",
"^production"
],
"cache": true
},
"lint": {
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json"
],
"inputs": ["default", "^production"],
"cache": true
},
"storybook:build": {
"inputs": [
"default",
"^production",
"{workspaceRoot}/.storybook/**/*"
]
},
"build-storybook": {
"inputs": [
"default",
"^production",
"{projectRoot}/.storybook/**/*",
"{projectRoot}/tsconfig.storybook.json"
],
"cache": true
"inputs": ["default", "^production", "{workspaceRoot}/.storybook/**/*"]
},
"test": {
"cache": true
},
"type-check": {
"cache": true
},
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
Expand Down
71 changes: 35 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,46 +39,46 @@
]
},
"devDependencies": {
"@apollo/client": "3.8.9",
"@apollo/client": "3.9.4",
"@apollo/react-testing": "4.0.0",
"@base2/pretty-print-object": "1.0.2",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/fragment-matcher": "5.0.0",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/fragment-matcher": "5.0.2",
"@graphql-codegen/near-operation-file-preset": "3.0.0",
"@graphql-codegen/schema-ast": "4.0.0",
"@graphql-codegen/typescript-operations": "4.0.1",
"@graphql-codegen/typescript-react-apollo": "4.1.0",
"@graphql-codegen/schema-ast": "4.0.2",
"@graphql-codegen/typescript-operations": "4.1.2",
"@graphql-codegen/typescript-react-apollo": "4.3.0",
"@graphql-eslint/eslint-plugin": "3.20.1",
"@nx/cypress": "17.2.8",
"@nx/devkit": "17.2.8",
"@nx/eslint": "17.2.8",
"@nx/eslint-plugin": "17.2.8",
"@nx/js": "17.2.8",
"@nx/node": "17.2.8",
"@nx/react": "17.2.8",
"@nx/storybook": "17.2.8",
"@nx/web": "17.2.8",
"@nx/workspace": "17.2.8",
"@storybook/addon-essentials": "7.6.8",
"@storybook/core-server": "7.6.8",
"@storybook/react": "7.6.8",
"@storybook/react-vite": "7.6.8",
"@nx/cypress": "18.0.4",
"@nx/devkit": "18.0.4",
"@nx/eslint": "18.0.4",
"@nx/eslint-plugin": "18.0.4",
"@nx/js": "18.0.4",
"@nx/node": "18.0.4",
"@nx/react": "18.0.4",
"@nx/storybook": "18.0.4",
"@nx/web": "18.0.4",
"@nx/workspace": "18.0.4",
"@storybook/addon-essentials": "7.6.14",
"@storybook/core-server": "7.6.14",
"@storybook/react": "7.6.14",
"@storybook/react-vite": "7.6.14",
"@storybook/testing-react": "2.0.0",
"@svgr/cli": "8.1.0",
"@svgr/plugin-svgo": "8.1.0",
"@svgr/webpack": "8.1.0",
"@testing-library/jest-dom": "6.2.0",
"@testing-library/react": "14.1.2",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.1",
"@testing-library/user-event": "14.5.2",
"@types/bluebird": "3.5.42",
"@types/jest": "29.5.11",
"@types/node": "20.11.2",
"@types/react": "18.2.48",
"@types/react-dom": "18.2.18",
"@types/jest": "29.5.12",
"@types/node": "20.11.17",
"@types/react": "18.2.55",
"@types/react-dom": "18.2.19",
"@types/react-is": "18.2.4",
"@types/react-router-dom": "5.3.3",
"@typescript-eslint/eslint-plugin": "6.19.0",
"@typescript-eslint/parser": "6.19.0",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@vitejs/plugin-react-swc": "3.5.0",
"@vitest/coverage-v8": "1.2.0",
"@vitest/ui": "1.2.0",
Expand Down Expand Up @@ -107,17 +107,17 @@
"husky": "8.0.3",
"jsdom": "23.2.0",
"lint-staged": "15.2.0",
"nx": "17.2.8",
"nx": "18.0.4",
"nx-stylelint": "17.1.1",
"postcss": "8.4.33",
"postcss-preset-mantine": "1.12.3",
"postcss-preset-mantine": "1.13.0",
"postcss-simple-vars": "7.0.1",
"postcss-syntax": "0.36.2",
"prettier": "3.2.2",
"react-scripts": "5.0.1",
"rollup-plugin-analyzer": "4.0.0",
"rollup-plugin-visualizer": "5.12.0",
"storybook": "7.6.8",
"storybook": "7.6.14",
"stylelint": "16.1.0",
"stylelint-config-css-modules": "4.4.0",
"stylelint-config-standard": "36.0.0",
Expand All @@ -126,13 +126,12 @@
"vite": "5.0.11",
"vite-dts": "1.0.4",
"vite-tsconfig-paths": "4.2.3",
"vitest": "1.2.0",
"webpack": "5.89.0"
"vitest": "1.2.0"
},
"dependencies": {
"@mantine/core": "7.4.1",
"@mantine/form": "7.4.1",
"@mantine/hooks": "7.4.1",
"@mantine/core": "7.5.2",
"@mantine/form": "7.5.2",
"@mantine/hooks": "7.5.2",
"@tabler/icons-react": "2.46.0",
"clsx": "2.1.0",
"graphql": "16.8.1",
Expand Down
Loading
Loading