diff --git a/docs/package.json b/docs/package.json index ab2de9a..11936d0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,6 +12,7 @@ "@types/node": "18.16.3", "@types/react": "18.0.26", "@types/react-dom": "18.0.9", + "@vercel/analytics": "^1.0.0", "autoprefixer": "10.4.14", "eslint": "^8.26.0", "eslint-config-next": "13.3.4", diff --git a/docs/src/pages/_app.tsx b/docs/src/pages/_app.tsx index 72a8d30..07a8a80 100644 --- a/docs/src/pages/_app.tsx +++ b/docs/src/pages/_app.tsx @@ -1,10 +1,14 @@ import "tailwindcss/tailwind.css"; +import { Analytics } from "@vercel/analytics/react"; import { AppProps } from "next/app"; import { FC } from "react"; const App: FC = ({ Component, pageProps }) => ( - + <> + + + ); export default App; diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 61c19ab..31eebad 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -15,9 +19,23 @@ "jsx": "preserve", "incremental": true, "paths": { - "@/*": ["./src/*"] - } + "@/*": [ + "./src/*" + ] + }, + "plugins": [ + { + "name": "next" + } + ] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] } diff --git a/package.json b/package.json index b3f8cad..559c575 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "turbo run test", + "build": "turbo run build", + "start": "turbo run start", + "dev": "turbo run dev" }, "keywords": [], "author": "Federico Vitale ", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 938e158..a6c8d20 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,6 +22,9 @@ importers: '@types/react-dom': specifier: 18.0.9 version: 18.0.9 + '@vercel/analytics': + specifier: ^1.0.0 + version: 1.0.0(react@18.2.0) autoprefixer: specifier: 10.4.14 version: 10.4.14(postcss@8.4.23) @@ -930,6 +933,14 @@ packages: '@typescript-eslint/types': 5.42.0 eslint-visitor-keys: 3.4.0 + /@vercel/analytics@1.0.0(react@18.2.0): + resolution: {integrity: sha512-RQmj7pv82JwGDHrnKeRc6TtSw2U7rWNubc2IH0ernTzWTj02yr9zvIYiYJeztsBzrJtWv7m8Nz6vxxb+cdEtJw==} + peerDependencies: + react: ^16.8||^17||^18 + dependencies: + react: 18.2.0 + dev: false + /@vitest/coverage-c8@0.24.5: resolution: {integrity: sha512-955yK/SdSBZPYrSXgXB0F+0JnOX5EY9kSL7ywJ4rNajmkFUhwLjuKm13Xb6YKSyIY/g5WvbBnyowqfNRxBJ3ww==} dependencies: diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..ad74e63 --- /dev/null +++ b/turbo.json @@ -0,0 +1,13 @@ +{ + "pipeline": { + "start": {}, + "build": { + "dependsOn": ["^build"], + "outputs": [".next"] + }, + "dev": { + "cache": false + }, + "test": {} + } +}