baraqex 1.0.50 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,31 @@
1
- {
2
- "name": "baraqex-basic-app",
3
- "version": "1.0.0",
4
- "type": "module",
5
- "description": "Basic Baraqex application",
6
- "main": "src/index.js",
7
- "scripts": {
8
- "dev": "node server.js",
9
- "build": "npm run build:client",
10
- "build:client": "echo 'Building client...'",
11
- "start": "node server.js",
12
- "test": "node test.js"
13
- },
14
- "dependencies": {
15
- "baraqex": "^1.0.0"
16
- },
17
- "devDependencies": {
18
- "typescript": "^5.0.0"
19
- }
20
- }
1
+ {
2
+ "name": "baraqex-basic-app",
3
+ "version": "1.0.0",
4
+ "description": "Basic Baraqex application with Tailwind CSS",
5
+ "type": "module",
6
+ "main": "src/main.tsx",
7
+ "scripts": {
8
+ "dev": "concurrently \"npm run css:watch\" \"npm run js:watch\" \"npm run serve\"",
9
+ "build": "npm run css:build && npm run js:build",
10
+ "preview": "npm run build && npm run serve",
11
+ "css:build": "tailwindcss -i src/main.css -o dist/main.css --minify",
12
+ "css:watch": "tailwindcss -i src/main.css -o dist/main.css --watch",
13
+ "js:build": "node esbuild.config.js",
14
+ "js:watch": "node esbuild.config.js --watch",
15
+ "serve": "node server.js"
16
+ },
17
+ "keywords": ["baraqex", "frontend-hamroun", "tailwind", "typescript"],
18
+ "author": "Baraqex Team",
19
+ "license": "MIT",
20
+ "devDependencies": {
21
+ "autoprefixer": "^10.4.14",
22
+ "concurrently": "^8.2.0",
23
+ "esbuild": "^0.19.0",
24
+ "postcss": "^8.4.27",
25
+ "tailwindcss": "^3.3.3",
26
+ "typescript": "^5.0.0"
27
+ },
28
+ "dependencies": {
29
+ "baraqex": "latest"
30
+ }
31
+ }
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -0,0 +1,77 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ /* Custom base styles */
6
+ @layer base {
7
+ * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ body {
12
+ margin: 0;
13
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
14
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
15
+ sans-serif;
16
+ -webkit-font-smoothing: antialiased;
17
+ -moz-osx-font-smoothing: grayscale;
18
+ }
19
+ }
20
+
21
+ /* Custom component styles */
22
+ @layer components {
23
+ .btn {
24
+ @apply px-4 py-2 rounded-md transition-colors font-medium inline-flex items-center justify-center cursor-pointer border-none outline-none;
25
+ }
26
+
27
+ .btn:focus {
28
+ @apply ring-2 ring-offset-2 ring-primary-500;
29
+ }
30
+
31
+ .btn-primary {
32
+ @apply bg-primary-500 hover:bg-primary-600 text-white;
33
+ }
34
+
35
+ .btn-secondary {
36
+ @apply bg-gray-500 hover:bg-gray-600 text-white;
37
+ }
38
+
39
+ .btn-danger {
40
+ @apply bg-red-500 hover:bg-red-600 text-white;
41
+ }
42
+
43
+ .card {
44
+ @apply bg-white rounded-lg shadow-lg p-6;
45
+ }
46
+
47
+ .input {
48
+ @apply px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 w-full;
49
+ }
50
+ }
51
+
52
+ /* Additional utility classes */
53
+ @layer utilities {
54
+ .text-primary-600 {
55
+ color: theme('colors.primary.600');
56
+ }
57
+
58
+ .bg-primary-500 {
59
+ background-color: theme('colors.primary.500');
60
+ }
61
+
62
+ .bg-primary-600 {
63
+ background-color: theme('colors.primary.600');
64
+ }
65
+
66
+ .hover\:bg-primary-600:hover {
67
+ background-color: theme('colors.primary.600');
68
+ }
69
+
70
+ .ring-primary-500 {
71
+ --tw-ring-color: theme('colors.primary.500');
72
+ }
73
+
74
+ .border-primary-500 {
75
+ border-color: theme('colors.primary.500');
76
+ }
77
+ }
@@ -0,0 +1,465 @@
1
+ import { jsx, render, useState, useEffect, useMemo, useRef, useErrorBoundary, createContext, useContext } from 'baraqex';
2
+ import './main.css';
3
+
4
+ // JSX type declarations
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ [elemName: string]: any;
9
+ }
10
+ }
11
+ }
12
+
13
+ // Create a theme context
14
+ const ThemeContext = createContext<'light' | 'dark'>('light');
15
+
16
+ // Simple Counter Component with Tailwind styles
17
+ function Counter() {
18
+ const [count, setCount] = useState(0);
19
+ const renderCount = useRef(0);
20
+
21
+ useEffect(() => {
22
+ renderCount.current += 1;
23
+ }, [count]);
24
+
25
+ const doubled = useMemo(() => count * 2, [count]);
26
+
27
+ return (
28
+ <div className="card max-w-sm mx-auto">
29
+ <h2 className="text-2xl font-bold text-gray-800 mb-4 text-center">
30
+ Counter Example
31
+ </h2>
32
+ <div className="text-center">
33
+ <div className="text-4xl font-bold text-primary-600 mb-6">
34
+ {count}
35
+ </div>
36
+ <div className="mb-4">
37
+ <p className="text-sm text-gray-600 mb-2">Doubled: {doubled}</p>
38
+ <p className="text-sm text-gray-600">Renders: {renderCount.current}</p>
39
+ </div>
40
+ <div className="space-x-2">
41
+ <button
42
+ onClick={() => setCount(count + 1)}
43
+ className="btn btn-primary"
44
+ >
45
+ Increment
46
+ </button>
47
+ <button
48
+ onClick={() => setCount(count - 1)}
49
+ className="btn btn-secondary"
50
+ >
51
+ Decrement
52
+ </button>
53
+ <button
54
+ onClick={() => setCount(0)}
55
+ className="btn btn-danger"
56
+ >
57
+ Reset
58
+ </button>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ );
63
+ }
64
+
65
+ // Todo Item Component
66
+ function TodoItem({ todo, onToggle, onDelete }: {
67
+ todo: { id: number; text: string; completed: boolean };
68
+ onToggle: (id: number) => void;
69
+ onDelete: (id: number) => void;
70
+ }) {
71
+ return (
72
+ <div className={`flex items-center justify-between p-3 rounded-md border transition-colors ${
73
+ todo.completed ? 'bg-green-50 border-green-200' : 'bg-gray-50 border-gray-200'
74
+ }`}>
75
+ <div className="flex items-center space-x-3">
76
+ <button
77
+ onClick={() => onToggle(todo.id)}
78
+ className={`w-5 h-5 rounded border-2 flex items-center justify-center transition-colors ${
79
+ todo.completed
80
+ ? 'bg-green-500 border-green-500 text-white'
81
+ : 'border-gray-300 hover:border-green-500'
82
+ }`}
83
+ >
84
+ {todo.completed && '✓'}
85
+ </button>
86
+ <span className={`transition-colors ${todo.completed ? 'line-through text-gray-500' : 'text-gray-800'}`}>
87
+ {todo.text}
88
+ </span>
89
+ </div>
90
+ <button
91
+ onClick={() => onDelete(todo.id)}
92
+ className="text-red-500 hover:text-red-700 px-2 py-1 rounded transition-colors"
93
+ >
94
+ Delete
95
+ </button>
96
+ </div>
97
+ );
98
+ }
99
+
100
+ // Todo List Component
101
+ function TodoList() {
102
+ const [todos, setTodos] = useState<{ id: number; text: string; completed: boolean }[]>([
103
+ { id: 1, text: 'Learn Baraqex Framework', completed: false },
104
+ { id: 2, text: 'Build something awesome', completed: false },
105
+ { id: 3, text: 'Deploy to production', completed: false }
106
+ ]);
107
+ const [newTodo, setNewTodo] = useState('');
108
+
109
+ const addTodo = () => {
110
+ if (newTodo.trim()) {
111
+ setTodos([...todos, {
112
+ id: Date.now(),
113
+ text: newTodo.trim(),
114
+ completed: false
115
+ }]);
116
+ setNewTodo('');
117
+ }
118
+ };
119
+
120
+ const toggleTodo = (id: number) => {
121
+ setTodos(todos.map((todo: { id: number; completed: any; }) =>
122
+ todo.id === id ? { ...todo, completed: !todo.completed } : todo
123
+ ));
124
+ };
125
+
126
+ const deleteTodo = (id: number) => {
127
+ setTodos(todos.filter((todo: { id: number; }) => todo.id !== id));
128
+ };
129
+
130
+ const completedCount = todos.filter((todo: { completed: any; }) => todo.completed).length;
131
+ const totalCount = todos.length;
132
+
133
+ return (
134
+ <div className="card max-w-md mx-auto">
135
+ <h2 className="text-2xl font-bold text-gray-800 mb-4 text-center">
136
+ Todo List
137
+ </h2>
138
+
139
+ <div className="mb-4">
140
+ <div className="flex space-x-2 mb-2">
141
+ <input
142
+ type="text"
143
+ value={newTodo}
144
+ onChange={(e: { target: { value: any; }; }) => setNewTodo(e.target.value)}
145
+ onKeyPress={(e: { key: string; }) => e.key === 'Enter' && addTodo()}
146
+ placeholder="Add a new todo..."
147
+ className="input flex-1"
148
+ />
149
+ <button
150
+ onClick={addTodo}
151
+ className="btn btn-primary"
152
+ >
153
+ Add
154
+ </button>
155
+ </div>
156
+ <div className="text-sm text-gray-600 text-center">
157
+ {completedCount} of {totalCount} completed
158
+ </div>
159
+ </div>
160
+
161
+ <div className="space-y-2">
162
+ {todos.map((todo: { id: Number; text?: string; completed?: boolean; }) => (
163
+ <TodoItem
164
+ key={todo.id}
165
+ todo={todo}
166
+ onToggle={toggleTodo}
167
+ onDelete={deleteTodo}
168
+ />
169
+ ))}
170
+ </div>
171
+
172
+ {todos.length === 0 && (
173
+ <p className="text-gray-500 text-center py-4">
174
+ No todos yet. Add one above!
175
+ </p>
176
+ )}
177
+ </div>
178
+ );
179
+ }
180
+
181
+ // Error boundary test component
182
+ function BuggyComponent() {
183
+ const [shouldError, setShouldError] = useState(false);
184
+
185
+ if (shouldError) {
186
+ throw new Error("Test error from BuggyComponent");
187
+ }
188
+
189
+ return (
190
+ <div className="card max-w-sm mx-auto">
191
+ <h3 className="text-lg font-semibold text-gray-800 mb-4 text-center">
192
+ Error Boundary Test
193
+ </h3>
194
+ <p className="text-sm text-gray-600 mb-4 text-center">
195
+ Click the button below to test error handling
196
+ </p>
197
+ <div className="text-center">
198
+ <button
199
+ onClick={() => setShouldError(true)}
200
+ className="btn btn-danger"
201
+ >
202
+ Trigger Error
203
+ </button>
204
+ </div>
205
+ </div>
206
+ );
207
+ }
208
+
209
+ // Context test component
210
+ function ContextConsumer() {
211
+ const theme = useContext(ThemeContext);
212
+
213
+ return (
214
+ <div className="card max-w-sm mx-auto">
215
+ <h3 className="text-lg font-semibold text-gray-800 mb-4 text-center">
216
+ Context API Test
217
+ </h3>
218
+ <div className={`p-4 rounded-md border text-center ${
219
+ theme === 'dark' ? 'border-gray-600 bg-gray-700 text-white' : 'border-gray-300 bg-gray-50'
220
+ }`}>
221
+ <p className="text-sm mb-2">Current theme: <strong>{theme}</strong></p>
222
+ <p className="text-xs text-gray-500">
223
+ Theme is provided by Context API
224
+ </p>
225
+ </div>
226
+ </div>
227
+ );
228
+ }
229
+
230
+ // Main App Component
231
+ function App() {
232
+ const [activeTab, setActiveTab] = useState('counter');
233
+ const [theme, setTheme] = useState<'light' | 'dark'>('light');
234
+ const [error, resetError] = useErrorBoundary();
235
+
236
+ useEffect(() => {
237
+ document.title = `Baraqex Demo - ${activeTab.charAt(0).toUpperCase() + activeTab.slice(1)}`;
238
+ }, [activeTab]);
239
+
240
+ if (error) {
241
+ return (
242
+ <div className="min-h-screen bg-gradient-to-br from-red-50 to-red-100 flex items-center justify-center">
243
+ <div className="card max-w-md mx-auto text-center">
244
+ <div className="text-6xl mb-4">🚨</div>
245
+ <h1 className="text-2xl font-bold text-red-600 mb-4">Oops! Something went wrong</h1>
246
+ <p className="text-gray-600 mb-4">
247
+ {error.message || 'An unexpected error occurred'}
248
+ </p>
249
+ <button
250
+ onClick={resetError}
251
+ className="btn btn-primary"
252
+ >
253
+ Try Again
254
+ </button>
255
+ </div>
256
+ </div>
257
+ );
258
+ }
259
+
260
+ return (
261
+ <ThemeContext.Provider value={theme}>
262
+ <div className={`min-h-screen transition-colors ${
263
+ theme === 'dark'
264
+ ? 'bg-gradient-to-br from-gray-900 to-gray-800'
265
+ : 'bg-gradient-to-br from-blue-50 to-indigo-100'
266
+ }`}>
267
+ <div className="container mx-auto px-4 py-8">
268
+
269
+ {/* Header with Logo */}
270
+ <header className="text-center mb-12">
271
+ <div className="flex items-center justify-center mb-6">
272
+ <img
273
+ src="/logo.png"
274
+ alt="Baraqex Logo"
275
+ className="w-16 h-16 mr-4 rounded-lg shadow-lg"
276
+ onError={(e: { target: { style: { display: string; }; nextElementSibling: { style: { display: string; }; }; }; }) => {
277
+ // Fallback to emoji if logo doesn't exist
278
+ e.target.style.display = 'none';
279
+ e.target.nextElementSibling.style.display = 'block';
280
+ }}
281
+ />
282
+ <div className="text-6xl" style={{display: 'none'}}>🚀</div>
283
+ <div>
284
+ <h1 className={`text-5xl font-bold mb-2 ${theme === 'dark' ? 'text-white' : 'text-gray-800'}`}>
285
+ Baraqex
286
+ </h1>
287
+ <p className={`text-xl ${theme === 'dark' ? 'text-gray-300' : 'text-gray-600'}`}>
288
+ Powered by Frontend Hamroun
289
+ </p>
290
+ </div>
291
+ </div>
292
+
293
+ {/* About Baraqex */}
294
+ <div className="card max-w-4xl mx-auto mb-8">
295
+ <h2 className="text-2xl font-bold text-gray-800 mb-6 text-center">
296
+ Welcome to Baraqex Framework! 🎉
297
+ </h2>
298
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-8 text-left">
299
+ <div>
300
+ <h3 className="text-lg font-semibold text-primary-600 mb-3">🚀 What is Baraqex?</h3>
301
+ <p className="text-gray-700 leading-relaxed mb-4">
302
+ Baraqex is a powerful, modern full-stack framework built on top of the Frontend Hamroun library.
303
+ It provides everything you need to build high-performance web applications with ease.
304
+ </p>
305
+ <p className="text-gray-700 leading-relaxed">
306
+ From simple SPAs to complex server-side rendered applications with WebAssembly integration,
307
+ Baraqex has you covered with a developer-friendly API and excellent performance.
308
+ </p>
309
+ </div>
310
+ <div>
311
+ <h3 className="text-lg font-semibold text-primary-600 mb-3">✨ Key Features</h3>
312
+ <ul className="space-y-2 text-gray-700">
313
+ <li className="flex items-center">
314
+ <span className="text-green-500 mr-2">✓</span>
315
+ Reactive state management with hooks
316
+ </li>
317
+ <li className="flex items-center">
318
+ <span className="text-green-500 mr-2">✓</span>
319
+ Server-side rendering (SSR) support
320
+ </li>
321
+ <li className="flex items-center">
322
+ <span className="text-green-500 mr-2">✓</span>
323
+ WebAssembly (WASM) integration
324
+ </li>
325
+ <li className="flex items-center">
326
+ <span className="text-green-500 mr-2">✓</span>
327
+ Built-in authentication & database support
328
+ </li>
329
+ <li className="flex items-center">
330
+ <span className="text-green-500 mr-2">✓</span>
331
+ TypeScript support out of the box
332
+ </li>
333
+ <li className="flex items-center">
334
+ <span className="text-green-500 mr-2">✓</span>
335
+ Production-ready with optimized builds
336
+ </li>
337
+ </ul>
338
+ </div>
339
+ </div>
340
+
341
+ <div className="mt-8 text-center">
342
+ <button
343
+ onClick={() => setTheme(theme === 'light' ? 'dark' : 'light')}
344
+ className={`btn ${theme === 'dark' ? 'bg-yellow-400 text-gray-900 hover:bg-yellow-300' : 'bg-gray-800 text-white hover:bg-gray-700'}`}
345
+ >
346
+ 🌙 Toggle {theme === 'light' ? 'Dark' : 'Light'} Mode
347
+ </button>
348
+ </div>
349
+ </div>
350
+ </header>
351
+
352
+ {/* Tab Navigation */}
353
+ <div className="flex justify-center mb-8">
354
+ <div className="bg-white rounded-lg shadow-sm p-1 flex space-x-1 overflow-x-auto">
355
+ {[
356
+ { id: 'counter', label: 'Counter', icon: '🔢' },
357
+ { id: 'todos', label: 'Todo List', icon: '✅' },
358
+ { id: 'error', label: 'Error Test', icon: '🚨' },
359
+ { id: 'context', label: 'Context', icon: '🔄' }
360
+ ].map(tab => (
361
+ <button
362
+ key={tab.id}
363
+ onClick={() => setActiveTab(tab.id)}
364
+ className={`px-4 py-2 rounded-md transition-colors whitespace-nowrap ${
365
+ activeTab === tab.id
366
+ ? 'bg-primary-500 text-white'
367
+ : 'text-gray-600 hover:text-gray-800 hover:bg-gray-100'
368
+ }`}
369
+ >
370
+ <span className="mr-2">{tab.icon}</span>
371
+ {tab.label}
372
+ </button>
373
+ ))}
374
+ </div>
375
+ </div>
376
+
377
+ {/* Tab Content */}
378
+ <div className="flex justify-center mb-12">
379
+ {activeTab === 'counter' && <Counter />}
380
+ {activeTab === 'todos' && <TodoList />}
381
+ {activeTab === 'error' && <BuggyComponent />}
382
+ {activeTab === 'context' && <ContextConsumer />}
383
+ </div>
384
+
385
+ {/* Footer */}
386
+ <footer className="text-center">
387
+ <div className="card max-w-4xl mx-auto">
388
+ <h3 className="text-xl font-semibold text-gray-800 mb-6">
389
+ 🎯 Framework Capabilities Demo
390
+ </h3>
391
+
392
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
393
+ <div className="text-center">
394
+ <div className="text-3xl mb-2">⚡</div>
395
+ <h4 className="font-semibold text-gray-800 mb-2">State Management</h4>
396
+ <p className="text-sm text-gray-600">
397
+ useState, useEffect, useMemo, and useRef hooks working seamlessly
398
+ </p>
399
+ </div>
400
+ <div className="text-center">
401
+ <div className="text-3xl mb-2">🎨</div>
402
+ <h4 className="font-semibold text-gray-800 mb-2">Tailwind CSS</h4>
403
+ <p className="text-sm text-gray-600">
404
+ Utility-first CSS framework integrated for rapid UI development
405
+ </p>
406
+ </div>
407
+ <div className="text-center">
408
+ <div className="text-3xl mb-2">🛡️</div>
409
+ <h4 className="font-semibold text-gray-800 mb-2">Error Boundaries</h4>
410
+ <p className="text-sm text-gray-600">
411
+ Graceful error handling with useErrorBoundary hook
412
+ </p>
413
+ </div>
414
+ <div className="text-center">
415
+ <div className="text-3xl mb-2">🔄</div>
416
+ <h4 className="font-semibold text-gray-800 mb-2">Context API</h4>
417
+ <p className="text-sm text-gray-600">
418
+ Share state across components with createContext and useContext
419
+ </p>
420
+ </div>
421
+ </div>
422
+
423
+ <div className="border-t pt-6">
424
+ <h4 className="font-semibold text-gray-800 mb-4">🚀 Ready to build something amazing?</h4>
425
+ <p className="text-gray-600 mb-4">
426
+ Edit <code className="bg-gray-100 px-2 py-1 rounded text-sm">src/main.tsx</code> to customize this app,
427
+ or create new components to expand your application.
428
+ </p>
429
+ <div className="flex justify-center space-x-4">
430
+ <a
431
+ href="https://www.baraqex.tech/docs"
432
+ target="_blank"
433
+ rel="noopener noreferrer"
434
+ className="text-primary-600 hover:text-primary-800 font-medium"
435
+ >
436
+ 📚 Documentation
437
+ </a>
438
+ <a
439
+ href="https://github.com/mohamedx2/baraqex"
440
+ target="_blank"
441
+ rel="noopener noreferrer"
442
+ className="text-primary-600 hover:text-primary-800 font-medium"
443
+ >
444
+ 🐙 GitHub
445
+ </a>
446
+ <a
447
+ href="https://www.baraqex.tech/examples"
448
+ target="_blank"
449
+ rel="noopener noreferrer"
450
+ className="text-primary-600 hover:text-primary-800 font-medium"
451
+ >
452
+ 🎯 Examples
453
+ </a>
454
+ </div>
455
+ </div>
456
+ </div>
457
+ </footer>
458
+ </div>
459
+ </div>
460
+ </ThemeContext.Provider>
461
+ );
462
+ }
463
+
464
+ // Mount the app
465
+ render(<App />, document.getElementById('root'));
@@ -0,0 +1,38 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ content: [
4
+ "./index.html",
5
+ "./src/**/*.{js,ts,jsx,tsx}",
6
+ ],
7
+ theme: {
8
+ extend: {
9
+ colors: {
10
+ primary: {
11
+ 50: '#eff6ff',
12
+ 100: '#dbeafe',
13
+ 200: '#bfdbfe',
14
+ 300: '#93c5fd',
15
+ 400: '#60a5fa',
16
+ 500: '#3b82f6',
17
+ 600: '#2563eb',
18
+ 700: '#1d4ed8',
19
+ 800: '#1e40af',
20
+ 900: '#1e3a8a',
21
+ 950: '#172554',
22
+ },
23
+ },
24
+ container: {
25
+ center: true,
26
+ padding: '1rem',
27
+ screens: {
28
+ sm: '640px',
29
+ md: '768px',
30
+ lg: '1024px',
31
+ xl: '1280px',
32
+ '2xl': '1400px',
33
+ },
34
+ },
35
+ },
36
+ },
37
+ plugins: [],
38
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "ESNext",
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "jsx": "preserve",
7
+ "moduleResolution": "bundler",
8
+ "esModuleInterop": true,
9
+ "strict": true,
10
+ "skipLibCheck": true
11
+ },
12
+ "include": ["src"]
13
+ }
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'vite';
2
+
3
+ export default defineConfig({
4
+ esbuild: {
5
+ jsxFactory: 'jsx',
6
+ jsxFragment: 'Fragment'
7
+ }
8
+ });
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Baraqex Basic App</title>
7
- <link rel="stylesheet" href="/styles.css">
8
- </head>
9
- <body>
10
- <div id="app-root"></div>
11
- <script src="/src/App.jsx" type="module"></script>
12
- </body>
13
- </html>