create-flow-os 0.0.1-dev.1771669629 → 0.0.1-dev.1771669831
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/bin/index.js +11 -2
- package/package.json +1 -1
- package/profiles/client/dev.ts +1 -1
- package/profiles/full/dev.ts +1 -1
- package/profiles/server/dev.ts +1 -1
package/bin/index.js
CHANGED
|
@@ -921,9 +921,18 @@ function optsForProfile(config, profileId) {
|
|
|
921
921
|
}
|
|
922
922
|
async function main() {
|
|
923
923
|
const devBadge = useDevTag ? c2.dim(" \xB7 dev") : "";
|
|
924
|
+
const introW = 44;
|
|
925
|
+
const introLine = (content) => {
|
|
926
|
+
const plain = stripAnsi(content);
|
|
927
|
+
const pad = Math.max(0, introW - plain.length);
|
|
928
|
+
return c2.dim(" \u2502 ") + content + " ".repeat(pad) + c2.dim(" \u2502");
|
|
929
|
+
};
|
|
930
|
+
const introBorder = (ch) => c2.dim(" " + (ch === "t" ? "\u256D" : "\u2570") + "\u2500".repeat(introW) + (ch === "t" ? "\u256E" : "\u256F"));
|
|
924
931
|
console.log(`
|
|
925
|
-
` +
|
|
926
|
-
` + c2.
|
|
932
|
+
` + introBorder("t") + `
|
|
933
|
+
` + introLine(c2.bold(c2.cyan("Flow OS")) + devBadge) + `
|
|
934
|
+
` + introLine("Create " + c2.bold(c2.cyan("Flow OS")) + " application") + `
|
|
935
|
+
` + introBorder("b") + `
|
|
927
936
|
`);
|
|
928
937
|
const config = await Bun.file(join2(DIR, "config.json")).json();
|
|
929
938
|
const hasDeps = Object.values(config.packages).every((e2) => Array.isArray(e2.deps));
|
package/package.json
CHANGED
package/profiles/client/dev.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
|
|
5
|
-
await import(pathToFileURL(join(import.meta.dir, '
|
|
5
|
+
await import(pathToFileURL(join(import.meta.dir, 'node_modules/@flow.os/client/start-dev.ts')).href);
|
package/profiles/full/dev.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
|
|
5
|
-
await import(pathToFileURL(join(import.meta.dir, '
|
|
5
|
+
await import(pathToFileURL(join(import.meta.dir, 'node_modules/@flow.os/client/start-dev.ts')).href);
|
package/profiles/server/dev.ts
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
|
|
5
|
-
await import(pathToFileURL(join(import.meta.dir, '
|
|
5
|
+
await import(pathToFileURL(join(import.meta.dir, 'node_modules/@flow.os/client/start-dev.ts')).href);
|