create-foldkit-app 0.15.3 → 0.17.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.
@@ -16,6 +16,16 @@ const PASS_THROUGH_WORKSPACE_PACKAGES = new Set([
16
16
  '@foldkit/ui',
17
17
  '@foldkit/devtools',
18
18
  ]);
19
+ const TEMPLATE_DEV_DEPENDENCIES = [
20
+ '@foldkit/vite-plugin',
21
+ '@foldkit/devtools-mcp',
22
+ '@foldkit/oxlint-plugin',
23
+ '@trivago/prettier-plugin-sort-imports',
24
+ 'happy-dom',
25
+ 'oxlint',
26
+ 'prettier',
27
+ 'vitest',
28
+ ];
19
29
  const formatDeps = (deps) => pipe(deps, Record.toEntries, Array.filter(([name, version]) => !version.includes('workspace:') ||
20
30
  PASS_THROUGH_WORKSPACE_PACKAGES.has(name)), Array.map(([name, version]) => version.includes('workspace:') ? `${name}@latest` : `${name}@${version}`));
21
31
  const fetchExampleDeps = (example) => Effect.gen(function* () {
@@ -60,10 +70,7 @@ export const installDependencies = (projectPath, packageManager, example) => Eff
60
70
  const installDevArgs = getInstallArgs(packageManager, true);
61
71
  yield* runCommand(packageManager, [
62
72
  ...installDevArgs,
63
- '@foldkit/vite-plugin',
64
- '@foldkit/devtools-mcp',
65
- 'vitest',
66
- 'happy-dom',
73
+ ...TEMPLATE_DEV_DEPENDENCIES,
67
74
  ...exampleDeps.devDependencies,
68
75
  ], projectPath);
69
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-foldkit-app",
3
- "version": "0.15.3",
3
+ "version": "0.17.0",
4
4
  "description": "Create Foldkit applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,13 +12,16 @@
12
12
  "templates"
13
13
  ],
14
14
  "dependencies": {
15
- "@effect/platform-node": "4.0.0-beta.78",
16
- "@effect/platform-node-shared": "4.0.0-beta.78",
15
+ "@effect/platform-node": "4.0.0-beta.83",
16
+ "@effect/platform-node-shared": "4.0.0-beta.83",
17
17
  "chalk": "^5.6.2",
18
- "effect": "4.0.0-beta.78",
18
+ "effect": "4.0.0-beta.83",
19
19
  "rimraf": "^6.1.3",
20
20
  "typescript": "^6.0.3"
21
21
  },
22
+ "devDependencies": {
23
+ "@types/node": "^25.9.3"
24
+ },
22
25
  "keywords": [
23
26
  "create-foldkit-app",
24
27
  "foldkit",
@@ -38,7 +41,7 @@
38
41
  "access": "public"
39
42
  },
40
43
  "engines": {
41
- "node": ">=22.19.0"
44
+ "node": ">=22.22.2"
42
45
  },
43
46
  "scripts": {
44
47
  "clean": "rimraf dist *.tsbuildinfo",
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["typescript"],
4
+ "jsPlugins": [
5
+ {
6
+ "name": "foldkit",
7
+ "specifier": "@foldkit/oxlint-plugin"
8
+ }
9
+ ],
10
+ "categories": {
11
+ "correctness": "off"
12
+ },
13
+ "rules": {
14
+ "no-unused-vars": [
15
+ "error",
16
+ {
17
+ "argsIgnorePattern": "^_",
18
+ "varsIgnorePattern": "^_",
19
+ "caughtErrorsIgnorePattern": "^_",
20
+ "destructuredArrayIgnorePattern": "^_"
21
+ }
22
+ ],
23
+ "typescript/no-explicit-any": "error",
24
+ "typescript/consistent-type-assertions": [
25
+ "error",
26
+ { "assertionStyle": "never" }
27
+ ],
28
+ "foldkit/no-noop-message": "error",
29
+ "foldkit/got-submodel-message-name": "error",
30
+ "foldkit/message-binding-matches-tag": "error",
31
+ "foldkit/got-prefix-requires-submodel-payload": "error",
32
+ "foldkit/no-empty-object-tagged-call": "error",
33
+ "foldkit/prefer-callable-message-constructor": "error",
34
+ "foldkit/command-binding-matches-name": "error"
35
+ },
36
+ "ignorePatterns": [
37
+ "dist/",
38
+ "node_modules/",
39
+ "repos/",
40
+ "**/*.d.ts",
41
+ "vite.config.ts",
42
+ "vitest.config.ts",
43
+ "**/*.config.js",
44
+ "**/*.config.mjs"
45
+ ]
46
+ }
@@ -9,6 +9,6 @@
9
9
  "typecheck": "tsc --noEmit",
10
10
  "format": "prettier -w .",
11
11
  "test": "vitest run",
12
- "lint": "eslint ."
12
+ "lint": "oxlint"
13
13
  }
14
14
  }
@@ -1,52 +0,0 @@
1
- import js from '@eslint/js'
2
- import tsPlugin from '@typescript-eslint/eslint-plugin'
3
- import tsParser from '@typescript-eslint/parser'
4
-
5
- export default [
6
- {
7
- ...js.configs.recommended,
8
- files: ['**/*.ts', '**/*.js'],
9
- languageOptions: {
10
- parser: tsParser,
11
- parserOptions: {
12
- ecmaVersion: 'latest',
13
- sourceType: 'module',
14
- },
15
- },
16
- plugins: {
17
- '@typescript-eslint': tsPlugin,
18
- },
19
- rules: {
20
- 'no-redeclare': 'off',
21
- 'no-undef': 'off',
22
- 'no-unused-vars': 'off',
23
- '@typescript-eslint/consistent-type-assertions': [
24
- 'error',
25
- { assertionStyle: 'never' },
26
- ],
27
- '@typescript-eslint/no-explicit-any': 'error',
28
- '@typescript-eslint/no-unused-vars': [
29
- 'error',
30
- {
31
- argsIgnorePattern: '^_',
32
- varsIgnorePattern: '^_',
33
- caughtErrorsIgnorePattern: '^_',
34
- destructuredArrayIgnorePattern: '^_',
35
- },
36
- ],
37
- },
38
- },
39
-
40
- {
41
- ignores: [
42
- 'dist/',
43
- 'node_modules/',
44
- 'repos/',
45
- '**/*.d.ts',
46
- 'eslint.config.mjs',
47
- 'vite.config.ts',
48
- '**/*.config.js',
49
- '**/*.config.mjs',
50
- ],
51
- },
52
- ]