create-fsd-architecture 1.0.3 → 1.0.4
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/bin/index.mjs +14 -13
- package/package.json +1 -1
package/bin/index.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
1
|
import degit from "degit";
|
|
4
2
|
import prompts from "prompts";
|
|
5
3
|
import chalk from "chalk";
|
|
@@ -13,28 +11,31 @@ const TEMPLATES = [
|
|
|
13
11
|
title: "React + Vite",
|
|
14
12
|
value: "react-vite",
|
|
15
13
|
description: "React with Vite and FSD architecture",
|
|
16
|
-
repo: "
|
|
14
|
+
repo: "FSD-architectures/FSD",
|
|
17
15
|
available: true,
|
|
18
16
|
},
|
|
19
17
|
{
|
|
20
18
|
title: "Next.js",
|
|
21
19
|
value: "nextjs",
|
|
22
20
|
description: "Next.js — Full-stack React framework with SSR, SSG, and App Router.",
|
|
23
|
-
repo: "
|
|
21
|
+
repo: "FSD-architectures/FSD-NEXTJS",
|
|
24
22
|
available: true,
|
|
25
23
|
},
|
|
26
24
|
];
|
|
27
25
|
|
|
28
26
|
function showBanner() {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
const banner = `
|
|
28
|
+
███████╗ ███████╗ ██████╗
|
|
29
|
+
██╔════╝ ██╔════╝ ██╔══██╗
|
|
30
|
+
█████╗ ███████╗ ██║ ██║
|
|
31
|
+
██╔══╝ ╚════██║ ██║ ██║
|
|
32
|
+
██║ ███████║ ██████╔╝
|
|
33
|
+
╚═╝ ╚══════╝ ╚═════╝
|
|
34
|
+
|
|
35
|
+
Feature-Sliced Design Scaffolding
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
console.log(chalk.cyanBright(banner));
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
function showNextSteps(projectName, depsInstalled) {
|