create-alistt69-kit 0.1.3 โ†’ 0.1.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.
package/README.md CHANGED
@@ -65,7 +65,7 @@ npm create alistt69-kit@latest
65
65
  Follow the prompts โ€” or skip them entirely:
66
66
 
67
67
  ```bash
68
- npm create alistt69-kit@latest my-app -- --yes
68
+ npm create alistt69-kit@latest my-app -- --defaults
69
69
  ```
70
70
 
71
71
  ## ๐Ÿ› ๏ธ Usage examples
@@ -75,7 +75,7 @@ npm create alistt69-kit@latest my-app -- --yes
75
75
  npm create alistt69-kit@latest my-app
76
76
 
77
77
  # All defaults, no prompts
78
- npm create alistt69-kit@latest my-app -- --yes
78
+ npm create alistt69-kit@latest my-app -- --defaults
79
79
 
80
80
  # Skip dependency installation
81
81
  npm create alistt69-kit@latest my-app -- --no-install
@@ -90,19 +90,19 @@ npm create alistt69-kit@latest my-app -- --features=all
90
90
  npm create alistt69-kit@latest my-app -- --pm pnpm
91
91
 
92
92
  # Overwrite existing directory
93
- npm create alistt69-kit@latest my-app -- --yes --overwrite
93
+ npm create alistt69-kit@latest my-app -- --defaults --overwrite
94
94
  ```
95
95
 
96
96
  ## โš™๏ธ CLI options
97
97
 
98
- | Option | Alias | Description |
99
- |--------|-------|-------------|
100
- | `--yes` | `-y` | Skip prompts, use defaults |
101
- | `--overwrite` | โ€” | Overwrite target directory if it exists |
102
- | `--no-install` | โ€” | Skip dependency installation |
103
- | `--features <list>` | โ€” | Enable specific features (`eslint`, `react-router`, `all`) |
104
- | `--pm <name>` | โ€” | Choose package manager (`npm`, `pnpm`, `yarn`) |
105
- | `--help` | `-h` | Show help |
98
+ | Option | Alias | Description |
99
+ |--------|--------|-------------|
100
+ | `--defaults` | `-def` | Skip prompts, use defaults |
101
+ | `--overwrite` | โ€” | Overwrite target directory if it exists |
102
+ | `--no-install` | โ€” | Skip dependency installation |
103
+ | `--features <list>` | โ€” | Enable specific features (`eslint`, `react-router`, `all`) |
104
+ | `--pm <name>` | โ€” | Choose package manager (`npm`, `pnpm`, `yarn`) |
105
+ | `--help` | `-h` | Show help |
106
106
 
107
107
  ## ๐Ÿงช Default behavior
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-alistt69-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Opinionated React + TypeScript + Webpack project generator by alistt69",
5
5
  "keywords": [
6
6
  "create",
@@ -94,8 +94,8 @@ export async function collectProjectInfo(cliArgs = {}) {
94
94
  let shouldInstallDependencies = cliArgs.shouldInstallDependencies;
95
95
  let packageManager = cliArgs.packageManager;
96
96
 
97
- if (cliArgs.yes && !projectName) {
98
- throw new Error('Project name is required when using --yes');
97
+ if (cliArgs.defaults && !projectName) {
98
+ throw new Error('Project name is required when using --defaults');
99
99
  }
100
100
 
101
101
  if (!projectName) {
@@ -113,7 +113,7 @@ export async function collectProjectInfo(cliArgs = {}) {
113
113
  }
114
114
 
115
115
  if (selectedFeatureIds === undefined) {
116
- if (cliArgs.yes) {
116
+ if (cliArgs.defaults) {
117
117
  selectedFeatureIds = defaultFeatureIds;
118
118
  } else {
119
119
  note(
@@ -140,7 +140,7 @@ export async function collectProjectInfo(cliArgs = {}) {
140
140
  selectedFeatureIds = normalizeFeatureIds(selectedFeatureIds);
141
141
 
142
142
  if (!packageManager) {
143
- if (cliArgs.yes) {
143
+ if (cliArgs.defaults) {
144
144
  packageManager = defaultPackageManager;
145
145
  } else {
146
146
  packageManager = handleCancel(await select({
@@ -155,7 +155,7 @@ export async function collectProjectInfo(cliArgs = {}) {
155
155
  }
156
156
 
157
157
  if (shouldInstallDependencies === undefined) {
158
- if (cliArgs.yes) {
158
+ if (cliArgs.defaults) {
159
159
  shouldInstallDependencies = true;
160
160
  } else {
161
161
  shouldInstallDependencies = handleCancel(await confirm({
@@ -174,7 +174,7 @@ export async function collectProjectInfo(cliArgs = {}) {
174
174
 
175
175
  note(summaryLines.join('\n'), format.sectionTitle('Summary'));
176
176
 
177
- if (!cliArgs.yes) {
177
+ if (!cliArgs.defaults) {
178
178
  const shouldContinue = handleCancel(await confirm({
179
179
  message: 'Continue?',
180
180
  initialValue: true,
@@ -21,7 +21,7 @@ export async function createProject(cliArgs = {}) {
21
21
  const { targetDirPath } = await prepareTargetDirectory({
22
22
  projectName,
23
23
  overwrite: cliArgs.overwrite,
24
- yes: cliArgs.yes,
24
+ defaults: cliArgs.defaults,
25
25
  });
26
26
 
27
27
  const progress = spinner();
@@ -28,8 +28,8 @@ export function formatHelpMessage() {
28
28
  ' create-alistt69-kit <project-name> [options]',
29
29
  '',
30
30
  'Options:',
31
- ' -y, --yes Skip prompts and use defaults',
32
- ' --overwrite Overwrite target directory if it exists',
31
+ ' -def, --defaults Skip prompts and use defaults',
32
+ ' --overwrite Overwrite target directory if it exists',
33
33
  ' --no-install Do not install dependencies',
34
34
  ' --features <comma-list> Example: eslint,stylelint,react-router',
35
35
  ' --features all Enable all features',
@@ -45,8 +45,8 @@ export function formatHelpMessage() {
45
45
  ' create-alistt69-kit my-app',
46
46
  ' create-alistt69-kit my-app --features=all',
47
47
  ' create-alistt69-kit my-app --pm pnpm --no-install',
48
- ' create-alistt69-kit my-app --yes',
49
- ' create-alistt69-kit my-app --yes --overwrite',
48
+ ' create-alistt69-kit my-app --defaults',
49
+ ' create-alistt69-kit my-app --defaults --overwrite',
50
50
  ].join('\n');
51
51
  }
52
52
 
@@ -56,7 +56,7 @@ export function parseCliArgs(argv) {
56
56
  selectedFeatureIds: undefined,
57
57
  shouldInstallDependencies: undefined,
58
58
  packageManager: undefined,
59
- yes: false,
59
+ defaults: false,
60
60
  overwrite: false,
61
61
  showHelp: false,
62
62
  };
@@ -69,8 +69,8 @@ export function parseCliArgs(argv) {
69
69
  continue;
70
70
  }
71
71
 
72
- if (arg === '-y' || arg === '--yes') {
73
- result.yes = true;
72
+ if (arg === '-def' || arg === '--defaults') {
73
+ result.defaults = true;
74
74
  continue;
75
75
  }
76
76
 
@@ -15,7 +15,7 @@ async function pathExists(targetDirPath) {
15
15
  export async function prepareTargetDirectory({
16
16
  projectName,
17
17
  overwrite = false,
18
- yes = false,
18
+ defaults = false,
19
19
  }) {
20
20
  const targetDirPath = resolve(process.cwd(), projectName);
21
21
  const exists = await pathExists(targetDirPath);
@@ -46,7 +46,7 @@ export async function prepareTargetDirectory({
46
46
  };
47
47
  }
48
48
 
49
- if (yes) {
49
+ if (defaults) {
50
50
  throw new Error(
51
51
  `Directory already exists and is not empty: ${targetDirPath}. Use --overwrite to overwrite it.`,
52
52
  );
@@ -1,9 +1,12 @@
1
1
  import { RouterProvider } from 'react-router-dom';
2
2
  import { appRouter } from './providers/router/config/router';
3
+ import styles from './styles.module.scss';
3
4
 
4
5
  function App() {
5
6
  return (
6
- <RouterProvider router={appRouter} />
7
+ <div className={styles.app_wrapper}>
8
+ <RouterProvider router={appRouter} />
9
+ </div>
7
10
  );
8
11
  }
9
12
 
@@ -1,6 +1,10 @@
1
+ import styles from './styles.module.scss';
2
+
1
3
  function App() {
2
4
  return (
3
- <h1>alistt69</h1>
5
+ <div className={styles.app_wrapper}>
6
+ alistt69
7
+ </div>
4
8
  )
5
9
  }
6
10
 
@@ -0,0 +1,3 @@
1
+ .app_wrapper {
2
+
3
+ }
@@ -0,0 +1,16 @@
1
+ declare module '*.module.scss' {
2
+ type IClassNames = Record<string, string>;
3
+
4
+ const classNames: IClassNames;
5
+ export = classNames;
6
+ }
7
+
8
+ declare module '*.png';
9
+ declare module '*.jpg';
10
+ declare module '*.jpeg';
11
+ declare module '*.svg' {
12
+ import { FC, SVGProps } from 'react';
13
+
14
+ const SVG: FC<SVGProps<SVGSVGElement>>;
15
+ export default SVG;
16
+ }