Bob A Minimalist Build Tool for Node.js Projects
Bob is a convention-based build tool designed for Node.js projects. It offers a set of build-related tasks that work cross-platform with ease, requiring minimal configuration. By following a few simple conventions, Bob provides seamless usage without needing to manually configure tasks. It defaults to zero configuration and allows minimal customization when you want to override a default task type. Bob only installs the default tools, while other tools are delayed for installation as needed.
Bob operates without plugins, relying instead on various CLI tools, which are configured in a task file. Here's how to get started:
Installation
Run the following command to install globally:
npm install -g bob
Project Conventions
Your project must include:
- package.json file with at least the name and version.
- A lib/ directory for source code.
- A test/ directory for test code.
Usage
To run Bob from your project directory (where package.json is located):
bob clean lint test coverage
Robot Mode
To run Bob in robot mode (which generates machine-analyzable output):
BOB_MODE=robot bob clean
评论区