0.1.3 • Published 5 months ago
@faubulous/mentor-cli v0.1.3
Mentor CLI
A collection of command-line utilities which are intended to support CI workflows for projects that use RDF technologies.
Features
- Generate TypeScript modules from RDF vocabularies.
- Supports glob patterns for batch processing.
- Optional generation of
index.tsandsrc.tsfiles for easy imports. - CLI interface for easy integration into build pipelines.
Getting Started
1. Clone the Repository
git clone https://github.com/yourusername/mentor-cli.git
cd mentor-cli2. Install Dependencies
npm install3. Build the Project
npm run buildThis will compile the TypeScript source code into the out/ directory.
Usage
You can use the generator directly with npx (no global install required):
Generate from a Directory (Glob Pattern)
npx mentor-cli generate --input "some/dir/*.ttl" --output-extension .ts --create-index-ts --create-src-ts--input- Glob pattern for RDF files to process (quote the pattern to prevent shell expansion).--output-extension- Output file extension (default:.ts).--create-index-ts- Also generate anindex.tsfile.--create-src-ts- Also generate asrc.tsfile.
Generate from a Single File
npx mentor-cli generate --input "some/dir/test.ttl" --output-extension .tsDevelopment & Testing
Run tests:
npm testDebugging:
See.vscode/launch.jsonfor recommended VS Code debug configuration.
License
GPL-3.0
Contributing
Pull requests and issues are welcome!