create-foldkit-app 0.4.2 → 0.5.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.js CHANGED
@@ -21,6 +21,7 @@ const example = Options.choice('example', [
21
21
  'shopping-cart',
22
22
  'websocket-chat',
23
23
  'auth',
24
+ 'ui-showcase',
24
25
  ]).pipe(Options.withAlias('e'), Options.withDescription("The example application to start from. Pick an example that's similar to the application you're building. Or create multiple projects and take pieces of each!\n\n" +
25
26
  'Available examples:\n' +
26
27
  ' counter - Simple increment/decrement with reset\n' +
@@ -33,7 +34,8 @@ const example = Options.choice('example', [
33
34
  ' query-sync - URL-driven filtering, sorting, and search with query parameters\n' +
34
35
  ' shopping-cart - Complex state management with nested models and routing\n' +
35
36
  ' websocket-chat - Managed resources with WebSocket integration\n' +
36
- ' auth - Authentication with Model-as-Union pattern and protected routes'));
37
+ ' auth - Authentication with Submodels, OutMessage, and protected routes\n' +
38
+ ' ui-showcase - Every Foldkit UI component with routing and Submodels'));
37
39
  const packageManager = Options.choice('package-manager', [
38
40
  'pnpm',
39
41
  'npm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-foldkit-app",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "description": "Create Foldkit applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,12 +12,12 @@
12
12
  "templates"
13
13
  ],
14
14
  "dependencies": {
15
- "@effect/cli": "^0.73.0",
16
- "@effect/platform": "^0.94.1",
17
- "@effect/platform-node": "^0.104.0",
15
+ "@effect/cli": "^0.73.2",
16
+ "@effect/platform": "^0.94.5",
17
+ "@effect/platform-node": "^0.104.1",
18
18
  "@types/prompts": "^2.4.9",
19
19
  "chalk": "^5.6.2",
20
- "effect": "^3.19.14",
20
+ "effect": "^3.19.19",
21
21
  "prompts": "^2.4.2",
22
22
  "rimraf": "^6.1.2",
23
23
  "typescript": "^5.9.3"
@@ -3,7 +3,7 @@
3
3
  "singleQuote": true,
4
4
  "arrowParens": "avoid",
5
5
  "trailingComma": "all",
6
- "printWidth": 100,
6
+ "printWidth": 80,
7
7
 
8
8
  "importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"],
9
9
  "importOrderSeparation": true,
@@ -71,7 +71,11 @@ const fetchWeather = (
71
71
  Effect.gen(function* () {
72
72
  // ...
73
73
  return SucceededWeatherFetch({ data })
74
- }).pipe(Effect.catchAll(error => Effect.succeed(FailedWeatherFetch({ error: String(error) }))))
74
+ }).pipe(
75
+ Effect.catchAll(error =>
76
+ Effect.succeed(FailedWeatherFetch({ error: String(error) })),
77
+ ),
78
+ )
75
79
  ```
76
80
 
77
81
  Commands return specific schema types (e.g. `Command<typeof SucceededMsg | typeof FailedMsg>`) rather than the full Message type.
@@ -20,7 +20,10 @@ export default [
20
20
  'no-redeclare': 'off',
21
21
  'no-undef': 'off',
22
22
  'no-unused-vars': 'off',
23
- '@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
23
+ '@typescript-eslint/consistent-type-assertions': [
24
+ 'error',
25
+ { assertionStyle: 'never' },
26
+ ],
24
27
  '@typescript-eslint/no-explicit-any': 'error',
25
28
  '@typescript-eslint/no-unused-vars': [
26
29
  'error',