At the moment the scope of velocitas-project-generator is for digital.auto. The velocitas-project-generator takes python prototype code from the digital.auto playground, adapts it and makes it compatible with the eclipse-velocitas vehicle app python template.
Install from the command line:
npm install @eclipse-velocitas/velocitas-project-generator
Install via package.json:
"@eclipse-velocitas/velocitas-project-generator": "^1.0.0"
Manual integration: clone it, transpile it and link it into you repositories node_modules folder
git clone https://github.com/eclipse-velocitas/velocitas-project-generator-npm.git
cd velocitas-project-generator-npm
tsc
cd path/to/your/repo
npm link path/to/velocitas-project-generator-npm
import { ProjectGenerator } from "@eclipse-velocitas/velocitas-project-generator";
const generator = new ProjectGenerator(OWNER, REPO, TOKEN);
await generator.runWithPayload(BASE64_CODE_SNIPPET, APP_NAME, BASE64_VSPEC_PAYLOAD);