Skip to content

Commit 5f77542

Browse files
committed
docs: add relevant info
1 parent 986386c commit 5f77542

File tree

1 file changed

+118
-1
lines changed

1 file changed

+118
-1
lines changed

README.md

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,119 @@
11
# visionBoard-cli
2-
CLI to interact with visionBoard API
2+
3+
[![PR Test](https://github.com/OpenPathfinder/visionBoard-cli/actions/workflows/pr-test.yml/badge.svg)](https://github.com/OpenPathfinder/visionBoard-cli/actions/workflows/pr-test.yml)
4+
5+
A command-line interface (CLI) tool for interacting with the visionBoard API.
6+
7+
8+
## Requirements
9+
10+
- Node.js (Latest LTS version recommended)
11+
12+
## Installation
13+
14+
### From npm
15+
16+
```bash
17+
npm install -g @openpathfinder/visionboard-cli
18+
```
19+
20+
### From source
21+
22+
```bash
23+
# Clone the repository
24+
git clone https://github.com/OpenPathfinder/visionBoard-cli.git
25+
cd visionBoard-cli
26+
27+
# Install dependencies
28+
npm install
29+
30+
# Build the project
31+
npm run build
32+
33+
# Create a global symlink (to use the CLI from anywhere)
34+
npm link
35+
```
36+
37+
### Using npx
38+
39+
```bash
40+
npx @openpathfinder/visionboard-cli
41+
```
42+
43+
## Usage
44+
45+
Once installed, you can run the CLI using:
46+
47+
```bash
48+
visionboard
49+
```
50+
51+
This will display the help information with available commands.
52+
53+
54+
## Development
55+
56+
```bash
57+
# Install dependencies
58+
npm install
59+
60+
# Run in development mode (without building)
61+
npm run dev
62+
63+
# Build the TypeScript code
64+
npm run build
65+
66+
# Run tests
67+
npm test
68+
69+
# Run tests with coverage
70+
npm run test:coverage
71+
72+
# Lint code
73+
npm run lint
74+
75+
# Fix linting issues
76+
npm run lint:fix
77+
78+
# Type check
79+
npm run type:check
80+
```
81+
82+
## Project Structure
83+
84+
```
85+
├── .github/workflows/ # GitHub Actions workflows
86+
├── dist/ # Compiled JavaScript output
87+
├── src/ # Source code
88+
│ ├── __tests__/ # Test files
89+
│ └── index.ts # Main entry point
90+
├── jest.config.js # Jest configuration
91+
├── package.json # Project configuration
92+
├── tsconfig.json # TypeScript configuration
93+
└── README.md # This file
94+
```
95+
96+
## CI/CD Pipeline
97+
98+
The project includes a GitHub Actions workflow for continuous integration that runs on pull requests to the main branch. The pipeline performs the following checks:
99+
100+
- Linting with StandardJS
101+
- Type checking with TypeScript
102+
- Building the project
103+
- Running tests with coverage reporting
104+
- Verifying binary execution
105+
106+
The pipeline runs on multiple platforms and Node.js versions to ensure maximum compatibility:
107+
108+
- **Operating Systems**: Ubuntu, Windows, and macOS
109+
- **Node.js Versions**: 18.x, 20.x, 22.x, 24.x
110+
111+
Test coverage reports are automatically uploaded as artifacts for each platform and Node.js version combination.
112+
113+
## Contributing
114+
115+
Contributions are welcome! Please feel free to submit a Pull Request.
116+
117+
## License
118+
119+
MIT © Ulises Gascón

0 commit comments

Comments
 (0)