0.9.0 • Published 4 months ago

bouer-cli v0.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Bouer CLI

Command Line Interface (CLI) for Bouer.js - A JavaScript Library for building user interfaces.

Table of Contents

Installation

Install the CLI globally using npm:

npm install -g bouer-cli

Features

  • Create new Bouer.js projects
  • Automatic dependency installation
  • Git repository initialization
  • Project scaffolding from templates

Available Commands

Basic Commands

  • bouer -v, --version - Display CLI version
  • bouer -h, --help - Display help information
  • bouer install - Installs dependencies for the current Bouer.js project
  • bouer create new <project-name> [-t, --template <type>] - Create a new Bouer.js project with optional template type (blank or routing)
  • bouer create component <component-name> [-p, --path <path>] - Create a new component in the current project
  • bouer create config [--preview] - Generates webpack.config.js based con cli webpack config file, or preview the cli configuration
  • bouer run - Runs the development live server for the current Bouer.js project
  • bouer build [-m, --mode <mode>] - Builds the Bouer.js project for development or production (dev or prod)

Create New Project

Create a new Bouer.js project with a starter template:

bouer create new <project-name> [-t, --template <type>]

Options:

  • --template <name> - Specify template to use (default: "blank")

Example:

bouer create new my-awesome-app

Run Development Server

Start the development server with hot-reload:

bouer run

Install Dependencies

Install or update project dependencies:

bouer install

Build Project

Build your project for production:

bouer build [options]

Options:

  • --mode <mode> - Build mode (dev/prod)

Development

To contribute to the CLI:

  1. Clone the repository:
git clone https://github.com/bouerjs/cli.git
cd cli
  1. Install dependencies:
npm install
  1. Link the package locally:
npm link

License

This project is licensed under the MIT License - see the LICENSE file for details.