widefleet-darwin-arm64 0.3.2 → 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 +26 -10
- package/package.json +3 -1
- package/release.json +1 -1
- package/starter/AGENTS.md +4 -14
- package/starter/README.md +13 -16
- package/starter/package.json +3 -2
- package/starter/pnpm-lock.yaml +33 -75
- package/starter/pnpm-workspace.yaml +1 -0
- package/starters/tanstack-start/.gitattributes +2 -0
- package/starters/tanstack-start/.gitignore +19 -0
- package/starters/tanstack-start/.oxfmtrc.json +33 -0
- package/starters/tanstack-start/.oxlintrc.json +69 -0
- package/starters/tanstack-start/AGENTS.md +24 -0
- package/starters/tanstack-start/LICENSE +21 -0
- package/starters/tanstack-start/README.md +66 -0
- package/starters/tanstack-start/package.json +47 -0
- package/starters/tanstack-start/pnpm-lock.yaml +3130 -0
- package/starters/tanstack-start/pnpm-workspace.yaml +6 -0
- package/starters/tanstack-start/src/client.tsx +20 -0
- package/starters/tanstack-start/src/env.d.ts +7 -0
- package/starters/tanstack-start/src/lib/capture-error.ts +47 -0
- package/starters/tanstack-start/src/lib/errors.ts +42 -0
- package/starters/tanstack-start/src/lib/notes.functions.ts +86 -0
- package/starters/tanstack-start/src/lib/report-error.ts +7 -0
- package/starters/tanstack-start/src/lib/server/browser-errors.ts +88 -0
- package/starters/tanstack-start/src/lib/server/capture-error.ts +35 -0
- package/starters/tanstack-start/src/lib/server/context.ts +7 -0
- package/starters/tanstack-start/src/lib/server/data.ts +48 -0
- package/starters/tanstack-start/src/lib/server/identity.ts +30 -0
- package/starters/tanstack-start/src/register.d.ts +13 -0
- package/starters/tanstack-start/src/router.tsx +12 -0
- package/starters/tanstack-start/src/routes/__root.tsx +28 -0
- package/starters/tanstack-start/src/routes/index.tsx +127 -0
- package/starters/tanstack-start/src/routes/photos.$id.ts +27 -0
- package/starters/tanstack-start/src/server.ts +67 -0
- package/starters/tanstack-start/src/start.ts +28 -0
- package/starters/tanstack-start/src/styles.css +122 -0
- package/starters/tanstack-start/tools/build.ts +26 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/LICENSE +21 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/UPSTREAM.md +7 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/index.ts +21 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-effect-error-tag.ts +52 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-tag-comparison.ts +45 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-manual-tagged-construction.ts +37 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts +52 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/rules/prefer-effect-match.ts +54 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/effect/shared/tagged-values.ts +97 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/index.ts +47 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-array-filter-map.ts +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-chained-type-assertions.ts +77 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-conditional-empty-object-spread.ts +49 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-known-value-widening.ts +415 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-module-mocking.ts +80 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-object-parameters.ts +83 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reduce-accumulator-copy.ts +109 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reflect-apply.ts +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-reflect-get.ts +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-runtime-typeof.ts +77 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts +46 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-parameters.ts +69 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-returns.ts +82 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unknown-type-aliases.ts +54 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts +154 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/no-widen-then-assert.ts +366 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/require-readable-spacing.ts +47 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/rules/require-safety-comment-for-type-assertion.ts +131 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/array-method.ts +94 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/dictionary-types.ts +515 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/function-parameters.ts +49 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/lexical-type-parameters.ts +61 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/reflect-method.ts +24 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/scope.ts +15 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/shared/type-alias-resolution.ts +250 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/LICENSE +22 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/UPSTREAM.md +28 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-ast.ts +51 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-between-statements.ts +906 -0
- package/starters/tanstack-start/tools/oxlint/anti-slop/vendor/eslint-stylistic/padding-line-options.d.ts +87 -0
- package/starters/tanstack-start/tools/types.ts +31 -0
- package/starters/tanstack-start/tsconfig.json +20 -0
- package/starters/tanstack-start/vite.config.ts +49 -0
- package/starters/tanstack-start/wrangler.jsonc +17 -0
- package/widefleet +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Everyday Systems 42 GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# TanStack Start app on Widefleet
|
|
2
|
+
|
|
3
|
+
This independent React app uses TanStack Start, D1 notes and private R2 photos.
|
|
4
|
+
You need Node.js 22.18 or newer, an existing pnpm 10.34.5 or newer installation,
|
|
5
|
+
and the Widefleet CLI release that generated this project. With pnpm's default
|
|
6
|
+
version management, the project automatically downloads and uses its pinned pnpm
|
|
7
|
+
12.4.2. Docker and the Widefleet source repository are not required.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm install --frozen-lockfile
|
|
11
|
+
pnpm check
|
|
12
|
+
pnpm dev
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Open the local URL printed by the development server. The page shows a synthetic
|
|
16
|
+
identity; create a note with a photo to verify local storage. JavaScript is
|
|
17
|
+
required to submit the example form.
|
|
18
|
+
|
|
19
|
+
## Build and deploy
|
|
20
|
+
|
|
21
|
+
Stop the development server and connect to your company's installation:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
widefleet login
|
|
25
|
+
pnpm check
|
|
26
|
+
widefleet deploy
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The CLI builds the app and deploys the Worker declared in `wrangler.jsonc`. Review
|
|
30
|
+
its `name` and the platform selected by `widefleet config show` before deploying.
|
|
31
|
+
After activation, open the printed app URL and sign in with your company account.
|
|
32
|
+
See [CLI installation](https://widefleet.com/docs/getting-started/installation)
|
|
33
|
+
for setup and login recovery.
|
|
34
|
+
|
|
35
|
+
## App development
|
|
36
|
+
|
|
37
|
+
Edit `src/routes` and use `context.user` in server functions and server routes
|
|
38
|
+
for the verified company identity. Preserve authentication in `src/server.ts`
|
|
39
|
+
and CSRF protection in `src/start.ts`. Deployed apps cannot use separate cookie
|
|
40
|
+
sessions.
|
|
41
|
+
|
|
42
|
+
Declare resources in `wrangler.jsonc`. Run `pnpm types` after adding routes or
|
|
43
|
+
changing bindings; `.platform` contains generated files. Use `pnpm build` when
|
|
44
|
+
building manually: it generates a single version for browser and server error
|
|
45
|
+
reports. Direct `vite build` exits with a message to use the build script.
|
|
46
|
+
|
|
47
|
+
The example uses `DB` and `FILES`; keep those declarations while using its notes
|
|
48
|
+
and photos. Database and file contents survive code deployments and rollback.
|
|
49
|
+
Use [explicit migrations](https://widefleet.com/docs/guides/migrations) when
|
|
50
|
+
changing an existing schema.
|
|
51
|
+
|
|
52
|
+
The starter captures unexpected server and browser errors. For caught technical
|
|
53
|
+
failures, use `captureError` from `src/lib/server/capture-error.ts` on the server
|
|
54
|
+
or `src/lib/capture-error.ts` in browser code. Keep source maps private and
|
|
55
|
+
preserve the browser's embedded build version.
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
widefleet logs --level error --since 1h --json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Runtime logs require the operator's telemetry services. If the command fails,
|
|
62
|
+
report that failure rather than assuming there are no errors.
|
|
63
|
+
|
|
64
|
+
Next, [publish an isolated preview](https://widefleet.com/docs/guides/deployments)
|
|
65
|
+
or follow [app development](https://widefleet.com/docs/guides/app-development)
|
|
66
|
+
for resources, network permissions and IT connectors.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@platform/starter-tanstack-start",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "vite --host 127.0.0.1",
|
|
9
|
+
"types": "node tools/types.ts",
|
|
10
|
+
"build": "node tools/build.ts",
|
|
11
|
+
"typecheck": "pnpm types && tsc --noEmit",
|
|
12
|
+
"lint": "oxlint --type-aware --deny-warnings .",
|
|
13
|
+
"format": "oxfmt --write .",
|
|
14
|
+
"format:check": "oxfmt --check .",
|
|
15
|
+
"check": "pnpm typecheck && pnpm format:check && pnpm lint"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@tanstack/react-router": "1.170.42",
|
|
19
|
+
"@tanstack/react-start": "1.168.61",
|
|
20
|
+
"better-result": "3.0.1",
|
|
21
|
+
"react": "19.3.0",
|
|
22
|
+
"react-dom": "19.3.0",
|
|
23
|
+
"zod": "4.6.5"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@cloudflare/vite-plugin": "1.62.0",
|
|
27
|
+
"@oxlint/plugins": "1.86.0",
|
|
28
|
+
"@tanstack/router-generator": "1.167.41",
|
|
29
|
+
"@tsconfig/strictest": "2.0.8",
|
|
30
|
+
"@types/node": "22.18.0",
|
|
31
|
+
"@types/react": "19.3.0",
|
|
32
|
+
"@types/react-dom": "19.3.0",
|
|
33
|
+
"@vitejs/plugin-react": "6.1.2",
|
|
34
|
+
"crossws": "0.4.15",
|
|
35
|
+
"oxfmt": "0.71.0",
|
|
36
|
+
"oxlint": "1.86.0",
|
|
37
|
+
"oxlint-tsgolint": "7.0.2003",
|
|
38
|
+
"typescript": "6.0.3",
|
|
39
|
+
"vite": "8.3.2",
|
|
40
|
+
"wrangler": "4.147.0"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=22.18.0",
|
|
44
|
+
"pnpm": ">=10.34.5"
|
|
45
|
+
},
|
|
46
|
+
"packageManager": "pnpm@12.4.2"
|
|
47
|
+
}
|