✨ Getting Started
Prerequisites
- NodeJS 20+.
- Install
npm i -g @pbuilder/cli
or usenpx @pbuilder/cli
.
Starting a New Project
builder new <project-name> [author] --bundler <bundler-name> --package-manager <manager> --skip-installation --dry-run --help
You can see all the command option if you execute:
builder new --help
Create 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 build
You 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