@vantail/create 0.1.0
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/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +189 -0
- package/dist/index.js.map +1 -0
- package/dist/naming.d.ts +6 -0
- package/dist/naming.d.ts.map +1 -0
- package/dist/naming.js +18 -0
- package/dist/naming.js.map +1 -0
- package/package.json +27 -0
- package/templates/react-ts/README.md +34 -0
- package/templates/react-ts/_gitignore +5 -0
- package/templates/react-ts/icon.png +0 -0
- package/templates/react-ts/index.html +12 -0
- package/templates/react-ts/package.json +25 -0
- package/templates/react-ts/src/App.tsx +39 -0
- package/templates/react-ts/src/main.tsx +14 -0
- package/templates/react-ts/src/style.css +60 -0
- package/templates/react-ts/tsconfig.json +14 -0
- package/templates/react-ts/vantail.config.ts +60 -0
- package/templates/react-ts/vite.config.ts +8 -0
- package/templates/svelte-ts/README.md +34 -0
- package/templates/svelte-ts/_gitignore +5 -0
- package/templates/svelte-ts/icon.png +0 -0
- package/templates/svelte-ts/index.html +12 -0
- package/templates/svelte-ts/package.json +22 -0
- package/templates/svelte-ts/src/App.svelte +35 -0
- package/templates/svelte-ts/src/main.ts +9 -0
- package/templates/svelte-ts/src/style.css +60 -0
- package/templates/svelte-ts/src/vite-env.d.ts +3 -0
- package/templates/svelte-ts/svelte.config.js +6 -0
- package/templates/svelte-ts/tsconfig.json +14 -0
- package/templates/svelte-ts/vantail.config.ts +60 -0
- package/templates/svelte-ts/vite.config.ts +8 -0
- package/templates/vanilla-ts/README.md +34 -0
- package/templates/vanilla-ts/_gitignore +5 -0
- package/templates/vanilla-ts/icon.png +0 -0
- package/templates/vanilla-ts/index.html +21 -0
- package/templates/vanilla-ts/package.json +20 -0
- package/templates/vanilla-ts/src/main.ts +36 -0
- package/templates/vanilla-ts/src/style.css +60 -0
- package/templates/vanilla-ts/tsconfig.json +13 -0
- package/templates/vanilla-ts/vantail.config.ts +60 -0
- package/templates/vue-ts/README.md +34 -0
- package/templates/vue-ts/_gitignore +5 -0
- package/templates/vue-ts/icon.png +0 -0
- package/templates/vue-ts/index.html +12 -0
- package/templates/vue-ts/package.json +22 -0
- package/templates/vue-ts/src/App.vue +40 -0
- package/templates/vue-ts/src/main.ts +9 -0
- package/templates/vue-ts/src/style.css +60 -0
- package/templates/vue-ts/tsconfig.json +15 -0
- package/templates/vue-ts/vantail.config.ts +60 -0
- package/templates/vue-ts/vite.config.ts +8 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineConfig } from "@vantail/cli";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
app: {
|
|
5
|
+
name: "__APP_NAME__",
|
|
6
|
+
identifier: "__APP_IDENTIFIER__",
|
|
7
|
+
version: "0.1.0",
|
|
8
|
+
// A square PNG. Every size each platform asks for is scaled down from it.
|
|
9
|
+
icon: "icon.png",
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
window: {
|
|
13
|
+
title: "__APP_NAME__",
|
|
14
|
+
width: 900,
|
|
15
|
+
height: 640,
|
|
16
|
+
minWidth: 480,
|
|
17
|
+
minHeight: 360,
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
// On macOS this is not decoration: without these predefined items in the
|
|
21
|
+
// menu, Cmd-C, Cmd-V and Cmd-Z do not work anywhere in the application.
|
|
22
|
+
// Add your own submenus alongside them.
|
|
23
|
+
menu: [
|
|
24
|
+
{
|
|
25
|
+
type: "submenu",
|
|
26
|
+
label: "__APP_NAME__",
|
|
27
|
+
items: [
|
|
28
|
+
{ type: "predefined", item: "about" },
|
|
29
|
+
{ type: "separator" },
|
|
30
|
+
{ type: "predefined", item: "hide" },
|
|
31
|
+
{ type: "predefined", item: "quit" },
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "submenu",
|
|
36
|
+
label: "Edit",
|
|
37
|
+
items: [
|
|
38
|
+
{ type: "predefined", item: "undo" },
|
|
39
|
+
{ type: "predefined", item: "redo" },
|
|
40
|
+
{ type: "separator" },
|
|
41
|
+
{ type: "predefined", item: "cut" },
|
|
42
|
+
{ type: "predefined", item: "copy" },
|
|
43
|
+
{ type: "predefined", item: "paste" },
|
|
44
|
+
{ type: "predefined", item: "selectAll" },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
|
|
49
|
+
// Everything is denied until you ask for it. Start small: `dialog` plus the
|
|
50
|
+
// default `grantFromDialog` is enough to open any file the user picks,
|
|
51
|
+
// without granting standing access to their disk.
|
|
52
|
+
permissions: {
|
|
53
|
+
dialog: true,
|
|
54
|
+
clipboard: true,
|
|
55
|
+
menu: true,
|
|
56
|
+
filesystem: {
|
|
57
|
+
write: ["$APPDATA/**"],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
});
|