UNPKG

the-scaffold-project

Version:

CLI tool to scaffold a project structure from a YAML file

105 lines (69 loc) β€’ 2.77 kB
# πŸ› οΈ the-scaffold-project [![NPM version](https://img.shields.io/npm/v/the-scaffold-project.svg?style=flat)](https://www.npmjs.com/package/the-scaffold-project) [![NPM downloads](https://img.shields.io/npm/dm/the-scaffold-project.svg?style=flat)](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.