From 1bad3ddd9dcf0a8a735d4fcde38f835a1fc6603d Mon Sep 17 00:00:00 2001 From: Lukas Davidovic Date: Sat, 15 Apr 2023 14:37:12 +0200 Subject: [PATCH] init --- .eslintrc.json | 3 +++ .gitignore | 35 +++++++++++++++++++++++++++++++++++ next.config.js | 7 +++++++ package.json | 24 ++++++++++++++++++++++++ pages/_app.tsx | 5 +++++ pages/index.tsx | 21 +++++++++++++++++++++ tsconfig.json | 28 ++++++++++++++++++++++++++++ 7 files changed, 123 insertions(+) create mode 100644 .eslintrc.json create mode 100644 .gitignore create mode 100644 next.config.js create mode 100644 package.json create mode 100644 pages/_app.tsx create mode 100644 pages/index.tsx create mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..0e81f9b --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5bbb991 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts \ No newline at end of file diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..9dba35e --- /dev/null +++ b/next.config.js @@ -0,0 +1,7 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, + swcMinify: true, +} + +module.exports = nextConfig \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..396c847 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "infohliadka", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "next": "13.2.4", + "react": "17.0.2", + "react-dom": "17.0.2" + }, + "devDependencies": { + "@types/node": "18.15.5", + "@types/react": "17.0.53", + "@types/react-dom": "17.0.19", + "eslint": "8.36.0", + "eslint-config-next": "13.2.4", + "typescript": "4.9.4" + } +} \ No newline at end of file diff --git a/pages/_app.tsx b/pages/_app.tsx new file mode 100644 index 0000000..82bd51c --- /dev/null +++ b/pages/_app.tsx @@ -0,0 +1,5 @@ +import type { AppProps } from 'next/app' + +export default function App({ Component, pageProps }: AppProps) { + return +} \ No newline at end of file diff --git a/pages/index.tsx b/pages/index.tsx new file mode 100644 index 0000000..51a2908 --- /dev/null +++ b/pages/index.tsx @@ -0,0 +1,21 @@ +import type { NextPage } from 'next' +import Head from 'next/head' + +const Home: NextPage = () => { + return ( +
+ + Infohliadka + + + + +
+

Infohliadka

+

Vitajte na našej stránke!

+
+
+ ) +} + +export default Home \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..b65b817 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "es6"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} \ No newline at end of file