Skip to content

๐ŸŒธ Luo Xiaohei is an anime cat from "The Legend of Hei"

License

Notifications You must be signed in to change notification settings

lxhapp/luoxiaohei

Repository files navigation

Luo Xiaohei

๐Ÿ“œ Description

Welcome to the project! This project leverages various npm scripts for linting, formatting, cleaning, building, managing commands, and starting the application.

๐Ÿ“– Table of Contents

  1. Installation
  2. Scripts
  3. Usage

๐Ÿš€ Installation

Follow these steps to get started:

  1. Clone the repository:
    git clone https://github.com/lxhapp/luoxiaohei.git
  2. Navigate to the project directory:
    cd luoxiaohei
  3. Install the dependencies:
    npm install

๐Ÿ› ๏ธ Scripts

Here are the npm scripts you can use:

Linting ๐Ÿงน

  • npm run lint: Runs ESLint on the project.
  • npm run lint:fix: Runs ESLint and automatically fixes issues.

Formatting โœจ

  • npm run format: Checks formatting with Prettier.
  • npm run format:fix: Automatically formats code with Prettier.

Cleaning ๐Ÿงผ

  • npm run clean: Cleans the repository, excluding certain files.
  • npm run clean:dry: Performs a dry run of the clean process.

Building ๐Ÿ› ๏ธ

  • npm run build: Compiles the TypeScript project.

Command Management โš™๏ธ

  • npm run commands:view: View the commands.
  • npm run commands:register: Register new commands.
  • npm run commands:rename: Rename existing commands.
  • npm run commands:delete: Delete commands.
  • npm run commands:clear: Clear all commands.

Starting the Application ๐Ÿš€

  • npm start: Starts the application.
  • npm run start:app: Builds and starts the application.
  • npm run start:manager: Builds and starts the manager.
  • npm run start:pm2: Builds and starts the application using PM2.

PM2 Management ๐Ÿ–ฅ๏ธ

  • npm run pm2:start: Starts the PM2 process.
  • npm run pm2:stop: Stops the PM2 process.
  • npm run pm2:delete: Deletes the PM2 process.

๐Ÿ’ก Usage

To use the npm scripts, you can run them with npm run <script-name>. For example, to lint your code, run:

npm run lint