✨ Getting Started
Prerequisites
- NodeJS 20+.
- Install
npm i -g @pbuilder/clior usenpx @pbuilder/cli.
Starting a New Project
builder new <project-name> [author] --bundler <bundler-name> --package-manager <manager> --skip-installation --dry-run --helpYou can see all the command option if you execute:
builder new --helpCreate a new schematic
- To create a schematic, execute this:
builder g @pbuilder/sm sc --name="my-schematic"- Before testing we need to build it:
npm run buildYou can run this command to observe any future change:
npm run build:watch However, this command doesn’t recognize new files, for this reason if you add a new schematics restart the command.
- To test it we can run:
builder exec ./dist/collection.json my-schematic