Skip to content

Commit

Permalink
feat: turbo + analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
rawnly committed May 2, 2023
1 parent b607c4a commit e1c4f42
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion docs/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -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<AppProps> = ({ Component, pageProps }) => (
<Component {...pageProps} />
<>
<Component {...pageProps} />
<Analytics />
</>
);

export default App;
28 changes: 23 additions & 5 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -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"
]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"pipeline": {
"start": {},
"build": {
"dependsOn": ["^build"],
"outputs": [".next"]
},
"dev": {
"cache": false
},
"test": {}
}
}

1 comment on commit e1c4f42

@vercel
Copy link

@vercel vercel bot commented on e1c4f42 May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.