@flexireact/core 3.0.1 → 3.0.3

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.
Files changed (55) hide show
  1. package/dist/cli/index.js +1514 -0
  2. package/dist/cli/index.js.map +1 -0
  3. package/dist/core/client/index.js +373 -0
  4. package/dist/core/client/index.js.map +1 -0
  5. package/dist/core/index.js +6415 -0
  6. package/dist/core/index.js.map +1 -0
  7. package/dist/core/server/index.js +3094 -0
  8. package/dist/core/server/index.js.map +1 -0
  9. package/package.json +80 -80
  10. package/bin/flexireact.js +0 -23
  11. package/cli/generators.ts +0 -616
  12. package/cli/index.ts +0 -1182
  13. package/core/actions/index.ts +0 -364
  14. package/core/api.ts +0 -143
  15. package/core/build/index.ts +0 -425
  16. package/core/cli/logger.ts +0 -353
  17. package/core/client/Link.tsx +0 -345
  18. package/core/client/hydration.ts +0 -147
  19. package/core/client/index.ts +0 -12
  20. package/core/client/islands.ts +0 -143
  21. package/core/client/navigation.ts +0 -212
  22. package/core/client/runtime.ts +0 -52
  23. package/core/config.ts +0 -116
  24. package/core/context.ts +0 -83
  25. package/core/dev.ts +0 -47
  26. package/core/devtools/index.ts +0 -644
  27. package/core/edge/cache.ts +0 -344
  28. package/core/edge/fetch-polyfill.ts +0 -247
  29. package/core/edge/handler.ts +0 -248
  30. package/core/edge/index.ts +0 -81
  31. package/core/edge/ppr.ts +0 -264
  32. package/core/edge/runtime.ts +0 -161
  33. package/core/font/index.ts +0 -306
  34. package/core/helpers.ts +0 -494
  35. package/core/image/index.ts +0 -413
  36. package/core/index.ts +0 -218
  37. package/core/islands/index.ts +0 -293
  38. package/core/loader.ts +0 -111
  39. package/core/logger.ts +0 -242
  40. package/core/metadata/index.ts +0 -622
  41. package/core/middleware/index.ts +0 -416
  42. package/core/plugins/index.ts +0 -373
  43. package/core/render/index.ts +0 -1243
  44. package/core/render.ts +0 -136
  45. package/core/router/index.ts +0 -551
  46. package/core/router.ts +0 -141
  47. package/core/rsc/index.ts +0 -199
  48. package/core/server/index.ts +0 -779
  49. package/core/server.ts +0 -203
  50. package/core/ssg/index.ts +0 -346
  51. package/core/start-dev.ts +0 -6
  52. package/core/start-prod.ts +0 -6
  53. package/core/tsconfig.json +0 -30
  54. package/core/types.ts +0 -239
  55. package/core/utils.ts +0 -176
package/package.json CHANGED
@@ -1,80 +1,80 @@
1
- {
2
- "name": "@flexireact/core",
3
- "version": "3.0.1",
4
- "description": "The Modern React Framework v3 - SSR, SSG, Islands, Edge Runtime, 50+ UI Components, TypeScript, Tailwind v4",
5
- "main": "core/index.ts",
6
- "types": "core/types.ts",
7
- "type": "module",
8
- "bin": {
9
- "flexireact": "./bin/flexireact.js",
10
- "flexi": "./bin/flexireact.js"
11
- },
12
- "exports": {
13
- ".": "./core/index.ts",
14
- "./client": "./core/client/index.ts",
15
- "./server": "./core/server/index.ts",
16
- "./render": "./core/render/index.ts",
17
- "./config": "./core/config.ts",
18
- "./types": "./core/types.ts"
19
- },
20
- "files": [
21
- "bin",
22
- "cli",
23
- "core",
24
- "README.md",
25
- "LICENSE"
26
- ],
27
- "scripts": {
28
- "dev": "npx tsx cli/index.ts dev",
29
- "build": "npx tsx cli/index.ts build",
30
- "start": "npx tsx cli/index.ts start",
31
- "typecheck": "tsc --noEmit -p core/tsconfig.json"
32
- },
33
- "keywords": [
34
- "react",
35
- "framework",
36
- "typescript",
37
- "tailwind",
38
- "ssr",
39
- "ssg",
40
- "rsc",
41
- "islands",
42
- "file-based-routing",
43
- "nextjs-alternative",
44
- "modern"
45
- ],
46
- "author": "FlexiReact Team",
47
- "license": "MIT",
48
- "repository": {
49
- "type": "git",
50
- "url": "git+https://github.com/flexireact/flexireact.git"
51
- },
52
- "bugs": {
53
- "url": "https://github.com/flexireact/flexireact/issues"
54
- },
55
- "homepage": "https://github.com/flexireact/flexireact#readme",
56
- "dependencies": {
57
- "esbuild": "^0.25.0",
58
- "ora": "^8.1.1",
59
- "picocolors": "^1.1.1",
60
- "prompts": "^2.4.2"
61
- },
62
- "peerDependencies": {
63
- "react": "^18.0.0",
64
- "react-dom": "^18.0.0"
65
- },
66
- "devDependencies": {
67
- "@types/node": "^22.10.1",
68
- "@types/prompts": "^2.4.9",
69
- "@types/react": "^18.3.14",
70
- "@types/react-dom": "^18.3.2",
71
- "tsx": "^4.21.0",
72
- "typescript": "^5.7.2"
73
- },
74
- "engines": {
75
- "node": ">=18.0.0"
76
- },
77
- "publishConfig": {
78
- "access": "public"
79
- }
80
- }
1
+ {
2
+ "name": "@flexireact/core",
3
+ "version": "3.0.3",
4
+ "description": "The Modern React Framework v3 - SSR, SSG, Islands, Edge Runtime, 50+ UI Components, TypeScript, Tailwind v4",
5
+ "main": "dist/core/index.js",
6
+ "types": "dist/core/index.d.ts",
7
+ "type": "module",
8
+ "bin": {
9
+ "flexireact": "./dist/cli/index.js",
10
+ "flexi": "./dist/cli/index.js"
11
+ },
12
+ "exports": {
13
+ ".": "./dist/core/index.js",
14
+ "./client": "./dist/core/client/index.js",
15
+ "./server": "./dist/core/server/index.js",
16
+ "./render": "./dist/core/render/index.js",
17
+ "./config": "./dist/core/config.js",
18
+ "./types": "./dist/core/types.js"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "README.md",
23
+ "LICENSE"
24
+ ],
25
+ "scripts": {
26
+ "dev": "npx tsx cli/index.ts dev",
27
+ "build": "npx tsx cli/index.ts build",
28
+ "start": "npx tsx cli/index.ts start",
29
+ "build:package": "tsup",
30
+ "typecheck": "tsc --noEmit -p core/tsconfig.json"
31
+ },
32
+ "keywords": [
33
+ "react",
34
+ "framework",
35
+ "typescript",
36
+ "tailwind",
37
+ "ssr",
38
+ "ssg",
39
+ "rsc",
40
+ "islands",
41
+ "file-based-routing",
42
+ "nextjs-alternative",
43
+ "modern"
44
+ ],
45
+ "author": "FlexiReact Team",
46
+ "license": "MIT",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/flexireact/flexireact.git"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/flexireact/flexireact/issues"
53
+ },
54
+ "homepage": "https://github.com/flexireact/flexireact#readme",
55
+ "dependencies": {
56
+ "esbuild": "^0.25.0",
57
+ "ora": "^8.1.1",
58
+ "picocolors": "^1.1.1",
59
+ "prompts": "^2.4.2"
60
+ },
61
+ "peerDependencies": {
62
+ "react": "^18.0.0",
63
+ "react-dom": "^18.0.0"
64
+ },
65
+ "devDependencies": {
66
+ "@types/node": "^22.10.1",
67
+ "@types/prompts": "^2.4.9",
68
+ "@types/react": "^18.3.14",
69
+ "@types/react-dom": "^18.3.2",
70
+ "tsup": "^8.5.1",
71
+ "tsx": "^4.21.0",
72
+ "typescript": "^5.7.2"
73
+ },
74
+ "engines": {
75
+ "node": ">=18.0.0"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public"
79
+ }
80
+ }
package/bin/flexireact.js DELETED
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * FlexiReact CLI Entry Point
5
- * Uses tsx to run TypeScript CLI directly
6
- */
7
-
8
- import { spawnSync } from 'child_process';
9
- import { fileURLToPath } from 'url';
10
- import { dirname, join } from 'path';
11
-
12
- const __filename = fileURLToPath(import.meta.url);
13
- const __dirname = dirname(__filename);
14
-
15
- const cliPath = join(__dirname, '..', 'cli', 'index.ts');
16
-
17
- // Run the CLI with tsx
18
- const result = spawnSync('npx', ['tsx', cliPath, ...process.argv.slice(2)], {
19
- stdio: 'inherit',
20
- shell: true,
21
- });
22
-
23
- process.exit(result.status ?? 0);