From 04ac2eeb0da8e39fd3e746db60119cdaa40738ab Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Wed, 1 May 2024 11:08:21 +0500 Subject: [PATCH] Initial commit --- .gitignore | 2 ++ index.html | 26 ++++++++++++++++++++++++++ package.json | 28 ++++++++++++++++++++++++++++ src/app.jsx | 3 +++ styles.css | 3 +++ tailwind.config.js | 8 ++++++++ vite.config.js | 7 +++++++ 7 files changed, 77 insertions(+) create mode 100644 .gitignore create mode 100644 index.html create mode 100644 package.json create mode 100644 src/app.jsx create mode 100644 styles.css create mode 100644 tailwind.config.js create mode 100644 vite.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b947077 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +dist/ diff --git a/index.html b/index.html new file mode 100644 index 0000000..4e4db53 --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + + + + + Document + + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..04b54de --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "type": "module", + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "autoprefixer": "^10.4.19", + "postcss": "^8.4.38", + "prettier": "^3.3.2", + "prettier-plugin-css-order": "^2.1.2", + "prettier-plugin-tailwindcss": "^0.6.5", + "tailwindcss": "^3.4.4", + "vite": "^5.3.1" + }, + "prettier": { + "plugins": [ + "prettier-plugin-css-order", + "prettier-plugin-tailwindcss" + ] + }, + "postcss": { + "plugins": { + "tailwindcss": {}, + "autoprefixer": {} + } + } +} diff --git a/src/app.jsx b/src/app.jsx new file mode 100644 index 0000000..040a07e --- /dev/null +++ b/src/app.jsx @@ -0,0 +1,3 @@ +export default () => ( +

Using React and Tailwind

+); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/styles.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..5908589 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,8 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: ["./index.html", "./src/**/*.jsx"], + theme: { + extend: {}, + }, + plugins: [], +}; diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..4cece00 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + esbuild: { + jsxInject: `import React from 'react'`, + }, +});