create-comate-pagebuilder 1.0.13 → 1.0.15

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,18 +1,28 @@
1
1
  {
2
2
  "name": "pagebuilder-react-template",
3
- "version": "1.0.13",
4
- "type": "module",
3
+ "version": "1.0.15",
5
4
  "scripts": {
6
5
  "dev": "vite",
7
6
  "build": "vite build",
8
- "preview": "vite preview"
7
+ "preview": "vite preview",
8
+ "lint": "eslint . --ext .js,.jsx",
9
+ "lint:fix": "eslint . --ext .js,.jsx --fix"
9
10
  },
10
11
  "overrides": {
11
12
  "react": "^19.2.0",
12
13
  "react-dom": "^19.2.0"
13
14
  },
14
15
  "dependencies": {
16
+ "@babel/core": "^7.27.1",
17
+ "@babel/eslint-parser": "^7.27.1",
18
+ "@babel/preset-react": "^7.27.1",
19
+ "@ecomfe/eslint-config": "^8.0.0",
20
+ "@ecomfe/stylelint-config": "^1.1.2",
15
21
  "clsx": "^2.1.0",
22
+ "eslint": "^8.57.1",
23
+ "eslint-plugin-babel": "^5.3.1",
24
+ "eslint-plugin-react": "^7.37.5",
25
+ "eslint-plugin-react-hooks": "^4.6.2",
16
26
  "framer-motion": "^12.23.24",
17
27
  "lucide-react": "^0.555.0",
18
28
  "react": "^19.2.0",
@@ -26,7 +36,8 @@
26
36
  "autoprefixer": "^10.4.17",
27
37
  "postcss": "^8.4.35",
28
38
  "tailwindcss": "^3.4.1",
29
- "vite": "^5.1.4"
39
+ "vite": "^5.1.4",
40
+ "vite-plugin-singlefile": "^2.3.0"
30
41
  },
31
42
  "optionalDependencies": {
32
43
  "animate.css": "^4.1.1",
@@ -4,13 +4,13 @@ import Home from './pages/Home/index'
4
4
 
5
5
  function App() {
6
6
  return (
7
- <div className="min-h-screen">
8
- <Router>
9
- <Routes>
10
- <Route path="/" element={<Home />} />
11
- </Routes>
12
- </Router>
13
- </div>
7
+ <div className="min-h-screen">
8
+ <Router>
9
+ <Routes>
10
+ <Route path="/" element={<Home />} />
11
+ </Routes>
12
+ </Router>
13
+ </div>
14
14
  )
15
15
  }
16
16
 
@@ -4,7 +4,7 @@ import App from './App.jsx'
4
4
  import './index.css'
5
5
 
6
6
  ReactDOM.createRoot(document.getElementById('root')).render(
7
- <React.StrictMode>
8
- <App />
9
- </React.StrictMode>,
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>
10
10
  )
@@ -1,16 +1,14 @@
1
- import { Link } from 'react-router'
2
-
3
1
  export default function Home() {
4
2
  return (
5
- <main className="min-h-screen flex items-center justify-center px-6 py-20">
6
- <div className="max-w-4xl mx-auto text-center">
7
- <h1 className="text-6xl font-bold mb-6">
8
- Welcome
9
- </h1>
10
- <p className="text-xl">
11
- Start building your application here
12
- </p>
13
- </div>
14
- </main>
3
+ <main className="min-h-screen flex items-center justify-center px-6 py-20">
4
+ <div className="max-w-4xl mx-auto text-center">
5
+ <h1 className="text-6xl font-bold mb-6">
6
+ Welcome
7
+ </h1>
8
+ <p className="text-xl">
9
+ Start building your application here
10
+ </p>
11
+ </div>
12
+ </main>
15
13
  )
16
14
  }
@@ -1,9 +1,10 @@
1
1
  import { defineConfig } from 'vite'
2
2
  import react from '@vitejs/plugin-react'
3
+ import { viteSingleFile } from 'vite-plugin-singlefile'
3
4
  import path from 'path'
4
5
 
5
6
  export default defineConfig({
6
- plugins: [react()],
7
+ plugins: [react(), viteSingleFile()],
7
8
  resolve: {
8
9
  alias: {
9
10
  '@': path.resolve(__dirname, './src'),