create-gef 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.1](https://github.com/Gnzikoune/GEF/compare/v1.1.0...v1.1.1) (2026-07-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **generator:** installation Next/Vite non-interactive ([98882ae](https://github.com/Gnzikoune/GEF/commit/98882ae59fbcb78c628cadfa149a9b6ec3823006))
9
+ * **generator:** rendre l'installation Next et Vite silencieuse et non-interactive ([#8](https://github.com/Gnzikoune/GEF/issues/8)) ([4806b15](https://github.com/Gnzikoune/GEF/commit/4806b1526dcdcd356ab8817c55f374b2485ece35))
10
+
3
11
  ## [1.1.0](https://github.com/Gnzikoune/GEF/compare/v1.0.0...v1.1.0) (2026-07-20)
4
12
 
5
13
 
@@ -32,18 +32,17 @@ def read_root():
32
32
 
33
33
  /**
34
34
  * Lance le scaffolding du framework choisi.
35
- * @param {string} stack
36
- * @param {string} projectName
35
+ * @param {Object} answers
37
36
  * @param {string} projectPath
38
37
  */
39
- export function scaffoldStack(stack, projectName, projectPath) {
40
- if (stack === 'Projet vide') return;
38
+ export function scaffoldStack(answers, projectPath) {
39
+ if (answers.stack === 'Projet vide') return;
41
40
 
42
41
  const handlers = {
43
- 'Next.js (React)': () => scaffoldNext(projectName, projectPath),
44
- 'React (Vite)': () => scaffoldVite(projectName, projectPath),
42
+ 'Next.js (React)': () => scaffoldNext(answers, projectPath),
43
+ 'React (Vite)': () => scaffoldVite(answers, projectPath),
45
44
  'API Node.js (Express)': () => scaffoldExpress(),
46
- 'API Python (FastAPI)': () => scaffoldFastapi(projectName),
45
+ 'API Python (FastAPI)': () => scaffoldFastapi(answers.projectName),
47
46
  };
48
47
 
49
48
  const handler = handlers[stack];
@@ -57,21 +56,23 @@ export function scaffoldStack(stack, projectName, projectPath) {
57
56
  }
58
57
  }
59
58
 
60
- function scaffoldNext(projectName, projectPath) {
61
- console.log(chalk.magenta('\n▲ Lancement de create-next-app :\n'));
59
+ function scaffoldNext(answers, projectPath) {
60
+ console.log(chalk.magenta('\n▲ Lancement de create-next-app en mode silencieux :\n'));
62
61
  process.chdir(path.resolve(projectPath, '..'));
63
62
  fs.rmdirSync(projectPath);
64
- execSync(`npx create-next-app@latest ${projectName}`, { stdio: 'inherit' });
63
+
64
+ const eslintFlag = answers.linter.includes('ESLint') ? '--eslint' : '--no-eslint';
65
+ execSync(`npx create-next-app@latest ${answers.projectName} --typescript --tailwind ${eslintFlag} --app --src-dir --import-alias "@/*" --yes`, { stdio: 'inherit' });
65
66
  process.chdir(projectPath);
66
67
  console.log(chalk.yellow('\n🎭 Installation de Playwright (E2E)...'));
67
68
  execSync('npm init playwright@latest --yes -- --quiet --browser=chromium', { stdio: 'inherit' });
68
69
  }
69
70
 
70
- function scaffoldVite(projectName, projectPath) {
71
- console.log(chalk.magenta('\n⚡ Lancement de create-vite :\n'));
71
+ function scaffoldVite(answers, projectPath) {
72
+ console.log(chalk.magenta('\n⚡ Lancement de create-vite en mode silencieux :\n'));
72
73
  process.chdir(path.resolve(projectPath, '..'));
73
74
  fs.rmdirSync(projectPath);
74
- execSync(`npm create vite@latest ${projectName}`, { stdio: 'inherit' });
75
+ execSync(`npm create vite@latest ${answers.projectName} -- --template react-ts`, { stdio: 'inherit' });
75
76
  process.chdir(projectPath);
76
77
  console.log(chalk.yellow('\nInstallation des dépendances...'));
77
78
  execSync('npm install', { stdio: 'inherit' });
@@ -42,7 +42,7 @@ async function run() {
42
42
  fs.mkdirSync(projectPath, { recursive: true });
43
43
  process.chdir(projectPath);
44
44
 
45
- scaffoldStack(answers.stack, answers.projectName, projectPath);
45
+ scaffoldStack(answers, projectPath);
46
46
  scaffoldLinter(answers.linter, answers.stack);
47
47
  scaffoldGef(answers, GEF_DIR);
48
48
  if (answers.includeDocker) scaffoldDocker(answers.stack, answers.database, answers.projectName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gef",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Générateur interactif de projets respectant le framework GEF",
5
5
  "type": "module",
6
6
  "bin": {