Skip to content

CLI tool that generates customizable shell scripts for bootstrapping specifiable codebase directories.

License

Notifications You must be signed in to change notification settings

mattfsourcecode/bootstrapper-script-generator

Repository files navigation

Web app demo

Overview

A command-line tool that generates a shell script to reproduce an entire codebase. The script can be customized to accept arguments to conditionally include or exclude specified contents, and execute additional scripts, providing flexible control for framework instantiation.

Install globally

npm i -g bootstrapper-script-generator

Usage

  1. Navigate to the directory where the script will be created.

  2. Run the bootstrapper script generator by using the make-bootstrapper-script command and naming the output script file followed by the relative path to the directory intended to be bootstrapped. For example:

    make-bootstrapper-script new-bootstrapper-script.zsh ../path/to/the/project
  3. Make the generated script executable:

    chmod +x new-bootstrapper-script.zsh
  4. Execute the generated script:

    ./new-bootstrapper-script.zsh

    This recreates the codebase in the current directory.


logo

Contributions and Issues

Contributions are welcome! If you have ideas for improvements, open an issue.