Welcome to the project! This project leverages various npm scripts for linting, formatting, cleaning, building, managing commands, and starting the application.
Follow these steps to get started:
- Clone the repository:
git clone https://github.com/lxhapp/luoxiaohei.git
- Navigate to the project directory:
cd luoxiaohei - Install the dependencies:
npm install
Here are the npm scripts you can use:
npm run lint: Runs ESLint on the project.npm run lint:fix: Runs ESLint and automatically fixes issues.
npm run format: Checks formatting with Prettier.npm run format:fix: Automatically formats code with Prettier.
npm run clean: Cleans the repository, excluding certain files.npm run clean:dry: Performs a dry run of the clean process.
npm run build: Compiles the TypeScript project.
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.
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.
npm run pm2:start: Starts the PM2 process.npm run pm2:stop: Stops the PM2 process.npm run pm2:delete: Deletes the PM2 process.
To use the npm scripts, you can run them with npm run <script-name>. For example, to lint your code, run:
npm run lint