This wrapper of yeoman simply allows the use of labs
in place of the common
use of yo
The project has not yet been deployed to <npmjs.com> yet.
npm i -g @lambdalabs/labs
This will install the main cli wrapper along with all Labs generators as dependancies.
The labs
cli command is just a wrapper to the yeoman
yo
command.
-
Run the SPA generator (base react single page app starter)
labs @lambdalabs/spa project-name
-
Run the Node API generator (base node express api starter)
labs @lambdalabs/api project-name
- update package.json version
- add a git tag with the version number
git tag v0.9.30 -m "release note"
- push repo and tags
git push && git push --tags
To develop locally it will be easiest to link the labs
command and any generators being developed using npm.
-
link the generator in the labs-yo project folder.
- Go to the cloned and npm-installed project folder
npm link
- Cd back to this
labs-yo
folder npm link "name-of-package"
- Example:
npm link "generator-spa
-
link this project to the global npm commands.
npm link
The
labs
command is now globally available.labs --help
should render theyo
command options.