aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-gatsby/apps/docs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-gatsby/apps/docs')
-rw-r--r--examples/with-gatsby/apps/docs/.eslintrc.js4
-rw-r--r--examples/with-gatsby/apps/docs/README.md30
-rw-r--r--examples/with-gatsby/apps/docs/next-env.d.ts5
-rw-r--r--examples/with-gatsby/apps/docs/next.config.js4
-rw-r--r--examples/with-gatsby/apps/docs/package.json27
-rw-r--r--examples/with-gatsby/apps/docs/pages/index.tsx10
-rw-r--r--examples/with-gatsby/apps/docs/tsconfig.json5
-rw-r--r--examples/with-gatsby/apps/docs/turbo.json9
8 files changed, 94 insertions, 0 deletions
diff --git a/examples/with-gatsby/apps/docs/.eslintrc.js b/examples/with-gatsby/apps/docs/.eslintrc.js
new file mode 100644
index 0000000..5c153af
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/.eslintrc.js
@@ -0,0 +1,4 @@
+module.exports = {
+ root: true,
+ extends: ["custom/next"],
+};
diff --git a/examples/with-gatsby/apps/docs/README.md b/examples/with-gatsby/apps/docs/README.md
new file mode 100644
index 0000000..14e1db2
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/README.md
@@ -0,0 +1,30 @@
+## Getting Started
+
+First, run the development server:
+
+```bash
+turbo dev
+```
+
+Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
+
+You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
+
+[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
+
+The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
+
+## Learn More
+
+To learn more about Next.js, take a look at the following resources:
+
+- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
+- [Learn Next.js](https://nextjs.org/learn/foundations/about-nextjs) - an interactive Next.js tutorial.
+
+You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
+
+## Deploy on Vercel
+
+The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.
+
+Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
diff --git a/examples/with-gatsby/apps/docs/next-env.d.ts b/examples/with-gatsby/apps/docs/next-env.d.ts
new file mode 100644
index 0000000..4f11a03
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/next-env.d.ts
@@ -0,0 +1,5 @@
+/// <reference types="next" />
+/// <reference types="next/image-types/global" />
+
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/basic-features/typescript for more information.
diff --git a/examples/with-gatsby/apps/docs/next.config.js b/examples/with-gatsby/apps/docs/next.config.js
new file mode 100644
index 0000000..fdda6aa
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/next.config.js
@@ -0,0 +1,4 @@
+module.exports = {
+ reactStrictMode: true,
+ transpilePackages: ["ui"],
+};
diff --git a/examples/with-gatsby/apps/docs/package.json b/examples/with-gatsby/apps/docs/package.json
new file mode 100644
index 0000000..75dd2e0
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "docs",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev --port 3001",
+ "build": "next build",
+ "start": "next start",
+ "lint": "next lint"
+ },
+ "dependencies": {
+ "next": "^13.1.1",
+ "react": "18.2.0",
+ "react-dom": "18.2.0",
+ "ui": "workspace:*"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.0.0",
+ "eslint-config-custom": "workspace:*",
+ "eslint": "7.32.0",
+ "tsconfig": "workspace:*",
+ "@types/node": "^17.0.12",
+ "@types/react": "^18.0.22",
+ "@types/react-dom": "^18.0.7",
+ "typescript": "^4.5.3"
+ }
+}
diff --git a/examples/with-gatsby/apps/docs/pages/index.tsx b/examples/with-gatsby/apps/docs/pages/index.tsx
new file mode 100644
index 0000000..0d1dabc
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/pages/index.tsx
@@ -0,0 +1,10 @@
+import { Button } from "ui";
+
+export default function Docs() {
+ return (
+ <div>
+ <h1>Docs</h1>
+ <Button />
+ </div>
+ );
+}
diff --git a/examples/with-gatsby/apps/docs/tsconfig.json b/examples/with-gatsby/apps/docs/tsconfig.json
new file mode 100644
index 0000000..a355365
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "extends": "tsconfig/nextjs.json",
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
+ "exclude": ["node_modules"]
+}
diff --git a/examples/with-gatsby/apps/docs/turbo.json b/examples/with-gatsby/apps/docs/turbo.json
new file mode 100644
index 0000000..4c6c3b2
--- /dev/null
+++ b/examples/with-gatsby/apps/docs/turbo.json
@@ -0,0 +1,9 @@
+{
+ "$schema": "https://turbo.build/schema.json",
+ "extends": ["//"],
+ "pipeline": {
+ "build": {
+ "outputs": [".next/**", "!.next/cache/**"]
+ }
+ }
+}