@adriankulik/create-fullstack-app 1.0.0 → 1.1.0
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 +15 -4
- package/cli/index.js +11 -0
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -11,14 +11,14 @@ Before running the CLI or the scaffolded applications, ensure you have the follo
|
|
|
11
11
|
|
|
12
12
|
## Quickstart
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
To generate a new full-stack application, simply run:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
|
|
18
|
-
npm install
|
|
19
|
-
node index.js
|
|
17
|
+
npx @adriankulik/create-fullstack-app@latest
|
|
20
18
|
```
|
|
21
19
|
|
|
20
|
+
*(If you are developing locally, run `npm install` in the root directory and execute `node cli/index.js`).*
|
|
21
|
+
|
|
22
22
|
You will be prompted to choose a project name, your preferred frontend, and backend framework.
|
|
23
23
|
|
|
24
24
|
## Features
|
|
@@ -82,3 +82,14 @@ Future plans for this CLI include:
|
|
|
82
82
|
|
|
83
83
|
- Adding frontend framework-specific component libraries during the scaffold step.
|
|
84
84
|
- Tackling **.NET** as a new backend option.
|
|
85
|
+
|
|
86
|
+
## Acknowledgements
|
|
87
|
+
|
|
88
|
+
This project redistributes boilerplate code and configuration files generated by the official CLIs and templates of the integrated frameworks. We are grateful to the maintainers of these projects:
|
|
89
|
+
|
|
90
|
+
- [Next.js](https://nextjs.org/) (MIT License)
|
|
91
|
+
- [Angular](https://angular.dev/) (MIT License)
|
|
92
|
+
- [Vue.js](https://vuejs.org/) (MIT License)
|
|
93
|
+
- [Svelte](https://svelte.dev/) (MIT License)
|
|
94
|
+
- [FastAPI](https://fastapi.tiangolo.com/) (MIT License)
|
|
95
|
+
- [Flask](https://flask.palletsprojects.com/) (BSD 3-Clause License)
|
package/cli/index.js
CHANGED
|
@@ -144,6 +144,17 @@ async function main() {
|
|
|
144
144
|
console.log(pc.yellow(' Could not set up Python virtual environment automatically. Please set it up manually.'));
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
// 7. Initialize Git repository
|
|
148
|
+
console.log(pc.blue('\nInitializing Git repository...'));
|
|
149
|
+
try {
|
|
150
|
+
execSync('git init', { cwd: targetDir, stdio: 'ignore' });
|
|
151
|
+
execSync('git add .', { cwd: targetDir, stdio: 'ignore' });
|
|
152
|
+
execSync('git commit -m "Initial commit from create-fullstack-app"', { cwd: targetDir, stdio: 'ignore' });
|
|
153
|
+
console.log(pc.cyan(' Git repository initialized.'));
|
|
154
|
+
} catch (e) {
|
|
155
|
+
console.log(pc.yellow(' Could not initialize Git repository automatically. You may need to run git init yourself.'));
|
|
156
|
+
}
|
|
157
|
+
|
|
147
158
|
console.log(pc.green(`\nSuccess! Created ${projectName} at ${targetDir}`));
|
|
148
159
|
console.log('\nInside that directory, you can run several commands:\n');
|
|
149
160
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adriankulik/create-fullstack-app",
|
|
3
|
-
"
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "1.1.0",
|
|
4
7
|
"description": "A CLI tool for scaffolding a full-stack web application with your choice of frontend and backend technologies.",
|
|
5
8
|
"main": "cli/index.js",
|
|
6
9
|
"bin": {
|