create-fluxstack 1.0.13 → 1.0.15
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/.env.example +29 -29
- package/app/client/README.md +69 -69
- package/app/client/index.html +14 -13
- package/app/client/src/App.tsx +157 -524
- package/app/client/src/components/ErrorBoundary.tsx +107 -0
- package/app/client/src/components/ErrorDisplay.css +365 -0
- package/app/client/src/components/ErrorDisplay.tsx +258 -0
- package/app/client/src/components/FluxStackConfig.tsx +1321 -0
- package/app/client/src/components/HybridLiveCounter.tsx +140 -0
- package/app/client/src/components/LiveClock.tsx +286 -0
- package/app/client/src/components/MainLayout.tsx +390 -0
- package/app/client/src/components/SidebarNavigation.tsx +391 -0
- package/app/client/src/components/StateDemo.tsx +178 -0
- package/app/client/src/components/SystemMonitor.tsx +1038 -0
- package/app/client/src/components/Teste.tsx +104 -0
- package/app/client/src/components/UserProfile.tsx +809 -0
- package/app/client/src/hooks/useAuth.ts +39 -0
- package/app/client/src/hooks/useNotifications.ts +56 -0
- package/app/client/src/lib/eden-api.ts +189 -53
- package/app/client/src/lib/errors.ts +340 -0
- package/app/client/src/lib/hooks/useErrorHandler.ts +258 -0
- package/app/client/src/lib/index.ts +45 -0
- package/app/client/src/main.tsx +3 -2
- package/app/client/src/pages/ApiDocs.tsx +182 -0
- package/app/client/src/pages/Demo.tsx +174 -0
- package/app/client/src/pages/HybridLive.tsx +263 -0
- package/app/client/src/pages/Overview.tsx +155 -0
- package/app/client/src/store/README.md +43 -0
- package/app/client/src/store/index.ts +16 -0
- package/app/client/src/store/slices/uiSlice.ts +151 -0
- package/app/client/src/store/slices/userSlice.ts +161 -0
- package/app/client/src/test/README.md +257 -0
- package/app/client/src/test/setup.ts +70 -0
- package/app/client/src/test/types.ts +12 -0
- package/app/client/src/vite-env.d.ts +1 -1
- package/app/client/tsconfig.app.json +44 -43
- package/app/client/tsconfig.json +7 -7
- package/app/client/tsconfig.node.json +25 -25
- package/app/client/zustand-setup.md +65 -0
- package/app/server/controllers/users.controller.ts +68 -68
- package/app/server/index.ts +9 -1
- package/app/server/live/CounterComponent.ts +191 -0
- package/app/server/live/FluxStackConfig.ts +529 -0
- package/app/server/live/LiveClockComponent.ts +214 -0
- package/app/server/live/SidebarNavigation.ts +156 -0
- package/app/server/live/SystemMonitor.ts +594 -0
- package/app/server/live/SystemMonitorIntegration.ts +151 -0
- package/app/server/live/TesteComponent.ts +87 -0
- package/app/server/live/UserProfileComponent.ts +135 -0
- package/app/server/live/register-components.ts +28 -0
- package/app/server/middleware/auth.ts +136 -0
- package/app/server/middleware/errorHandling.ts +250 -0
- package/app/server/middleware/index.ts +10 -0
- package/app/server/middleware/rateLimit.ts +193 -0
- package/app/server/middleware/requestLogging.ts +215 -0
- package/app/server/middleware/validation.ts +270 -0
- package/app/server/routes/index.ts +14 -2
- package/app/server/routes/upload.ts +92 -0
- package/app/server/routes/users.routes.ts +2 -9
- package/app/server/services/NotificationService.ts +302 -0
- package/app/server/services/UserService.ts +222 -0
- package/app/server/services/index.ts +46 -0
- package/core/cli/commands/plugin-deps.ts +263 -0
- package/core/cli/generators/README.md +339 -0
- package/core/cli/generators/component.ts +770 -0
- package/core/cli/generators/controller.ts +299 -0
- package/core/cli/generators/index.ts +144 -0
- package/core/cli/generators/interactive.ts +228 -0
- package/core/cli/generators/prompts.ts +83 -0
- package/core/cli/generators/route.ts +513 -0
- package/core/cli/generators/service.ts +465 -0
- package/core/cli/generators/template-engine.ts +154 -0
- package/core/cli/generators/types.ts +71 -0
- package/core/cli/generators/utils.ts +192 -0
- package/core/cli/index.ts +69 -0
- package/core/cli/plugin-discovery.ts +16 -85
- package/core/client/fluxstack.ts +17 -0
- package/core/client/hooks/index.ts +7 -0
- package/core/client/hooks/state-validator.ts +130 -0
- package/core/client/hooks/useAuth.ts +49 -0
- package/core/client/hooks/useChunkedUpload.ts +258 -0
- package/core/client/hooks/useHybridLiveComponent.ts +967 -0
- package/core/client/hooks/useWebSocket.ts +373 -0
- package/core/client/index.ts +47 -0
- package/core/client/state/createStore.ts +193 -0
- package/core/client/state/index.ts +15 -0
- package/core/config/env-dynamic.ts +1 -1
- package/core/config/env.ts +2 -1
- package/core/config/runtime-config.ts +3 -3
- package/core/config/schema.ts +84 -49
- package/core/framework/server.ts +30 -0
- package/core/index.ts +25 -0
- package/core/live/ComponentRegistry.ts +399 -0
- package/core/live/types.ts +164 -0
- package/core/plugins/built-in/live-components/commands/create-live-component.ts +1201 -0
- package/core/plugins/built-in/live-components/index.ts +27 -0
- package/core/plugins/built-in/logger/index.ts +1 -1
- package/core/plugins/built-in/monitoring/index.ts +1 -1
- package/core/plugins/built-in/static/index.ts +1 -1
- package/core/plugins/built-in/swagger/index.ts +1 -1
- package/core/plugins/built-in/vite/index.ts +1 -1
- package/core/plugins/dependency-manager.ts +384 -0
- package/core/plugins/index.ts +5 -1
- package/core/plugins/manager.ts +7 -3
- package/core/plugins/registry.ts +88 -10
- package/core/plugins/types.ts +11 -11
- package/core/server/framework.ts +43 -0
- package/core/server/index.ts +11 -1
- package/core/server/live/ComponentRegistry.ts +1017 -0
- package/core/server/live/FileUploadManager.ts +272 -0
- package/core/server/live/LiveComponentPerformanceMonitor.ts +930 -0
- package/core/server/live/SingleConnectionManager.ts +0 -0
- package/core/server/live/StateSignature.ts +644 -0
- package/core/server/live/WebSocketConnectionManager.ts +688 -0
- package/core/server/live/websocket-plugin.ts +435 -0
- package/core/server/middleware/errorHandling.ts +141 -0
- package/core/server/middleware/index.ts +16 -0
- package/core/server/plugins/static-files-plugin.ts +232 -0
- package/core/server/services/BaseService.ts +95 -0
- package/core/server/services/ServiceContainer.ts +144 -0
- package/core/server/services/index.ts +9 -0
- package/core/templates/create-project.ts +196 -33
- package/core/testing/index.ts +10 -0
- package/core/testing/setup.ts +74 -0
- package/core/types/build.ts +38 -14
- package/core/types/types.ts +319 -0
- package/core/utils/env-runtime.ts +7 -0
- package/core/utils/errors/handlers.ts +264 -39
- package/core/utils/errors/index.ts +528 -18
- package/core/utils/errors/middleware.ts +114 -0
- package/core/utils/logger/formatters.ts +222 -0
- package/core/utils/logger/index.ts +167 -48
- package/core/utils/logger/middleware.ts +253 -0
- package/core/utils/logger/performance.ts +384 -0
- package/core/utils/logger/transports.ts +365 -0
- package/create-fluxstack.ts +296 -296
- package/fluxstack.config.ts +17 -1
- package/package-template.json +66 -66
- package/package.json +31 -6
- package/public/README.md +16 -0
- package/vite.config.ts +29 -14
- package/.claude/settings.local.json +0 -74
- package/.github/workflows/ci-build-tests.yml +0 -480
- package/.github/workflows/dependency-management.yml +0 -324
- package/.github/workflows/release-validation.yml +0 -355
- package/.kiro/specs/fluxstack-architecture-optimization/design.md +0 -700
- package/.kiro/specs/fluxstack-architecture-optimization/requirements.md +0 -127
- package/.kiro/specs/fluxstack-architecture-optimization/tasks.md +0 -330
- package/CLAUDE.md +0 -200
- package/Dockerfile +0 -58
- package/Dockerfile.backend +0 -52
- package/Dockerfile.frontend +0 -54
- package/README-Docker.md +0 -85
- package/ai-context/00-QUICK-START.md +0 -86
- package/ai-context/README.md +0 -88
- package/ai-context/development/eden-treaty-guide.md +0 -362
- package/ai-context/development/patterns.md +0 -382
- package/ai-context/development/plugins-guide.md +0 -572
- package/ai-context/examples/crud-complete.md +0 -626
- package/ai-context/project/architecture.md +0 -399
- package/ai-context/project/overview.md +0 -213
- package/ai-context/recent-changes/eden-treaty-refactor.md +0 -281
- package/ai-context/recent-changes/type-inference-fix.md +0 -223
- package/ai-context/reference/environment-vars.md +0 -384
- package/ai-context/reference/troubleshooting.md +0 -407
- package/app/client/src/components/TestPage.tsx +0 -453
- package/bun.lock +0 -1063
- package/bunfig.toml +0 -16
- package/core/__tests__/integration.test.ts +0 -227
- package/core/build/index.ts +0 -186
- package/core/config/__tests__/config-loader.test.ts +0 -554
- package/core/config/__tests__/config-merger.test.ts +0 -657
- package/core/config/__tests__/env-converter.test.ts +0 -372
- package/core/config/__tests__/env-processor.test.ts +0 -431
- package/core/config/__tests__/env.test.ts +0 -452
- package/core/config/__tests__/integration.test.ts +0 -418
- package/core/config/__tests__/loader.test.ts +0 -331
- package/core/config/__tests__/schema.test.ts +0 -129
- package/core/config/__tests__/validator.test.ts +0 -318
- package/core/framework/__tests__/server.test.ts +0 -233
- package/core/plugins/__tests__/built-in.test.ts.disabled +0 -366
- package/core/plugins/__tests__/manager.test.ts +0 -398
- package/core/plugins/__tests__/monitoring.test.ts +0 -401
- package/core/plugins/__tests__/registry.test.ts +0 -335
- package/core/utils/__tests__/errors.test.ts +0 -139
- package/core/utils/__tests__/helpers.test.ts +0 -297
- package/core/utils/__tests__/logger.test.ts +0 -141
- package/create-test-app.ts +0 -156
- package/docker-compose.microservices.yml +0 -75
- package/docker-compose.simple.yml +0 -57
- package/docker-compose.yml +0 -71
- package/eslint.config.js +0 -23
- package/flux-cli.ts +0 -214
- package/nginx-lb.conf +0 -37
- package/publish.sh +0 -63
- package/run-clean.ts +0 -26
- package/run-env-tests.ts +0 -313
- package/tailwind.config.js +0 -34
- package/tests/__mocks__/api.ts +0 -56
- package/tests/fixtures/users.ts +0 -69
- package/tests/integration/api/users.routes.test.ts +0 -221
- package/tests/setup.ts +0 -29
- package/tests/unit/app/client/App-simple.test.tsx +0 -56
- package/tests/unit/app/client/App.test.tsx.skip +0 -237
- package/tests/unit/app/client/eden-api.test.ts +0 -186
- package/tests/unit/app/client/simple.test.tsx +0 -23
- package/tests/unit/app/controllers/users.controller.test.ts +0 -150
- package/tests/unit/core/create-project.test.ts.skip +0 -95
- package/tests/unit/core/framework.test.ts +0 -144
- package/tests/unit/core/plugins/logger.test.ts.skip +0 -268
- package/tests/unit/core/plugins/vite.test.ts.disabled +0 -188
- package/tests/utils/test-helpers.ts +0 -61
- package/vitest.config.ts +0 -50
- package/workspace.json +0 -6
package/package-template.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "PROJECT_NAME",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "PROJECT_NAME - Modern full-stack TypeScript application built with FluxStack",
|
|
5
|
-
"keywords": ["fluxstack", "bun", "typescript", "full-stack", "elysia", "react", "vite"],
|
|
6
|
-
"author": "Your Name",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "bun core/cli/index.ts dev",
|
|
11
|
-
"dev:clean": "bun run-clean.ts",
|
|
12
|
-
"dev:backend": "bun core/cli/index.ts dev:backend",
|
|
13
|
-
"dev:frontend": "bun core/cli/index.ts dev:frontend",
|
|
14
|
-
"build": "bun core/cli/index.ts build",
|
|
15
|
-
"build:backend": "bun core/cli/index.ts build:backend",
|
|
16
|
-
"build:frontend": "bun core/cli/index.ts build:frontend",
|
|
17
|
-
"start": "NODE_ENV=production bun app/server/index.ts",
|
|
18
|
-
"start:backend": "NODE_ENV=production bun app/server/backend-only.ts",
|
|
19
|
-
"start:frontend": "NODE_ENV=production bun app/client/frontend-only.ts",
|
|
20
|
-
"typecheck": "bunx tsc --noEmit",
|
|
21
|
-
"test": "vitest",
|
|
22
|
-
"test:ui": "vitest --ui",
|
|
23
|
-
"test:coverage": "vitest --coverage"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@eslint/js": "^9.30.1",
|
|
27
|
-
"@tailwindcss/vite": "^4.1.13",
|
|
28
|
-
"@testing-library/jest-dom": "^6.6.4",
|
|
29
|
-
"@testing-library/react": "^16.3.0",
|
|
30
|
-
"@testing-library/user-event": "^14.6.1",
|
|
31
|
-
"@types/bun": "latest",
|
|
32
|
-
"@types/node": "^24.5.2",
|
|
33
|
-
"@types/react": "^19.1.8",
|
|
34
|
-
"@types/react-dom": "^19.1.6",
|
|
35
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
36
|
-
"@vitest/ui": "^3.2.4",
|
|
37
|
-
"concurrently": "^9.2.0",
|
|
38
|
-
"eslint": "^9.30.1",
|
|
39
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
40
|
-
"eslint-plugin-react-refresh": "^0.4.20",
|
|
41
|
-
"globals": "^16.3.0",
|
|
42
|
-
"jsdom": "^26.1.0",
|
|
43
|
-
"tailwindcss": "^4.1.13",
|
|
44
|
-
"typescript": "^5.8.3",
|
|
45
|
-
"typescript-eslint": "^8.35.1",
|
|
46
|
-
"vitest": "^3.2.4"
|
|
47
|
-
},
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"@elysiajs/eden": "^1.3.2",
|
|
50
|
-
"@elysiajs/swagger": "^1.3.1",
|
|
51
|
-
"@types/http-proxy-middleware": "^1.0.0",
|
|
52
|
-
"@vitejs/plugin-react": "^4.6.0",
|
|
53
|
-
"chokidar": "^4.0.3",
|
|
54
|
-
"elysia": "^1.4.6",
|
|
55
|
-
"http-proxy-middleware": "^3.0.5",
|
|
56
|
-
"lightningcss": "^1.30.1",
|
|
57
|
-
"lucide-react": "^0.544.0",
|
|
58
|
-
"react": "^19.1.0",
|
|
59
|
-
"react-dom": "^19.1.0",
|
|
60
|
-
"vite": "^7.0.4"
|
|
61
|
-
},
|
|
62
|
-
"engines": {
|
|
63
|
-
"bun": ">=1.2.0"
|
|
64
|
-
},
|
|
65
|
-
"preferredPackageManager": "bun",
|
|
66
|
-
"trustedDependencies": ["esbuild"]
|
|
1
|
+
{
|
|
2
|
+
"name": "PROJECT_NAME",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "PROJECT_NAME - Modern full-stack TypeScript application built with FluxStack",
|
|
5
|
+
"keywords": ["fluxstack", "bun", "typescript", "full-stack", "elysia", "react", "vite"],
|
|
6
|
+
"author": "Your Name",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "bun core/cli/index.ts dev",
|
|
11
|
+
"dev:clean": "bun run-clean.ts",
|
|
12
|
+
"dev:backend": "bun core/cli/index.ts dev:backend",
|
|
13
|
+
"dev:frontend": "bun core/cli/index.ts dev:frontend",
|
|
14
|
+
"build": "bun core/cli/index.ts build",
|
|
15
|
+
"build:backend": "bun core/cli/index.ts build:backend",
|
|
16
|
+
"build:frontend": "bun core/cli/index.ts build:frontend",
|
|
17
|
+
"start": "NODE_ENV=production bun app/server/index.ts",
|
|
18
|
+
"start:backend": "NODE_ENV=production bun app/server/backend-only.ts",
|
|
19
|
+
"start:frontend": "NODE_ENV=production bun app/client/frontend-only.ts",
|
|
20
|
+
"typecheck": "bunx tsc --noEmit",
|
|
21
|
+
"test": "vitest",
|
|
22
|
+
"test:ui": "vitest --ui",
|
|
23
|
+
"test:coverage": "vitest --coverage"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@eslint/js": "^9.30.1",
|
|
27
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
28
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
29
|
+
"@testing-library/react": "^16.3.0",
|
|
30
|
+
"@testing-library/user-event": "^14.6.1",
|
|
31
|
+
"@types/bun": "latest",
|
|
32
|
+
"@types/node": "^24.5.2",
|
|
33
|
+
"@types/react": "^19.1.8",
|
|
34
|
+
"@types/react-dom": "^19.1.6",
|
|
35
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
36
|
+
"@vitest/ui": "^3.2.4",
|
|
37
|
+
"concurrently": "^9.2.0",
|
|
38
|
+
"eslint": "^9.30.1",
|
|
39
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
40
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
41
|
+
"globals": "^16.3.0",
|
|
42
|
+
"jsdom": "^26.1.0",
|
|
43
|
+
"tailwindcss": "^4.1.13",
|
|
44
|
+
"typescript": "^5.8.3",
|
|
45
|
+
"typescript-eslint": "^8.35.1",
|
|
46
|
+
"vitest": "^3.2.4"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@elysiajs/eden": "^1.3.2",
|
|
50
|
+
"@elysiajs/swagger": "^1.3.1",
|
|
51
|
+
"@types/http-proxy-middleware": "^1.0.0",
|
|
52
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
53
|
+
"chokidar": "^4.0.3",
|
|
54
|
+
"elysia": "^1.4.6",
|
|
55
|
+
"http-proxy-middleware": "^3.0.5",
|
|
56
|
+
"lightningcss": "^1.30.1",
|
|
57
|
+
"lucide-react": "^0.544.0",
|
|
58
|
+
"react": "^19.1.0",
|
|
59
|
+
"react-dom": "^19.1.0",
|
|
60
|
+
"vite": "^7.0.4"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"bun": ">=1.2.0"
|
|
64
|
+
},
|
|
65
|
+
"preferredPackageManager": "bun",
|
|
66
|
+
"trustedDependencies": ["esbuild"]
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fluxstack",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "⚡ Modern full-stack TypeScript framework with Elysia + React + Bun",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"framework",
|
|
7
|
+
"full-stack",
|
|
8
|
+
"typescript",
|
|
9
|
+
"elysia",
|
|
10
|
+
"react",
|
|
11
|
+
"bun",
|
|
12
|
+
"vite"
|
|
13
|
+
],
|
|
6
14
|
"author": "FluxStack Team",
|
|
7
15
|
"license": "MIT",
|
|
8
16
|
"homepage": "https://github.com/MarcosBrendonDePaula/FluxStack",
|
|
9
17
|
"repository": {
|
|
10
18
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/MarcosBrendonDePaula/FluxStack.git"
|
|
19
|
+
"url": "git+https://github.com/MarcosBrendonDePaula/FluxStack.git"
|
|
12
20
|
},
|
|
13
21
|
"module": "app/server/index.ts",
|
|
14
22
|
"type": "module",
|
|
15
23
|
"bin": {
|
|
16
|
-
"create-fluxstack": "
|
|
24
|
+
"create-fluxstack": "create-fluxstack.ts"
|
|
17
25
|
},
|
|
18
26
|
"scripts": {
|
|
19
27
|
"dev": "bun run core/cli/index.ts dev",
|
|
@@ -32,11 +40,18 @@
|
|
|
32
40
|
"docker:compose": "cd dist && docker-compose up -d",
|
|
33
41
|
"docker:stop": "cd dist && docker-compose down",
|
|
34
42
|
"create": "bun run core/cli/index.ts create",
|
|
43
|
+
"cli": "bun run core/cli/index.ts",
|
|
44
|
+
"make:component": "bun run core/cli/index.ts make:component",
|
|
45
|
+
"make:live": "bun run core/cli/index.ts make:component",
|
|
35
46
|
"test": "vitest",
|
|
36
47
|
"test:ui": "vitest --ui",
|
|
37
48
|
"test:run": "vitest run",
|
|
38
49
|
"test:coverage": "vitest run --coverage",
|
|
39
50
|
"test:watch": "vitest --watch",
|
|
51
|
+
"test:live": "tsx scripts/test-live-components.ts",
|
|
52
|
+
"test:live:coverage": "tsx scripts/test-live-components.ts --coverage",
|
|
53
|
+
"test:live:watch": "tsx scripts/test-live-components.ts --watch",
|
|
54
|
+
"test:live:verbose": "tsx scripts/test-live-components.ts --verbose",
|
|
40
55
|
"test:config": "bun run core/config/__tests__/run-tests.ts",
|
|
41
56
|
"test:config:coverage": "bun run core/config/__tests__/run-tests.ts coverage",
|
|
42
57
|
"test:config:manual": "bun run core/config/__tests__/manual-test.ts",
|
|
@@ -60,15 +75,20 @@
|
|
|
60
75
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
61
76
|
"globals": "^16.3.0",
|
|
62
77
|
"jsdom": "^26.1.0",
|
|
78
|
+
"rollup": "4.20.0",
|
|
63
79
|
"tailwindcss": "^4.1.13",
|
|
64
80
|
"typescript": "^5.8.3",
|
|
65
81
|
"typescript-eslint": "^8.35.1",
|
|
82
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
66
83
|
"vitest": "^3.2.4"
|
|
67
84
|
},
|
|
68
85
|
"dependencies": {
|
|
69
86
|
"@elysiajs/eden": "^1.3.2",
|
|
70
87
|
"@elysiajs/swagger": "^1.3.1",
|
|
88
|
+
"@noble/curves": "^1.2.0",
|
|
89
|
+
"@noble/hashes": "^1.3.2",
|
|
71
90
|
"@types/http-proxy-middleware": "^1.0.0",
|
|
91
|
+
"@types/ws": "^8.18.1",
|
|
72
92
|
"@vitejs/plugin-react": "^4.6.0",
|
|
73
93
|
"chalk": "^5.3.0",
|
|
74
94
|
"chokidar": "^4.0.3",
|
|
@@ -80,10 +100,15 @@
|
|
|
80
100
|
"ora": "^8.1.0",
|
|
81
101
|
"react": "^19.1.0",
|
|
82
102
|
"react-dom": "^19.1.0",
|
|
83
|
-
"
|
|
103
|
+
"react-icons": "^5.5.0",
|
|
104
|
+
"react-router-dom": "^7.9.3",
|
|
105
|
+
"uuid": "^13.0.0",
|
|
106
|
+
"vite": "^7.1.7",
|
|
107
|
+
"ws": "^8.18.3",
|
|
108
|
+
"zustand": "^5.0.8"
|
|
84
109
|
},
|
|
85
110
|
"engines": {
|
|
86
111
|
"bun": ">=1.2.0"
|
|
87
112
|
},
|
|
88
113
|
"preferredPackageManager": "bun"
|
|
89
|
-
}
|
|
114
|
+
}
|
package/public/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# FluxStack Public Directory
|
|
2
|
+
|
|
3
|
+
This directory serves static files via the static-files plugin.
|
|
4
|
+
|
|
5
|
+
## Available Routes:
|
|
6
|
+
- `/api/static/*` - Serves files from this directory
|
|
7
|
+
- `/api/uploads/*` - Serves uploaded files
|
|
8
|
+
|
|
9
|
+
## Example:
|
|
10
|
+
- Put `logo.png` here to access it at `/api/static/images/logo.png`
|
|
11
|
+
|
|
12
|
+
## Features:
|
|
13
|
+
- Automatic MIME type detection
|
|
14
|
+
- Cache headers (1 year default)
|
|
15
|
+
- Security headers
|
|
16
|
+
- Path traversal protection
|
package/vite.config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineConfig } from 'vite'
|
|
2
2
|
import react from '@vitejs/plugin-react'
|
|
3
3
|
import tailwindcss from '@tailwindcss/vite'
|
|
4
|
+
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
4
5
|
import { resolve } from 'path'
|
|
5
6
|
import { fileURLToPath, URL } from 'node:url'
|
|
6
7
|
|
|
@@ -8,7 +9,20 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
|
|
8
9
|
|
|
9
10
|
// https://vite.dev/config/
|
|
10
11
|
export default defineConfig({
|
|
11
|
-
plugins: [
|
|
12
|
+
plugins: [
|
|
13
|
+
react(),
|
|
14
|
+
tailwindcss(),
|
|
15
|
+
nodePolyfills({
|
|
16
|
+
// Para adicionar polyfills específicos do Node.js
|
|
17
|
+
include: ['process'],
|
|
18
|
+
// Polyfill de globals específicos
|
|
19
|
+
globals: {
|
|
20
|
+
Buffer: false, // Não precisamos de Buffer
|
|
21
|
+
global: true,
|
|
22
|
+
process: true,
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
],
|
|
12
26
|
root: 'app/client',
|
|
13
27
|
server: {
|
|
14
28
|
port: 5173,
|
|
@@ -25,18 +39,19 @@ export default defineConfig({
|
|
|
25
39
|
outDir: '../../dist/client'
|
|
26
40
|
},
|
|
27
41
|
resolve: {
|
|
28
|
-
alias:
|
|
29
|
-
'
|
|
30
|
-
'@/core': resolve(__dirname, './core'),
|
|
31
|
-
'
|
|
32
|
-
'@/
|
|
33
|
-
'@/
|
|
34
|
-
'@/
|
|
35
|
-
'@/
|
|
36
|
-
'@/
|
|
37
|
-
'@/
|
|
38
|
-
'@/
|
|
39
|
-
'@/
|
|
40
|
-
|
|
42
|
+
alias: [
|
|
43
|
+
{ find: 'fluxstack', replacement: resolve(__dirname, './core/client/fluxstack') },
|
|
44
|
+
{ find: '@/core', replacement: resolve(__dirname, './core') },
|
|
45
|
+
{ find: '@', replacement: resolve(__dirname, './app/client/src') },
|
|
46
|
+
{ find: '@/app', replacement: resolve(__dirname, './app') },
|
|
47
|
+
{ find: '@/config', replacement: resolve(__dirname, './config') },
|
|
48
|
+
{ find: '@/shared', replacement: resolve(__dirname, './app/shared') },
|
|
49
|
+
{ find: '@/components', replacement: resolve(__dirname, './app/client/src/components') },
|
|
50
|
+
{ find: '@/utils', replacement: resolve(__dirname, './app/client/src/utils') },
|
|
51
|
+
{ find: '@/hooks', replacement: resolve(__dirname, './app/client/src/hooks') },
|
|
52
|
+
{ find: '@/assets', replacement: resolve(__dirname, './app/client/src/assets') },
|
|
53
|
+
{ find: '@/lib', replacement: resolve(__dirname, './app/client/src/lib') },
|
|
54
|
+
{ find: '@/types', replacement: resolve(__dirname, './app/client/src/types') }
|
|
55
|
+
]
|
|
41
56
|
}
|
|
42
57
|
})
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
|
-
"permissions": {
|
|
4
|
-
"allow": [
|
|
5
|
-
"Bash(bun init:*)",
|
|
6
|
-
"Bash(mkdir:*)",
|
|
7
|
-
"Bash(bun create:*)",
|
|
8
|
-
"Bash(bun install:*)",
|
|
9
|
-
"Bash(bun run:*)",
|
|
10
|
-
"Bash(bun add:*)",
|
|
11
|
-
"Bash(NODE_ENV=production bun run start)",
|
|
12
|
-
"Bash(NODE_ENV=production bun run dist/index.js)",
|
|
13
|
-
"Bash(cp:*)",
|
|
14
|
-
"Bash(mv:*)",
|
|
15
|
-
"Bash(git add:*)",
|
|
16
|
-
"Bash(git commit:*)",
|
|
17
|
-
"Bash(git config:*)",
|
|
18
|
-
"Bash(diff:*)",
|
|
19
|
-
"Bash(find:*)",
|
|
20
|
-
"Bash(ls:*)",
|
|
21
|
-
"Bash(rm:*)",
|
|
22
|
-
"Bash(grep:*)",
|
|
23
|
-
"Bash(timeout:*)",
|
|
24
|
-
"Bash(docker:*)",
|
|
25
|
-
"Bash(curl:*)",
|
|
26
|
-
"Bash(npm run dev:*)",
|
|
27
|
-
"Bash(bun core/cli/index.ts dev)",
|
|
28
|
-
"Bash(npm run build:*)",
|
|
29
|
-
"Bash(npx tsc:*)",
|
|
30
|
-
"Bash(bun:*)",
|
|
31
|
-
"Bash(vite build:*)",
|
|
32
|
-
"Bash(tsc --noEmit)",
|
|
33
|
-
"WebSearch",
|
|
34
|
-
"WebFetch(domain:elysiajs.com)",
|
|
35
|
-
"Bash(tree:*)",
|
|
36
|
-
"Bash(git checkout:*)",
|
|
37
|
-
"Bash(npx tailwindcss init:*)",
|
|
38
|
-
"Bash(pkill:*)",
|
|
39
|
-
"Bash(taskkill:*)",
|
|
40
|
-
"Bash(npx eslint:*)",
|
|
41
|
-
"Bash(export NODE_ENV=production)",
|
|
42
|
-
"WebFetch(domain:vite.dev)",
|
|
43
|
-
"Bash(git restore:*)",
|
|
44
|
-
"Bash(NODE_ENV=production bun run app/server/index.ts)",
|
|
45
|
-
"Bash(NODE_ENV=production bun dist/index.js)",
|
|
46
|
-
"Bash(NODE_ENV=production bun run build)",
|
|
47
|
-
"Bash(chmod:*)",
|
|
48
|
-
"Bash(./flux-cli.ts:*)",
|
|
49
|
-
"Bash(./create-fluxstack.ts divine-app)",
|
|
50
|
-
"Bash(./create-fluxstack.ts divine-app-fixed)",
|
|
51
|
-
"Bash(NODE_ENV=development bun run dev)",
|
|
52
|
-
"Bash(./create-fluxstack.ts meu-app-teste)",
|
|
53
|
-
"Bash(npm whoami:*)",
|
|
54
|
-
"Bash(npm publish:*)",
|
|
55
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto/**)",
|
|
56
|
-
"Bash(cat:*)",
|
|
57
|
-
"Bash(./create-fluxstack.ts teste-corrigido)",
|
|
58
|
-
"Bash(./create-fluxstack.ts teste-v103)",
|
|
59
|
-
"Bash(./create-fluxstack.ts my-final-test)",
|
|
60
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-npm-global/**)",
|
|
61
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-npm-global/**)",
|
|
62
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-npm-global/**)",
|
|
63
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-cli-update\\ai-context/**)",
|
|
64
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-cli-update/**)",
|
|
65
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-cli-update/**)",
|
|
66
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-gitignore/**)",
|
|
67
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-plugins-guide/**)",
|
|
68
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-plugins-guide\\ai-context\\development/**)",
|
|
69
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-env-fix/**)",
|
|
70
|
-
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\final-test/**)"
|
|
71
|
-
],
|
|
72
|
-
"deny": []
|
|
73
|
-
}
|
|
74
|
-
}
|