From 00458d8eb58ae0faba4349e240ef531926bb87a0 Mon Sep 17 00:00:00 2001 From: Dhananjay-JSR <47073516+Dhananjay-JSR@users.noreply.github.com> Date: Mon, 28 Feb 2022 01:48:19 +0530 Subject: [PATCH] Added Vite Starter Template for Next UI --- examples/vite-react-typescript/.gitignore | 24 ++++++++++ examples/vite-react-typescript/README.md | 40 +++++++++++++++++ examples/vite-react-typescript/index.html | 13 ++++++ examples/vite-react-typescript/package.json | 22 +++++++++ examples/vite-react-typescript/src/App.css | 42 ++++++++++++++++++ examples/vite-react-typescript/src/App.tsx | 36 +++++++++++++++ examples/vite-react-typescript/src/index.css | 13 ++++++ examples/vite-react-typescript/src/logo.png | Bin 0 -> 6260 bytes examples/vite-react-typescript/src/main.tsx | 11 +++++ .../vite-react-typescript/src/vite-env.d.ts | 1 + examples/vite-react-typescript/tsconfig.json | 21 +++++++++ .../vite-react-typescript/tsconfig.node.json | 8 ++++ examples/vite-react-typescript/vite.config.ts | 7 +++ 13 files changed, 238 insertions(+) create mode 100644 examples/vite-react-typescript/.gitignore create mode 100644 examples/vite-react-typescript/README.md create mode 100644 examples/vite-react-typescript/index.html create mode 100644 examples/vite-react-typescript/package.json create mode 100644 examples/vite-react-typescript/src/App.css create mode 100644 examples/vite-react-typescript/src/App.tsx create mode 100644 examples/vite-react-typescript/src/index.css create mode 100644 examples/vite-react-typescript/src/logo.png create mode 100644 examples/vite-react-typescript/src/main.tsx create mode 100644 examples/vite-react-typescript/src/vite-env.d.ts create mode 100644 examples/vite-react-typescript/tsconfig.json create mode 100644 examples/vite-react-typescript/tsconfig.node.json create mode 100644 examples/vite-react-typescript/vite.config.ts diff --git a/examples/vite-react-typescript/.gitignore b/examples/vite-react-typescript/.gitignore new file mode 100644 index 000000000..a547bf36d --- /dev/null +++ b/examples/vite-react-typescript/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/examples/vite-react-typescript/README.md b/examples/vite-react-typescript/README.md new file mode 100644 index 000000000..4ed87e4a8 --- /dev/null +++ b/examples/vite-react-typescript/README.md @@ -0,0 +1,40 @@ +This is a [Vite React TypeScript](https://reactjs.org/) project bootstrapped with [`create vite`](https://stackblitz.com/edit/vitejs-vite-9rgerc?file=index.html&terminal=dev). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +You can start editing the page by modifying `src/App.tsx`. The page auto-updates as you edit the file. + + + +## Learn More + +To learn more about React.js, take a look at the following resources: + +- [React.js Documentation](https://reactjs.org/docs/getting-started.html) - learn about React.js features and API. +- [Learn Vite](https://vitejs.dev/guide/) - Next Generation Frontend Tooling. +- [Learn Next UI](https://nextui.org/) - Beautiful, fast and modern React UI library. + +You can check out [the Next UI GitHub repository](https://github.com/nextui-org/nextui) - your feedback and contributions are welcome! + +## Creating Production Build + +Run + +```bash +npm run build +``` + +To Serve the Production App Locally + +```bash +npm install -g serve +serve -s dist +``` \ No newline at end of file diff --git a/examples/vite-react-typescript/index.html b/examples/vite-react-typescript/index.html new file mode 100644 index 000000000..1ecd8d83c --- /dev/null +++ b/examples/vite-react-typescript/index.html @@ -0,0 +1,13 @@ + + +
+ + + +Hello Vite + NextUI!
+ +
+
+ Edit App.tsx and save to test HMR updates.
+
+ Learn React + {' | '} + Vite Docs + {' | '} + NextUI Docs +
+