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.
- package/package.json +1 -1
- package/template/.claude/settings.local.json +12 -0
- package/template/.eslintignore +2 -0
- package/template/.eslintrc.json +20 -0
- package/template/README.md +37 -0
- package/template/package-lock.json +4421 -588
- package/template/package.json +15 -4
- package/template/src/App.jsx +7 -7
- package/template/src/main.jsx +3 -3
- package/template/src/pages/Home/index.jsx +10 -12
- package/template/vite.config.js +2 -1
package/template/package.json
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pagebuilder-react-template",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
package/template/src/App.jsx
CHANGED
|
@@ -4,13 +4,13 @@ import Home from './pages/Home/index'
|
|
|
4
4
|
|
|
5
5
|
function App() {
|
|
6
6
|
return (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
package/template/src/main.jsx
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { Link } from 'react-router'
|
|
2
|
-
|
|
3
1
|
export default function Home() {
|
|
4
2
|
return (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
}
|
package/template/vite.config.js
CHANGED
|
@@ -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'),
|