@imbrace-open-source/create-imbrace-app
v1.0.0
Published
A develop app with imbrace boilerplate
Readme
create-imbrace-app
A CLI tool to quickly scaffold a new project from a boilerplate repository.
Installation
Global Installation (Recommended)
Install the package globally via npm:
npm install -g create-imbrace-appAfter installation, you can use the CLI command anywhere:
create-imbrace-app my-projectUsing npx (No Installation Required)
You can run the tool directly without installing it:
npx create-imbrace-app my-projectUsage
Basic Usage
create-imbrace-app [projectName]If you don't provide a project name, the CLI will prompt you for one.
Interactive Mode
Simply run the command without arguments:
create-imbrace-appYou'll be prompted to:
- Enter your project name
- Choose whether to install dependencies automatically
Command Options
| Option | Description | Default |
|--------|-------------|---------|
| [projectName] | Name of your project directory | Prompts if not provided |
| --repo <url> | Custom git repository URL to clone from | https://github.com/kelvin-nguyen-1/boilerplate |
| --no-install | Skip automatic dependency installation | Dependencies are installed by default |
| -h, --help | Display help information | - |
Examples
Create a project with default settings
create-imbrace-app my-awesome-appCreate a project from a custom repository
create-imbrace-app my-app --repo https://github.com/username/my-boilerplateCreate a project without installing dependencies
create-imbrace-app my-app --no-installThen install dependencies manually later:
cd my-app
npm installWhat It Does
When you run the command, the tool will:
- Clone the repository - Downloads the boilerplate from the specified git repository (main branch)
- Clean up - Removes
.git,dist, andbuilddirectories from the cloned project - Install dependencies (optional) - Runs
npm install --legacy-peer-depsif you choose to install - Display next steps - Shows you commands to get started with your new project
After Creation
Once your project is created, navigate to the directory and start developing:
cd my-project
npm run devRequirements
- Node.js (v14 or higher recommended)
- Git (for cloning repositories)
- npm or npx
Development
To work on this tool locally:
- Clone this repository
- Install dependencies:
npm install - Link the package locally:
npm link - Test the command:
create-imbrace-app test-project
License
ISC
