the-scaffold-project
Version:
CLI tool to scaffold a project structure from a YAML file
105 lines (69 loc) β’ 2.77 kB
Markdown
# π οΈ the-scaffold-project
[](https://www.npmjs.com/package/the-scaffold-project) [](https://npmjs.org/package/the-scaffold-project)
> βTired of typing `mkdir` and `touch` like it's 2005? Let YAML do the boring stuff.β
**`the-scaffold-project`** is a no-nonsense, YAML-driven(yet) CLI tool that instantly sets up your project's folder and file structure β with optional content β so you can get to the fun part: actually building something.
## π What is this?
This CLI reads a `setup.yaml` file and builds your entire project directory tree for you β files, folders, even pre-filled content. It's like `create-react-app`, but for literally **any kind of project**.
## π§ Why should you care?
Because:
* You're sick of setting up the same folder structure over and over.
* You don't trust your teammates to name folders properly.
* You want your projects to look clean, consistent, and organized.
* You want to bootstrap like a boss in 5 seconds flat.
## π‘ Use Cases
* π Bootstrapping React, Flask, Node, or Golang projects
* π§ͺ Creating structured code environments for tutorials or workshops
* π§° Onboarding new devs with consistent layouts
* βοΈ Rapid prototyping during hackathons
* π§ Auto-generating config files, `.env`, Dockerfiles, and GitHub Actions
## π¦ Installation
```bash
npm install -g the-scaffold-project
```
## π οΈ Usage
1. Create a `setup.yaml` file in your current directory:
```yaml
project_name: my_cool_project
structure:
src:
- index.js
- utils.js: |
export const greet = () => console.log("Hello!");
README.md: |
# My Cool Project
Auto-generated by the-scaffold-project π
```
2. Run the CLI in your project directory:
```bash
npx scaffold
```
3. Boom. Folder structure created. Youβre a wizard now. π§
## ποΈ Example Output
With the above YAML, it generates:
```
my_cool_project/
βββ src/
β βββ index.js
β βββ utils.js // with content
βββ README.md // with content
```
## β‘ Features
* π Looks for `setup.yaml` in your current folder
* π§± Builds deep nested folder structures
* π Creates files with or without inline content
* π§Ή Clean, consistent boilerplate every time
* β‘ Fast, zero-dependency runtime (except YAML parser)
## β¨ Credits
Created with `mkdir`, `fs`, and **rage against repetitive setup**.
## Author
π The Chill Hacker
Made by [cinfinit](https://github.com/cinfinit), a dev who'd rather write one tool than five tutorials on how to set up the same folders.