create-syncular-app 0.3.1 → 0.4.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/README.md +15 -7
- package/dist/cli.js +7 -3
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +2 -0
- package/dist/scaffold.d.ts +2 -2
- package/dist/scaffold.js +8 -3
- package/package.json +2 -2
- package/src/cli.ts +7 -3
- package/src/constants.ts +2 -0
- package/src/scaffold.ts +8 -3
- package/template/tauri/README.md +91 -0
- package/template/tauri/build-frontend.ts +47 -0
- package/template/tauri/gitignore +11 -0
- package/template/tauri/migrations/0001_initial/up.sql +11 -0
- package/template/tauri/package.json +30 -0
- package/template/tauri/src/frontend/engine.ts +72 -0
- package/template/tauri/src/frontend/index.html +33 -0
- package/template/tauri/src/frontend/main.tsx +202 -0
- package/template/tauri/src/frontend/worker.ts +9 -0
- package/template/tauri/src/server.ts +193 -0
- package/template/tauri/src/smoke.test.ts +92 -0
- package/template/tauri/src/syncular.generated.ts +68 -0
- package/template/tauri/src-tauri/Cargo.toml +27 -0
- package/template/tauri/src-tauri/build.rs +3 -0
- package/template/tauri/src-tauri/capabilities/syncular.json +9 -0
- package/template/tauri/src-tauri/icons/icon.png +0 -0
- package/template/tauri/src-tauri/src/lib.rs +40 -0
- package/template/tauri/src-tauri/src/main.rs +6 -0
- package/template/tauri/src-tauri/tauri.conf.json +29 -0
- package/template/tauri/syncular.ir.json +76 -0
- package/template/tauri/syncular.json +17 -0
- package/template/tauri/tsconfig.json +18 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"irVersion": 1,
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"schemaVersions": [
|
|
5
|
+
{
|
|
6
|
+
"version": 1,
|
|
7
|
+
"migrations": [
|
|
8
|
+
"0001_initial"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"tables": [
|
|
13
|
+
{
|
|
14
|
+
"name": "todos",
|
|
15
|
+
"primaryKey": "id",
|
|
16
|
+
"columns": [
|
|
17
|
+
{
|
|
18
|
+
"name": "id",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"nullable": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "list_id",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"nullable": false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "title",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"nullable": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "done",
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"nullable": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "position",
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"nullable": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "updated_at_ms",
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"nullable": false
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"scopes": [
|
|
49
|
+
{
|
|
50
|
+
"pattern": "list:{list_id}",
|
|
51
|
+
"variable": "list_id",
|
|
52
|
+
"column": "list_id"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"extensions": {}
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"subscriptions": [
|
|
59
|
+
{
|
|
60
|
+
"name": "todoList",
|
|
61
|
+
"table": "todos",
|
|
62
|
+
"scopes": [
|
|
63
|
+
{
|
|
64
|
+
"variable": "list_id",
|
|
65
|
+
"values": [
|
|
66
|
+
{
|
|
67
|
+
"kind": "parameter",
|
|
68
|
+
"name": "listId"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"extensions": {}
|
|
76
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifestVersion": 1,
|
|
3
|
+
"migrations": "./migrations",
|
|
4
|
+
"output": {
|
|
5
|
+
"ir": "./syncular.ir.json",
|
|
6
|
+
"module": "./src/syncular.generated.ts"
|
|
7
|
+
},
|
|
8
|
+
"schemaVersions": [{ "version": 1, "through": "0001_initial" }],
|
|
9
|
+
"tables": [{ "name": "todos", "scopes": ["list:{list_id}"] }],
|
|
10
|
+
"subscriptions": [
|
|
11
|
+
{
|
|
12
|
+
"name": "todoList",
|
|
13
|
+
"table": "todos",
|
|
14
|
+
"scopes": { "list_id": ["{listId}"] }
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2023",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"customConditions": ["bun"],
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
9
|
+
"types": ["bun"],
|
|
10
|
+
"strict": true,
|
|
11
|
+
"noUncheckedIndexedAccess": true,
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"skipLibCheck": true,
|
|
15
|
+
"noEmit": true
|
|
16
|
+
},
|
|
17
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "build-frontend.ts"]
|
|
18
|
+
}
|