kempo 4.2.8 → 4.2.10
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/app-public/.config.json +3 -3
- package/bin/cli.js +6 -6
- package/package.json +2 -2
package/app-public/.config.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"/kempo-ui/icons/**": "../node_modules/kempo-ui/icons/**",
|
|
5
5
|
"/kempo-ui/**": "../node_modules/kempo-ui/dist/**",
|
|
6
6
|
"/monaco-editor/**": "../node_modules/monaco-editor/min/**",
|
|
7
|
-
"/kempo/**": "../dist/kempo/**",
|
|
8
|
-
"/admin": "../dist/admin/",
|
|
9
|
-
"/admin/**": "../dist/admin/**"
|
|
7
|
+
"/kempo/**": "../node_modules/kempo/dist/kempo/**",
|
|
8
|
+
"/admin": "../node_modules/kempo/dist/admin/",
|
|
9
|
+
"/admin/**": "../node_modules/kempo/dist/admin/**"
|
|
10
10
|
},
|
|
11
11
|
"middleware": {
|
|
12
12
|
"custom": [
|
package/bin/cli.js
CHANGED
|
@@ -50,13 +50,13 @@ const isDockerRunning = () => {
|
|
|
50
50
|
const getPostgresContainers = () => {
|
|
51
51
|
try {
|
|
52
52
|
const output = execSync(
|
|
53
|
-
'docker ps -a --
|
|
53
|
+
'docker ps -a --format "{{.Names}}\\t{{.Status}}\\t{{.Image}}"',
|
|
54
54
|
{ encoding: 'utf8' }
|
|
55
55
|
);
|
|
56
56
|
return output.trim().split('\n').filter(Boolean).map(line => {
|
|
57
|
-
const [name,
|
|
58
|
-
return { name, running:
|
|
59
|
-
});
|
|
57
|
+
const [name, status, image] = line.split('\t');
|
|
58
|
+
return { name, running: status.startsWith('Up'), image };
|
|
59
|
+
}).filter(c => c.image && c.image.includes('postgres'));
|
|
60
60
|
} catch {
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
@@ -276,8 +276,8 @@ if(!existsSync(pkgPath)){
|
|
|
276
276
|
type: 'module',
|
|
277
277
|
private: true,
|
|
278
278
|
scripts: {
|
|
279
|
-
dev: 'kempo-server --root public',
|
|
280
|
-
start: 'kempo-server --root public'
|
|
279
|
+
dev: 'kempo-server --root public --port 9876',
|
|
280
|
+
start: 'kempo-server --root public --port 9876'
|
|
281
281
|
}
|
|
282
282
|
}, null, 2) + '\n');
|
|
283
283
|
console.log('Created package.json');
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kempo",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fullstack CMS framework for creating websites with user authentication",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "kempo-server --root app-public --port 9876",
|
|
7
|
+
"dev": "kempo-server --root app-public --port 9876 --config ./dev.config.json",
|
|
8
8
|
"build": "node scripts/build.js",
|
|
9
9
|
"db:generate": "drizzle-kit generate",
|
|
10
10
|
"db:migrate": "drizzle-kit migrate",
|