@lambdalabs/labs v0.1.14
Labs wrapper for Yeoman
This wrapper of yeoman simply allows the use of labs in place of the common
use of yo
Installation
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.
Usage
The labs cli command is just a wrapper to the yeoman
yo command.
Examples
Run the SPA generator (base react single page app starter)
labs @lambdalabs/spa project-nameRun the Node API generator (base node express api starter)
labs @lambdalabs/api project-name
Generators
publish npmjs package
- 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
Development setup
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-yofolder npm link "name-of-package"- Example:
npm link "generator-spa
link this project to the global npm commands.
npm linkThe
labscommand is now globally available.labs --helpshould render theyocommand options.