Skip to content

Commit a254a1c

Browse files
feat: add changelog and update README to reference it; refactor setupEnv function
1 parent 5d04c38 commit a254a1c

File tree

4 files changed

+61
-3
lines changed

4 files changed

+61
-3
lines changed

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# 📦 Changelog
2+
3+
All notable changes to **create-node-spark** will be documented in this file.
4+
5+
This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
---
9+
10+
## [2.0.0] — 2025-05-06
11+
12+
### 🚀 Major Upgrade
13+
14+
- **Added TypeScript support**
15+
- Option to scaffold in **JavaScript** or **TypeScript**
16+
- Kept detailed folder structure from 1.1.0
17+
- **Removed built-in auth and Multer installation** (focus on clean, unopinionated scaffolding)
18+
- **Added “None” option** — if no framework is selected, uses native Node.js `http` module to set up a basic server
19+
- Improved CLI prompts and **terminal UI**
20+
21+
---
22+
23+
## [1.1.0] — 2025-05-04
24+
25+
### ✨ Features
26+
27+
- Added **ESLint** option
28+
- Improved output folder structure:
29+
- `src/controllers`
30+
- `src/models`
31+
- `src/routes`
32+
- `src/middlewares`
33+
- `src/utils`
34+
- `src/config`
35+
36+
---
37+
38+
## [1.0.1] — 2025-05-03
39+
40+
### 🎉 Fixed a minor Bug
41+
42+
---
43+
44+
## [1.0.0] — 2025-05-03
45+
46+
### 🎉 Initial Release
47+
48+
- Supports **JavaScript** scaffolding
49+
- Built-in installation for:
50+
- **Authentication setup**
51+
- **Multer** for file uploads
52+
- Basic Express server setup
53+
54+
---

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,7 @@ This project stands on the shoulders of some amazing tools and libraries:
385385
- **The open-source community** — For constant inspiration and pushing the ecosystem forward.
386386

387387
> Special thanks to everyone who has contributed issues, discussions, or pull requests — you make create-node-spark better every day!
388+
389+
## 📜 Changelog
390+
391+
For detailed version history, check the [CHANGELOG.md](./CHANGELOG.md).

src/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const project = async () => {
2626

2727
await setupFolderStructure(projectDetails.projectName);
2828

29-
await setupEnv(projectDetails.projectName, projectDetails.language);
29+
await setupEnv(projectDetails.language);
3030

3131
await configureIndex(projectDetails.projectName, projectDetails.language, projectDetails.framework);
3232

src/tasks/setupEnv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { writeFile } from "../utils/fileSystem.js";
22
import path from "path";
33

4-
export async function setupEnv(projectName, language) {
4+
export async function setupEnv(language) {
55
try {
66

77
const extension = language === "TypeScript" ? "ts" : "js";
@@ -42,7 +42,7 @@ export default ENV;
4242
4343
`;
4444

45-
writeFile(configEnvPath, configEnvContent.trim(), "utf-8")
45+
await writeFile(configEnvPath, configEnvContent.trim(), "utf-8")
4646

4747
}
4848

0 commit comments

Comments
 (0)