create-zenbu-app 0.0.2 → 0.0.3
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
CHANGED
package/template/package.json
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineConfig,
|
|
3
|
+
definePlugin,
|
|
4
|
+
defineBuildConfig,
|
|
5
|
+
stripIfDisabled,
|
|
6
|
+
dropFiles,
|
|
7
|
+
} from "@zenbujs/core/config";
|
|
8
|
+
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
// Where the kyju database lives (relative to this file).
|
|
11
|
+
db: "./.zenbu/db",
|
|
12
|
+
|
|
13
|
+
// Boot-window HTML. The single ui entrypoint for the whole app.
|
|
14
|
+
uiEntrypoint: "./src/renderer",
|
|
15
|
+
|
|
16
|
+
// Plugins are pure main-process: services + optional schema/preload/events.
|
|
17
|
+
// The "host plugin" is just the first entry by convention.
|
|
18
|
+
plugins: [
|
|
19
|
+
definePlugin({
|
|
20
|
+
name: "app",
|
|
21
|
+
services: ["./src/main/services/*.ts"],
|
|
22
|
+
}),
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
// Build pipeline for `zen build:source` (mirror staging) and
|
|
26
|
+
// `zen build:electron` (signed .app via electron-builder). Set
|
|
27
|
+
// `mirror.target` to "<owner>/<repo>" before shipping.
|
|
28
|
+
build: defineBuildConfig({
|
|
29
|
+
source: ".",
|
|
30
|
+
out: ".zenbu/build/source",
|
|
31
|
+
include: [
|
|
32
|
+
"src/**/*",
|
|
33
|
+
"package.json",
|
|
34
|
+
"pnpm-lock.yaml",
|
|
35
|
+
"tsconfig.json",
|
|
36
|
+
"zenbu.config.ts",
|
|
37
|
+
"vite.config.ts",
|
|
38
|
+
],
|
|
39
|
+
ignore: [
|
|
40
|
+
"src/**/*.test.ts",
|
|
41
|
+
"src/**/*.test.tsx",
|
|
42
|
+
"src/**/*.spec.ts",
|
|
43
|
+
"src/**/*.spec.tsx",
|
|
44
|
+
"src/dev-only/**",
|
|
45
|
+
],
|
|
46
|
+
transforms: [
|
|
47
|
+
stripIfDisabled({ FLAG_BETA: false }),
|
|
48
|
+
dropFiles(/\.stories\.tsx?$/),
|
|
49
|
+
],
|
|
50
|
+
// mirror: { target: "{{owner}}/{{repo}}", branch: "main" },
|
|
51
|
+
}),
|
|
52
|
+
});
|
package/template/config.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineBuildConfig, stripIfDisabled, dropFiles } from "@zenbujs/core/build";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Build pipeline for `zen build:source` and `zen build:electron`.
|
|
5
|
-
*
|
|
6
|
-
* Edit `include`/`ignore` to choose what gets shipped to the mirror repo and
|
|
7
|
-
* seeded inside the .app. Add transforms to strip feature-flagged code,
|
|
8
|
-
* drop test files, etc.
|
|
9
|
-
*
|
|
10
|
-
* Set `mirror.target` to "<owner>/<repo>" (a GitHub repo) to enable
|
|
11
|
-
* `zen publish:source init` / `zen publish:source push`.
|
|
12
|
-
*/
|
|
13
|
-
export default defineBuildConfig({
|
|
14
|
-
source: ".",
|
|
15
|
-
out: ".zenbu/build/seed",
|
|
16
|
-
|
|
17
|
-
include: [
|
|
18
|
-
"src/**/*",
|
|
19
|
-
"package.json",
|
|
20
|
-
"pnpm-lock.yaml",
|
|
21
|
-
"tsconfig.json",
|
|
22
|
-
"zenbu.plugin.json",
|
|
23
|
-
"config.json",
|
|
24
|
-
"db/**",
|
|
25
|
-
"db.config.ts",
|
|
26
|
-
"vite.config.ts",
|
|
27
|
-
"loading.html",
|
|
28
|
-
],
|
|
29
|
-
ignore: [
|
|
30
|
-
"src/**/*.test.ts",
|
|
31
|
-
"src/**/*.test.tsx",
|
|
32
|
-
"src/**/*.spec.ts",
|
|
33
|
-
"src/**/*.spec.tsx",
|
|
34
|
-
"src/dev-only/**",
|
|
35
|
-
],
|
|
36
|
-
|
|
37
|
-
transforms: [
|
|
38
|
-
stripIfDisabled({ FLAG_BETA: false }),
|
|
39
|
-
dropFiles(/\.stories\.tsx?$/),
|
|
40
|
-
],
|
|
41
|
-
|
|
42
|
-
// mirror: { target: "{{owner}}/{{repo}}", branch: "main" },
|
|
43
|
-
});
|