bertui 0.1.6 → 0.1.8
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/LICENSE +20 -20
- package/README.md +1 -1
- package/bin/bertui.js +7 -7
- package/index.js +35 -35
- package/package.json +5 -5
- package/src/build/css-builder.js +83 -83
- package/src/build.js +122 -122
- package/src/cli.js +65 -65
- package/src/client/compiler.js +218 -225
- package/src/config/defaultConfig.js +15 -15
- package/src/config/loadConfig.js +32 -32
- package/src/dev.js +22 -22
- package/src/logger/logger.js +17 -17
- package/src/logger/notes.md +19 -19
- package/src/router/{router.js → Router.js} +128 -128
- package/src/server/dev-server.js +262 -272
- package/src/styles/bertui.css +209 -209
package/src/cli.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
// src/cli.js
|
|
2
|
-
import { startDev } from './dev.js';
|
|
3
|
-
import { buildProduction } from './build.js';
|
|
4
|
-
import logger from './logger/logger.js';
|
|
5
|
-
|
|
6
|
-
export function program() {
|
|
7
|
-
const args = process.argv.slice(2);
|
|
8
|
-
const command = args[0] || 'dev';
|
|
9
|
-
|
|
10
|
-
switch (command) {
|
|
11
|
-
case 'dev':
|
|
12
|
-
const devPort = getArg('--port', '-p') || 3000;
|
|
13
|
-
startDev({
|
|
14
|
-
port: parseInt(devPort),
|
|
15
|
-
root: process.cwd()
|
|
16
|
-
});
|
|
17
|
-
break;
|
|
18
|
-
|
|
19
|
-
case 'build':
|
|
20
|
-
buildProduction({
|
|
21
|
-
root: process.cwd()
|
|
22
|
-
});
|
|
23
|
-
break;
|
|
24
|
-
|
|
25
|
-
case '--version':
|
|
26
|
-
case '-v':
|
|
27
|
-
console.log('bertui v0.1.0');
|
|
28
|
-
break;
|
|
29
|
-
|
|
30
|
-
case '--help':
|
|
31
|
-
case '-h':
|
|
32
|
-
showHelp();
|
|
33
|
-
break;
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
logger.error(`Unknown command: ${command}`);
|
|
37
|
-
showHelp();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function getArg(longForm, shortForm) {
|
|
42
|
-
const args = process.argv.slice(2);
|
|
43
|
-
const longIndex = args.indexOf(longForm);
|
|
44
|
-
const shortIndex = args.indexOf(shortForm);
|
|
45
|
-
const index = longIndex !== -1 ? longIndex : shortIndex;
|
|
46
|
-
return index !== -1 && args[index + 1] ? args[index + 1] : null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function showHelp() {
|
|
50
|
-
logger.bigLog('BERTUI CLI', { color: 'blue' });
|
|
51
|
-
console.log(`
|
|
52
|
-
Commands:
|
|
53
|
-
bertui dev Start development server
|
|
54
|
-
bertui build Build for production
|
|
55
|
-
bertui --version Show version
|
|
56
|
-
bertui --help Show help
|
|
57
|
-
|
|
58
|
-
Options:
|
|
59
|
-
--port, -p <number> Port for dev server (default: 3000)
|
|
60
|
-
|
|
61
|
-
Examples:
|
|
62
|
-
bertui dev
|
|
63
|
-
bertui dev --port 8080
|
|
64
|
-
bertui build
|
|
65
|
-
`);
|
|
1
|
+
// src/cli.js
|
|
2
|
+
import { startDev } from './dev.js';
|
|
3
|
+
import { buildProduction } from './build.js';
|
|
4
|
+
import logger from './logger/logger.js';
|
|
5
|
+
|
|
6
|
+
export function program() {
|
|
7
|
+
const args = process.argv.slice(2);
|
|
8
|
+
const command = args[0] || 'dev';
|
|
9
|
+
|
|
10
|
+
switch (command) {
|
|
11
|
+
case 'dev':
|
|
12
|
+
const devPort = getArg('--port', '-p') || 3000;
|
|
13
|
+
startDev({
|
|
14
|
+
port: parseInt(devPort),
|
|
15
|
+
root: process.cwd()
|
|
16
|
+
});
|
|
17
|
+
break;
|
|
18
|
+
|
|
19
|
+
case 'build':
|
|
20
|
+
buildProduction({
|
|
21
|
+
root: process.cwd()
|
|
22
|
+
});
|
|
23
|
+
break;
|
|
24
|
+
|
|
25
|
+
case '--version':
|
|
26
|
+
case '-v':
|
|
27
|
+
console.log('bertui v0.1.0');
|
|
28
|
+
break;
|
|
29
|
+
|
|
30
|
+
case '--help':
|
|
31
|
+
case '-h':
|
|
32
|
+
showHelp();
|
|
33
|
+
break;
|
|
34
|
+
|
|
35
|
+
default:
|
|
36
|
+
logger.error(`Unknown command: ${command}`);
|
|
37
|
+
showHelp();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function getArg(longForm, shortForm) {
|
|
42
|
+
const args = process.argv.slice(2);
|
|
43
|
+
const longIndex = args.indexOf(longForm);
|
|
44
|
+
const shortIndex = args.indexOf(shortForm);
|
|
45
|
+
const index = longIndex !== -1 ? longIndex : shortIndex;
|
|
46
|
+
return index !== -1 && args[index + 1] ? args[index + 1] : null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function showHelp() {
|
|
50
|
+
logger.bigLog('BERTUI CLI', { color: 'blue' });
|
|
51
|
+
console.log(`
|
|
52
|
+
Commands:
|
|
53
|
+
bertui dev Start development server
|
|
54
|
+
bertui build Build for production
|
|
55
|
+
bertui --version Show version
|
|
56
|
+
bertui --help Show help
|
|
57
|
+
|
|
58
|
+
Options:
|
|
59
|
+
--port, -p <number> Port for dev server (default: 3000)
|
|
60
|
+
|
|
61
|
+
Examples:
|
|
62
|
+
bertui dev
|
|
63
|
+
bertui dev --port 8080
|
|
64
|
+
bertui build
|
|
65
|
+
`);
|
|
66
66
|
}
|
package/src/client/compiler.js
CHANGED
|
@@ -1,226 +1,219 @@
|
|
|
1
|
-
// src/client/compiler.js
|
|
2
|
-
import { existsSync, mkdirSync, readdirSync, statSync } from 'fs';
|
|
3
|
-
import { join, extname, relative
|
|
4
|
-
import logger from '../logger/logger.js';
|
|
5
|
-
|
|
6
|
-
export async function compileProject(root) {
|
|
7
|
-
logger.bigLog('COMPILING PROJECT', { color: 'blue' });
|
|
8
|
-
|
|
9
|
-
const srcDir = join(root, 'src');
|
|
10
|
-
const pagesDir = join(srcDir, 'pages');
|
|
11
|
-
const outDir = join(root, '.bertui', 'compiled');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
routes
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
async function
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
await Bun.write(outPath, compiled);
|
|
221
|
-
logger.debug(`Compiled: ${relativePath} → ${outFilename}`);
|
|
222
|
-
} catch (error) {
|
|
223
|
-
logger.error(`Failed to compile ${relativePath}: ${error.message}`);
|
|
224
|
-
throw error;
|
|
225
|
-
}
|
|
1
|
+
// src/client/compiler.js
|
|
2
|
+
import { existsSync, mkdirSync, readdirSync, statSync } from 'fs';
|
|
3
|
+
import { join, extname, relative } from 'path';
|
|
4
|
+
import logger from '../logger/logger.js';
|
|
5
|
+
|
|
6
|
+
export async function compileProject(root) {
|
|
7
|
+
logger.bigLog('COMPILING PROJECT', { color: 'blue' });
|
|
8
|
+
|
|
9
|
+
const srcDir = join(root, 'src');
|
|
10
|
+
const pagesDir = join(srcDir, 'pages');
|
|
11
|
+
const outDir = join(root, '.bertui', 'compiled');
|
|
12
|
+
|
|
13
|
+
if (!existsSync(srcDir)) {
|
|
14
|
+
logger.error('src/ directory not found!');
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (!existsSync(outDir)) {
|
|
19
|
+
mkdirSync(outDir, { recursive: true });
|
|
20
|
+
logger.info('Created .bertui/compiled/');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
let routes = [];
|
|
24
|
+
if (existsSync(pagesDir)) {
|
|
25
|
+
routes = await discoverRoutes(pagesDir);
|
|
26
|
+
logger.info(`Discovered ${routes.length} routes`);
|
|
27
|
+
|
|
28
|
+
if (routes.length > 0) {
|
|
29
|
+
logger.bigLog('ROUTES DISCOVERED', { color: 'blue' });
|
|
30
|
+
logger.table(routes.map((r, i) => ({
|
|
31
|
+
'': i,
|
|
32
|
+
route: r.route,
|
|
33
|
+
file: r.file,
|
|
34
|
+
type: r.type
|
|
35
|
+
})));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const startTime = Date.now();
|
|
40
|
+
const stats = await compileDirectory(srcDir, outDir, root);
|
|
41
|
+
const duration = Date.now() - startTime;
|
|
42
|
+
|
|
43
|
+
// Generate router AFTER compilation so we reference .js files
|
|
44
|
+
if (routes.length > 0) {
|
|
45
|
+
await generateRouter(routes, outDir, root);
|
|
46
|
+
logger.info('Generated router.js');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
logger.success(`Compiled ${stats.files} files in ${duration}ms`);
|
|
50
|
+
logger.info(`Output: ${outDir}`);
|
|
51
|
+
|
|
52
|
+
return { outDir, stats, routes };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function discoverRoutes(pagesDir) {
|
|
56
|
+
const routes = [];
|
|
57
|
+
|
|
58
|
+
async function scanDirectory(dir, basePath = '') {
|
|
59
|
+
const entries = readdirSync(dir, { withFileTypes: true });
|
|
60
|
+
|
|
61
|
+
for (const entry of entries) {
|
|
62
|
+
const fullPath = join(dir, entry.name);
|
|
63
|
+
const relativePath = join(basePath, entry.name);
|
|
64
|
+
|
|
65
|
+
if (entry.isDirectory()) {
|
|
66
|
+
await scanDirectory(fullPath, relativePath);
|
|
67
|
+
} else if (entry.isFile()) {
|
|
68
|
+
const ext = extname(entry.name);
|
|
69
|
+
if (['.jsx', '.tsx', '.js', '.ts'].includes(ext)) {
|
|
70
|
+
const fileName = entry.name.replace(ext, '');
|
|
71
|
+
|
|
72
|
+
let route = '/' + relativePath.replace(/\\/g, '/').replace(ext, '');
|
|
73
|
+
|
|
74
|
+
if (fileName === 'index') {
|
|
75
|
+
route = route.replace('/index', '') || '/';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const isDynamic = fileName.includes('[') && fileName.includes(']');
|
|
79
|
+
const type = isDynamic ? 'dynamic' : 'static';
|
|
80
|
+
|
|
81
|
+
routes.push({
|
|
82
|
+
route: route === '' ? '/' : route,
|
|
83
|
+
file: relativePath.replace(/\\/g, '/'),
|
|
84
|
+
path: fullPath,
|
|
85
|
+
type
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
await scanDirectory(pagesDir);
|
|
93
|
+
|
|
94
|
+
routes.sort((a, b) => {
|
|
95
|
+
if (a.type === b.type) {
|
|
96
|
+
return a.route.localeCompare(b.route);
|
|
97
|
+
}
|
|
98
|
+
return a.type === 'static' ? -1 : 1;
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
return routes;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
async function generateRouter(routes, outDir, root) {
|
|
105
|
+
const imports = routes.map((route, i) => {
|
|
106
|
+
const componentName = `Page${i}`;
|
|
107
|
+
// CRITICAL FIX: Import .js files (compiled), not .jsx
|
|
108
|
+
const importPath = `./pages/${route.file.replace(/\.(jsx|tsx|ts)$/, '.js')}`;
|
|
109
|
+
return `import ${componentName} from '${importPath}';`;
|
|
110
|
+
}).join('\n');
|
|
111
|
+
|
|
112
|
+
const routeConfigs = routes.map((route, i) => {
|
|
113
|
+
const componentName = `Page${i}`;
|
|
114
|
+
return ` { path: '${route.route}', component: ${componentName}, type: '${route.type}' }`;
|
|
115
|
+
}).join(',\n');
|
|
116
|
+
|
|
117
|
+
const routerCode = `// Auto-generated router - DO NOT EDIT
|
|
118
|
+
${imports}
|
|
119
|
+
|
|
120
|
+
export const routes = [
|
|
121
|
+
${routeConfigs}
|
|
122
|
+
];
|
|
123
|
+
|
|
124
|
+
export function matchRoute(pathname) {
|
|
125
|
+
for (const route of routes) {
|
|
126
|
+
if (route.type === 'static' && route.path === pathname) {
|
|
127
|
+
return route;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
for (const route of routes) {
|
|
132
|
+
if (route.type === 'dynamic') {
|
|
133
|
+
const pattern = route.path.replace(/\\[([^\\]]+)\\]/g, '([^/]+)');
|
|
134
|
+
const regex = new RegExp('^' + pattern + '$');
|
|
135
|
+
const match = pathname.match(regex);
|
|
136
|
+
|
|
137
|
+
if (match) {
|
|
138
|
+
const paramNames = [...route.path.matchAll(/\\[([^\\]]+)\\]/g)].map(m => m[1]);
|
|
139
|
+
const params = {};
|
|
140
|
+
paramNames.forEach((name, i) => {
|
|
141
|
+
params[name] = match[i + 1];
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
return { ...route, params };
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
152
|
+
|
|
153
|
+
const routerPath = join(outDir, 'router.js');
|
|
154
|
+
await Bun.write(routerPath, routerCode);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
async function compileDirectory(srcDir, outDir, root) {
|
|
158
|
+
const stats = { files: 0, skipped: 0 };
|
|
159
|
+
|
|
160
|
+
const files = readdirSync(srcDir);
|
|
161
|
+
|
|
162
|
+
for (const file of files) {
|
|
163
|
+
const srcPath = join(srcDir, file);
|
|
164
|
+
const stat = statSync(srcPath);
|
|
165
|
+
|
|
166
|
+
if (stat.isDirectory()) {
|
|
167
|
+
const subOutDir = join(outDir, file);
|
|
168
|
+
mkdirSync(subOutDir, { recursive: true });
|
|
169
|
+
const subStats = await compileDirectory(srcPath, subOutDir, root);
|
|
170
|
+
stats.files += subStats.files;
|
|
171
|
+
stats.skipped += subStats.skipped;
|
|
172
|
+
} else {
|
|
173
|
+
const ext = extname(file);
|
|
174
|
+
const relativePath = relative(join(root, 'src'), srcPath);
|
|
175
|
+
|
|
176
|
+
if (['.jsx', '.tsx', '.ts'].includes(ext)) {
|
|
177
|
+
await compileFile(srcPath, outDir, file, relativePath);
|
|
178
|
+
stats.files++;
|
|
179
|
+
} else if (ext === '.js' || ext === '.css') {
|
|
180
|
+
const outPath = join(outDir, file);
|
|
181
|
+
await Bun.write(outPath, Bun.file(srcPath));
|
|
182
|
+
logger.debug(`Copied: ${relativePath}`);
|
|
183
|
+
stats.files++;
|
|
184
|
+
} else {
|
|
185
|
+
logger.debug(`Skipped: ${relativePath}`);
|
|
186
|
+
stats.skipped++;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return stats;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
async function compileFile(srcPath, outDir, filename, relativePath) {
|
|
195
|
+
const ext = extname(filename);
|
|
196
|
+
const loader = ext === '.tsx' ? 'tsx' : ext === '.ts' ? 'ts' : 'jsx';
|
|
197
|
+
|
|
198
|
+
try {
|
|
199
|
+
let code = await Bun.file(srcPath).text();
|
|
200
|
+
|
|
201
|
+
// Remove bertui/styles imports completely
|
|
202
|
+
code = code.replace(/import\s+['"]bertui\/styles['"]\s*;?\s*/g, '');
|
|
203
|
+
|
|
204
|
+
// Replace bertui/router imports with CDN React Router (we'll use a simpler approach)
|
|
205
|
+
// For now, keep the import as-is and handle it differently
|
|
206
|
+
|
|
207
|
+
const transpiler = new Bun.Transpiler({ loader });
|
|
208
|
+
const compiled = await transpiler.transform(code);
|
|
209
|
+
|
|
210
|
+
const outFilename = filename.replace(/\.(jsx|tsx|ts)$/, '.js');
|
|
211
|
+
const outPath = join(outDir, outFilename);
|
|
212
|
+
|
|
213
|
+
await Bun.write(outPath, compiled);
|
|
214
|
+
logger.debug(`Compiled: ${relativePath} → ${outFilename}`);
|
|
215
|
+
} catch (error) {
|
|
216
|
+
logger.error(`Failed to compile ${relativePath}: ${error.message}`);
|
|
217
|
+
throw error;
|
|
218
|
+
}
|
|
226
219
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export const defaultConfig = {
|
|
2
|
-
meta: {
|
|
3
|
-
title: "BertUI App",
|
|
4
|
-
description: "Built with BertUI - Lightning fast React development",
|
|
5
|
-
keywords: "react, bun, bertui",
|
|
6
|
-
author: "Pease Ernest",
|
|
7
|
-
ogImage: "/og-image.png",
|
|
8
|
-
themeColor: "#f30606ff",
|
|
9
|
-
lang: "en"
|
|
10
|
-
},
|
|
11
|
-
appShell: {
|
|
12
|
-
loading: true,
|
|
13
|
-
loadingText: "Loading...",
|
|
14
|
-
backgroundColor: "#ffffff"
|
|
15
|
-
}
|
|
1
|
+
export const defaultConfig = {
|
|
2
|
+
meta: {
|
|
3
|
+
title: "BertUI App",
|
|
4
|
+
description: "Built with BertUI - Lightning fast React development",
|
|
5
|
+
keywords: "react, bun, bertui",
|
|
6
|
+
author: "Pease Ernest",
|
|
7
|
+
ogImage: "/og-image.png",
|
|
8
|
+
themeColor: "#f30606ff",
|
|
9
|
+
lang: "en"
|
|
10
|
+
},
|
|
11
|
+
appShell: {
|
|
12
|
+
loading: true,
|
|
13
|
+
loadingText: "Loading...",
|
|
14
|
+
backgroundColor: "#ffffff"
|
|
15
|
+
}
|
|
16
16
|
};
|