aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-changesets/apps
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:47:57 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:47:57 +0800
commit8b2c4a38a461ff5ecc95972291bc711e2c5dec9a (patch)
tree29f552e3df949073e21bf5c76d7abc3044830ec6 /examples/with-changesets/apps
parentfc8c5fdce62fb229202659408798a7b6c98f6e8b (diff)
downloadHydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.tar.gz
HydroRoll-8b2c4a38a461ff5ecc95972291bc711e2c5dec9a.zip
Diffstat (limited to 'examples/with-changesets/apps')
-rw-r--r--examples/with-changesets/apps/docs/.eslintrc.js4
-rw-r--r--examples/with-changesets/apps/docs/next-env.d.ts5
-rw-r--r--examples/with-changesets/apps/docs/next.config.js3
-rw-r--r--examples/with-changesets/apps/docs/package.json27
-rw-r--r--examples/with-changesets/apps/docs/src/pages/index.tsx14
-rw-r--r--examples/with-changesets/apps/docs/tsconfig.json10
6 files changed, 63 insertions, 0 deletions
diff --git a/examples/with-changesets/apps/docs/.eslintrc.js b/examples/with-changesets/apps/docs/.eslintrc.js
new file mode 100644
index 0000000..b2a3fa9
--- /dev/null
+++ b/examples/with-changesets/apps/docs/.eslintrc.js
@@ -0,0 +1,4 @@
+module.exports = {
+ root: true,
+ extends: ["acme"],
+};
diff --git a/examples/with-changesets/apps/docs/next-env.d.ts b/examples/with-changesets/apps/docs/next-env.d.ts
new file mode 100644
index 0000000..4f11a03
--- /dev/null
+++ b/examples/with-changesets/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-changesets/apps/docs/next.config.js b/examples/with-changesets/apps/docs/next.config.js
new file mode 100644
index 0000000..da1bb77
--- /dev/null
+++ b/examples/with-changesets/apps/docs/next.config.js
@@ -0,0 +1,3 @@
+module.exports = {
+ reactStrictMode: true,
+};
diff --git a/examples/with-changesets/apps/docs/package.json b/examples/with-changesets/apps/docs/package.json
new file mode 100644
index 0000000..ad53e23
--- /dev/null
+++ b/examples/with-changesets/apps/docs/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "@acme/docs",
+ "version": "0.0.0",
+ "private": true,
+ "scripts": {
+ "build": "next build",
+ "start": "next start ",
+ "dev": "next dev -p 3002",
+ "lint": "next lint",
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next"
+ },
+ "dependencies": {
+ "@acme/core": "workspace:*",
+ "@acme/utils": "workspace:*",
+ "next": "latest",
+ "react": "^18.2.0",
+ "react-dom": "^18.2.0"
+ },
+ "devDependencies": {
+ "@acme/tsconfig": "workspace:*",
+ "@types/node": "^17.0.12",
+ "@types/react": "^18.0.22",
+ "@types/react-dom": "^18.0.7",
+ "eslint-config-acme": "workspace:*",
+ "typescript": "^4.5.4"
+ }
+}
diff --git a/examples/with-changesets/apps/docs/src/pages/index.tsx b/examples/with-changesets/apps/docs/src/pages/index.tsx
new file mode 100644
index 0000000..6c614dd
--- /dev/null
+++ b/examples/with-changesets/apps/docs/src/pages/index.tsx
@@ -0,0 +1,14 @@
+import { Button } from "@acme/core";
+import { useIsomorphicLayoutEffect } from "@acme/utils";
+
+export default function Docs() {
+ useIsomorphicLayoutEffect(() => {
+ console.log("Acme docs page");
+ }, []);
+ return (
+ <div>
+ <h1>Acme Documentation</h1>
+ <Button>Click me</Button>
+ </div>
+ );
+}
diff --git a/examples/with-changesets/apps/docs/tsconfig.json b/examples/with-changesets/apps/docs/tsconfig.json
new file mode 100644
index 0000000..5139129
--- /dev/null
+++ b/examples/with-changesets/apps/docs/tsconfig.json
@@ -0,0 +1,10 @@
+{
+ "exclude": ["node_modules"],
+ "extends": "@acme/tsconfig/nextjs.json",
+ "compilerOptions": {
+ "rootDir": "src",
+ "outDir": "dist",
+ "incremental": true
+ },
+ "include": ["src", "next-env.d.ts"]
+}