ikramhussainsiyam-create-my-project 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/cli.js +59 -0
  4. package/package.json +31 -0
  5. package/templates/ViteJS/JavaScript/README.md +8 -0
  6. package/templates/ViteJS/JavaScript/eslint.config.js +44 -0
  7. package/templates/ViteJS/JavaScript/index.html +13 -0
  8. package/templates/ViteJS/JavaScript/package-lock.json +5648 -0
  9. package/templates/ViteJS/JavaScript/package.json +33 -0
  10. package/templates/ViteJS/JavaScript/postcss.config.js +6 -0
  11. package/templates/ViteJS/JavaScript/public/vite.svg +1 -0
  12. package/templates/ViteJS/JavaScript/src/App.jsx +3 -0
  13. package/templates/ViteJS/JavaScript/src/components/Button.jsx +5 -0
  14. package/templates/ViteJS/JavaScript/src/index.css +25 -0
  15. package/templates/ViteJS/JavaScript/src/main.jsx +10 -0
  16. package/templates/ViteJS/JavaScript/tailwind.config.js +13 -0
  17. package/templates/ViteJS/JavaScript/vite.config.js +7 -0
  18. package/templates/ViteJS/TypeScript/README.md +50 -0
  19. package/templates/ViteJS/TypeScript/eslint.config.js +35 -0
  20. package/templates/ViteJS/TypeScript/index.html +13 -0
  21. package/templates/ViteJS/TypeScript/package-lock.json +4254 -0
  22. package/templates/ViteJS/TypeScript/package.json +33 -0
  23. package/templates/ViteJS/TypeScript/postcss.config.js +6 -0
  24. package/templates/ViteJS/TypeScript/public/vite.svg +1 -0
  25. package/templates/ViteJS/TypeScript/src/App.tsx +5 -0
  26. package/templates/ViteJS/TypeScript/src/components/Button.tsx +3 -0
  27. package/templates/ViteJS/TypeScript/src/index.css +25 -0
  28. package/templates/ViteJS/TypeScript/src/main.tsx +10 -0
  29. package/templates/ViteJS/TypeScript/src/vite-env.d.ts +1 -0
  30. package/templates/ViteJS/TypeScript/tailwind.config.js +13 -0
  31. package/templates/ViteJS/TypeScript/tsconfig.app.json +25 -0
  32. package/templates/ViteJS/TypeScript/tsconfig.json +7 -0
  33. package/templates/ViteJS/TypeScript/tsconfig.node.json +23 -0
  34. package/templates/ViteJS/TypeScript/vite.config.ts +7 -0
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "javascript",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "react": "^18.3.1",
14
+ "react-dom": "^18.3.1",
15
+ "use-immer": "^0.10.0"
16
+ },
17
+ "devDependencies": {
18
+ "@eslint/js": "^9.11.1",
19
+ "@types/react": "^18.3.10",
20
+ "@types/react-dom": "^18.3.0",
21
+ "@vitejs/plugin-react": "^4.3.2",
22
+ "autoprefixer": "^10.4.20",
23
+ "eslint": "^9.11.1",
24
+ "eslint-plugin-react": "^7.37.0",
25
+ "eslint-plugin-react-hooks": "^5.1.0-rc.0",
26
+ "eslint-plugin-react-refresh": "^0.4.12",
27
+
28
+ "globals": "^15.9.0",
29
+ "postcss": "^8.4.47",
30
+ "tailwindcss": "^3.4.14",
31
+ "vite": "^5.4.8"
32
+ }
33
+ }
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,3 @@
1
+ export default function App() {
2
+ return <div>App</div>;
3
+ }
@@ -0,0 +1,5 @@
1
+ export default function Button() {
2
+ return (
3
+ <div>Button</div>
4
+ )
5
+ }
@@ -0,0 +1,25 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @layer base {
6
+ body {
7
+ @apply font-recursive_sans bg-white h-[200vh];
8
+ }
9
+
10
+ /* scroll bar styling */
11
+ ::-webkit-scrollbar {
12
+ width: 12px;
13
+ height: 12px;
14
+ }
15
+ ::-webkit-scrollbar-thumb {
16
+ background: #e2e2e2;
17
+ border-radius: 10px;
18
+ }
19
+ }
20
+
21
+ @layer components {
22
+ .btn {
23
+ @apply px-2 py-1 border rounded hover:bg-zinc-100 active:bg-white active:scale-95;
24
+ }
25
+ }
@@ -0,0 +1,10 @@
1
+ import { StrictMode } from 'react'
2
+ import { createRoot } from 'react-dom/client'
3
+ import App from './App.jsx'
4
+ import './index.css'
5
+
6
+ createRoot(document.getElementById('root')).render(
7
+ <StrictMode>
8
+ <App />
9
+ </StrictMode>,
10
+ )
@@ -0,0 +1,13 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
4
+ theme: {
5
+ extend: {
6
+ fontFamily: {
7
+ inter: ["Inter", "Sans serif"],
8
+ recursive_sans: ["Recursive Sans Casual", "Monospace"],
9
+ },
10
+ },
11
+ },
12
+ plugins: [],
13
+ };
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ })
@@ -0,0 +1,50 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default tseslint.config({
18
+ languageOptions: {
19
+ // other options...
20
+ parserOptions: {
21
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
+ tsconfigRootDir: import.meta.dirname,
23
+ },
24
+ },
25
+ })
26
+ ```
27
+
28
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
+
32
+ ```js
33
+ // eslint.config.js
34
+ import react from 'eslint-plugin-react'
35
+
36
+ export default tseslint.config({
37
+ // Set the react version
38
+ settings: { react: { version: '18.3' } },
39
+ plugins: {
40
+ // Add the react plugin
41
+ react,
42
+ },
43
+ rules: {
44
+ // other rules...
45
+ // Enable its recommended rules
46
+ ...react.configs.recommended.rules,
47
+ ...react.configs['jsx-runtime'].rules,
48
+ },
49
+ })
50
+ ```
@@ -0,0 +1,35 @@
1
+ import js from "@eslint/js";
2
+ import reactHooks from "eslint-plugin-react-hooks";
3
+ import reactRefresh from "eslint-plugin-react-refresh";
4
+ import globals from "globals";
5
+ import tseslint from "typescript-eslint";
6
+
7
+ export default tseslint.config(
8
+ { ignores: ["dist"] },
9
+ {
10
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
11
+ files: ["**/*.{ts,tsx}"],
12
+ languageOptions: {
13
+ ecmaVersion: 2020,
14
+ globals: globals.browser,
15
+ },
16
+ plugins: {
17
+ "react-hooks": reactHooks,
18
+ "react-refresh": reactRefresh,
19
+ },
20
+ rules: {
21
+ ...reactHooks.configs.recommended.rules,
22
+ "react/jsx-no-target-blank": "off",
23
+ "no-unused-vars": [
24
+ "error",
25
+ { vars: "all", args: "after-used", ignoreRestSiblings: true },
26
+ ],
27
+ "react/prop-types": "off",
28
+ "react/no-unescaped-entities": "off",
29
+ "react-refresh/only-export-components": [
30
+ "warn",
31
+ { allowConstantExport: true },
32
+ ],
33
+ },
34
+ }
35
+ );
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Your Project Title | Vite + React + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>