create-fluxstack 1.0.4 → 1.0.5
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.
|
@@ -58,7 +58,11 @@
|
|
|
58
58
|
"Bash(./create-fluxstack.ts teste-v103)",
|
|
59
59
|
"Bash(./create-fluxstack.ts my-final-test)",
|
|
60
60
|
"Read(/C:\\Users\\Marcos\\Documents\\GitHub\\aviso-projeto\\test-npm-global/**)",
|
|
61
|
-
"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/**)"
|
|
62
66
|
],
|
|
63
67
|
"deny": []
|
|
64
68
|
}
|
package/create-fluxstack.ts
CHANGED
|
@@ -57,10 +57,12 @@ program
|
|
|
57
57
|
const filesToCopy = [
|
|
58
58
|
'core',
|
|
59
59
|
'app',
|
|
60
|
-
'
|
|
60
|
+
'ai-context', // ✅ CRITICAL: Copy AI documentation for users
|
|
61
|
+
'bun.lock', // ✅ CRITICAL: Copy lockfile to maintain working versions
|
|
61
62
|
'tsconfig.json',
|
|
62
63
|
'vite.config.ts',
|
|
63
|
-
'.env',
|
|
64
|
+
'.env.example', // ✅ Use .env.example as template
|
|
65
|
+
'CLAUDE.md', // ✅ Project instructions for AI assistants
|
|
64
66
|
'README.md'
|
|
65
67
|
]
|
|
66
68
|
|
|
@@ -106,11 +108,12 @@ program
|
|
|
106
108
|
writeFileSync(packageJsonPath, JSON.stringify(fallbackPackageJson, null, 2))
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
//
|
|
111
|
+
// Create .env from .env.example and set development mode
|
|
112
|
+
const envExamplePath = join(projectPath, '.env.example')
|
|
110
113
|
const envPath = join(projectPath, '.env')
|
|
111
|
-
if (existsSync(
|
|
112
|
-
const
|
|
113
|
-
const devEnvContent =
|
|
114
|
+
if (existsSync(envExamplePath)) {
|
|
115
|
+
const envExampleContent = readFileSync(envExamplePath, 'utf-8')
|
|
116
|
+
const devEnvContent = envExampleContent.replace(
|
|
114
117
|
'NODE_ENV=production',
|
|
115
118
|
'NODE_ENV=development'
|
|
116
119
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fluxstack",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "⚡ Modern full-stack TypeScript framework with Elysia + React + Bun",
|
|
5
5
|
"keywords": ["framework", "full-stack", "typescript", "elysia", "react", "bun", "vite"],
|
|
6
6
|
"author": "FluxStack Team",
|