Skip to content

Commit

Permalink
feat: updates deps & installs next-seo (#121)
Browse files Browse the repository at this point in the history
* chore: updates pnpm version

* chore: updates all deps

* chore: removes eslint from lint-staged

* feat: adds next-seo
  • Loading branch information
ixahmedxi authored Jul 1, 2023
1 parent 03b2e2b commit 0c5a62c
Show file tree
Hide file tree
Showing 13 changed files with 759 additions and 787 deletions.
5 changes: 1 addition & 4 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export default {
'*.{js,jsx,ts,tsx}': [
'eslint --max-warnings 0 --report-unused-disable-directives',
'prettier --list-different',
],
'*.{js,jsx,ts,tsx}': ['prettier --list-different'],
'*.{css,html,json,md,mdx,yaml,yml}': ['prettier --list-different'],
};
17 changes: 1 addition & 16 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,5 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"files.exclude": {
"**/.git": false,
"**/.svn": false,
"**/.hg": false,
"**/CVS": false,
"**/.DS_Store": false,
"**/Thumbs.db": false,
"**/.next": false,
"**/node_modules": false,
"**/dist": false,
"**/coverage": false,
"**/playwright-report": false,
"**/test-results": false,
"**/*.tsbuildinfo": false
}
"editor.formatOnSave": true
}
11 changes: 6 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
"dependencies": {
"@noodle/api": "workspace:^",
"@noodle/ui": "workspace:^",
"@tanstack/react-query": "^4.29.17",
"@trpc/client": "^10.32.0",
"@trpc/next": "^10.32.0",
"@trpc/react-query": "^10.32.0",
"@trpc/server": "^10.32.0",
"@tanstack/react-query": "^4.29.19",
"@trpc/client": "^10.33.0",
"@trpc/next": "^10.33.0",
"@trpc/react-query": "^10.33.0",
"@trpc/server": "^10.33.0",
"@vercel/analytics": "^1.0.1",
"next": "13.4.7",
"next-seo": "^6.1.0",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
13 changes: 9 additions & 4 deletions apps/web/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
import { Analytics } from '@vercel/analytics/react';
import { DefaultSeo } from 'next-seo';
import { ThemeProvider } from 'next-themes';
import { type AppProps } from 'next/app';

import '@/styles/globals.css';

import { api } from '@/utils/api';
import { seo } from '@/utils/seo';

const App = ({ Component, pageProps }: AppProps) => {
return (
<ThemeProvider attribute="class">
<Component {...pageProps} />
<Analytics />
</ThemeProvider>
<>
<DefaultSeo {...seo} />
<ThemeProvider attribute="class">
<Component {...pageProps} />
<Analytics />
</ThemeProvider>
</>
);
};

Expand Down
14 changes: 14 additions & 0 deletions apps/web/src/utils/seo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { type DefaultSeoProps } from 'next-seo';

export const seo: DefaultSeoProps = {
title: 'Noodle | Rethinking Student Productivity',
description:
'Noodle is a productivity app for students. It helps you manage your time, tasks, and goals.',
canonical: 'https://noodle.run',
openGraph: {
url: 'https://noodle.run',
title: 'Noodle | Rethinking Student Productivity',
description:
'Noodle is a productivity app for students. It helps you manage your time, tasks, and goals.',
},
};
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@
"@ianvs/prettier-plugin-sort-imports": "^4.0.2",
"@noodle/tsconfig": "workspace:^",
"@types/eslint": "^8.40.2",
"@types/node": "^20.3.1",
"@types/node": "^20.3.3",
"@types/prettier": "^2.7.3",
"del-cli": "^5.0.0",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"eslint-config-noodle": "workspace:^",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"lint-staged": "^13.2.3",
"nx": "16.3.2",
"nx-cloud": "16.0.5",
"prettier": "^2.8.8",
"prettier-plugin-jsdoc": "^0.4.2",
"prettier-plugin-packagejson": "^2.4.3",
"prettier-plugin-tailwindcss": "^0.3.0",
"typescript": "^5.1.3"
"typescript": "^5.1.6"
},
"packageManager": "[email protected].2",
"packageManager": "[email protected].5",
"engines": {
"node": ">=v18.15.0",
"pnpm": ">=8.6.2"
"pnpm": ">=8.6.5"
},
"volta": {
"node": "18.15.0",
"pnpm": "8.6.2"
"pnpm": "8.6.5"
},
"pnpm": {
"patchedDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@trpc/next": "^10.32.0",
"@trpc/server": "^10.32.0",
"@trpc/next": "^10.33.0",
"@trpc/server": "^10.33.0",
"superjson": "^1.12.4",
"zod": "^3.21.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/config/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint-plugin-jest-dom": "^5.0.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-playwright": "^0.15.1",
"eslint-plugin-playwright": "^0.15.2",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.12",
Expand Down
8 changes: 4 additions & 4 deletions packages/config/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@storybook/addon-styling": "^1.3.1",
"@storybook/react": "^7.0.23",
"@storybook/react-vite": "^7.0.23",
"@storybook/types": "^7.0.23"
"@storybook/addon-styling": "^1.3.2",
"@storybook/react": "^7.0.24",
"@storybook/react-vite": "^7.0.24",
"@storybook/types": "^7.0.24"
},
"devDependencies": {
"@noodle/tsconfig": "workspace:^"
Expand Down
18 changes: 9 additions & 9 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
"@noodle/storybook-config": "workspace:^",
"@noodle/tailwind": "workspace:^",
"@noodle/tsconfig": "workspace:^",
"@storybook/addon-a11y": "^7.0.23",
"@storybook/addon-essentials": "^7.0.23",
"@storybook/addon-interactions": "^7.0.23",
"@storybook/addon-links": "^7.0.23",
"@storybook/addon-styling": "^1.3.1",
"@storybook/blocks": "^7.0.23",
"@storybook/react": "^7.0.23",
"@storybook/react-vite": "^7.0.23",
"@storybook/addon-a11y": "^7.0.24",
"@storybook/addon-essentials": "^7.0.24",
"@storybook/addon-interactions": "^7.0.24",
"@storybook/addon-links": "^7.0.24",
"@storybook/addon-styling": "^1.3.2",
"@storybook/blocks": "^7.0.24",
"@storybook/react": "^7.0.24",
"@storybook/react-vite": "^7.0.24",
"@storybook/testing-library": "^0.2.0",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.24",
"storybook": "^7.0.23",
"storybook": "^7.0.24",
"storybook-addon-pseudo-states": "^2.1.0",
"tailwindcss": "^3.3.2",
"vite": "^4.3.9"
Expand Down
6 changes: 3 additions & 3 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
},
"dependencies": {
"@noodle/api": "workspace:^",
"@tanstack/react-query": "^4.29.17",
"@tanstack/react-query": "^4.29.19",
"@testing-library/react": "^14.0.0",
"@trpc/client": "^10.32.0",
"@trpc/react-query": "^10.32.0",
"@trpc/client": "^10.33.0",
"@trpc/react-query": "^10.33.0",
"cross-fetch": "^3.1.6",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
18 changes: 9 additions & 9 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"@noodle/test-utils": "workspace:^",
"@noodle/tsconfig": "workspace:^",
"@noodle/vitest": "workspace:^",
"@storybook/addon-a11y": "^7.0.23",
"@storybook/addon-essentials": "^7.0.23",
"@storybook/addon-interactions": "^7.0.23",
"@storybook/addon-links": "^7.0.23",
"@storybook/addon-styling": "^1.3.1",
"@storybook/blocks": "^7.0.23",
"@storybook/react": "^7.0.23",
"@storybook/react-vite": "^7.0.23",
"@storybook/addon-a11y": "^7.0.24",
"@storybook/addon-essentials": "^7.0.24",
"@storybook/addon-interactions": "^7.0.24",
"@storybook/addon-links": "^7.0.24",
"@storybook/addon-styling": "^1.3.2",
"@storybook/blocks": "^7.0.24",
"@storybook/react": "^7.0.24",
"@storybook/react-vite": "^7.0.24",
"@storybook/testing-library": "^0.2.0",
"@testing-library/dom": "^9.3.1",
"@testing-library/user-event": "^14.4.3",
Expand All @@ -52,7 +52,7 @@
"@vitest/coverage-v8": "^0.32.2",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.24",
"storybook": "^7.0.23",
"storybook": "^7.0.24",
"storybook-addon-pseudo-states": "^2.1.0",
"tailwindcss": "^3.3.2",
"vite": "^4.3.9",
Expand Down
Loading

0 comments on commit 0c5a62c

Please sign in to comment.