@enfyra/create-app 0.1.33 → 0.1.35

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.
@@ -67,16 +67,19 @@ async function setupProject(config, projectPath) {
67
67
  });
68
68
  spinner.succeed(chalk.green('Template downloaded successfully'));
69
69
 
70
+ // Remove .github folder if it exists
71
+ const githubFolderPath = path.join(projectPath, '.github');
72
+ if (fs.existsSync(githubFolderPath)) {
73
+ await fs.remove(githubFolderPath);
74
+ }
75
+
70
76
  // Update package.json
71
77
  spinner.start(chalk.blue('Updating package.json...'));
72
78
  await updatePackageJson(projectPath, config);
73
79
  spinner.succeed(chalk.green('Package.json updated'));
74
80
 
75
81
 
76
- // Update Nuxt config with API URL
77
- spinner.start(chalk.blue('Configuring Nuxt with API URL...'));
78
- await updateNuxtConfig(projectPath, config);
79
- spinner.succeed(chalk.green('Nuxt configuration updated'));
82
+ // Skip modifying Nuxt config; API URL is managed via .env only
80
83
 
81
84
  // Generate environment file
82
85
  spinner.start(chalk.blue('Generating environment file...'));
@@ -171,30 +174,7 @@ async function cleanPackageManagerRestrictions(projectPath) {
171
174
  }
172
175
 
173
176
 
174
- async function updateNuxtConfig(projectPath, config) {
175
- const nuxtConfigPath = path.join(projectPath, 'nuxt.config.ts');
176
-
177
- if (fs.existsSync(nuxtConfigPath)) {
178
- let nuxtConfig = await fs.readFile(nuxtConfigPath, 'utf8');
179
-
180
- // Update enfyraSDK apiUrl
181
- if (nuxtConfig.includes('enfyraSDK:')) {
182
- nuxtConfig = nuxtConfig.replace(
183
- /enfyraSDK:\s*\{[^}]*\}/,
184
- `enfyraSDK: {\n apiUrl: "${config.apiUrl}"\n }`
185
- );
186
- } else {
187
- // Add enfyraSDK config
188
- nuxtConfig = nuxtConfig.replace(
189
- /}\);?\s*$/,
190
- ` enfyraSDK: {\n apiUrl: "${config.apiUrl}"\n },\n});\n`
191
- );
192
- }
193
-
194
-
195
- await fs.writeFile(nuxtConfigPath, nuxtConfig);
196
- }
197
- }
177
+ // No-op: Nuxt configuration is not altered by the scaffolder anymore
198
178
 
199
179
  async function installDependencies(projectPath, config) {
200
180
  const commands = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enfyra/create-app",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "Create Enfyra frontend applications with ease",
5
5
  "main": "index.js",
6
6
  "bin": {