From a37bb85187631efcfe86c57dc3aa39bbeb154baf Mon Sep 17 00:00:00 2001 From: Dysk0 <javiroldan98@gmail.com> Date: Tue, 16 Apr 2024 04:24:01 +0200 Subject: [PATCH] Solved .json problems with VCS --- .vscode/launch.json | 20 ++++++++++++++++++++ next-env.d.ts | 5 +++++ package.json | 7 ++++++- src/pages/index.tsx | 2 +- tsconfig.json | 21 ++++++++++++++++----- 5 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 next-env.d.ts diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..51af5e1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-node", + "request": "launch", + "name": "Next.js: Node", + "runtimeExecutable": "npm", + "runtimeArgs": ["run", "dev"], + "port": 9229, + "restart": true, + "console": "integratedTerminal", + "env": { + "NODE_OPTIONS": "--inspect" + }, + "cwd": "${workspaceFolder}" + } + ] + } + \ No newline at end of file diff --git a/next-env.d.ts b/next-env.d.ts new file mode 100644 index 0000000..4f11a03 --- /dev/null +++ b/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/package.json b/package.json index 9529953..703c9e4 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,10 @@ "next": "^14.2.1", "react": "^18.2.0", "react-dom": "^18.2.0" + }, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start" } -} +} \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a8058e1..da9f8f9 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -17,7 +17,7 @@ const Home: React.FC = () => { </h1> <p className={styles.description}> Yay wassup maniggis! - <code className={styles.code}>src/pages/index.tsx</code> + <code className={styles.code}>src/pages/index.tsx This is code!!</code> </p> </main> <footer className={styles.footer}> diff --git a/tsconfig.json b/tsconfig.json index 5fd1fa3..1d1b2a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es2016", - "lib": ["dom", "dom.iterable", "es2016"], + "lib": [ + "dom", + "dom.iterable", + "es2016" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -12,8 +16,15 @@ "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve" + "jsx": "preserve", + "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] -} \ No newline at end of file + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx" + ], + "exclude": [ + "node_modules" + ] +} -- GitLab