generator-seth
v2.0.0
Published
Set up new Node.js projects
Downloads
6
Maintainers
Readme
generator-seth
Set up new Node.js projects
This Yeoman generator is here to help you scaffold your new app or library.
Why?
- Repeatable, dependable project set up.
- Carefully validates input without being annoying.
- Checks whether the project name is available on npm.
- Creates a repository on GitHub.
- Configures CI and runs tests on every commit.
- Sets a description on the repository, locally and remotely.
- Auto-detects whether files should be put in a new directory.
Install
npm install yo generator-seth --global
Usage
Create your new project with yo.
yo seth
You can tweak the behavior with command line options.
$ yo seth --help
Usage:
yo seth [options]
Options:
--help # Print the generator's options and usage
--skip-cache # Do not remember prompt answers Default: false
--skip-install # Do not automatically install dependencies Default: false
You will be prompted for any required info not passed on the command line.
Option
cli
Type: boolean
Default: false
Whether to generate a cli.js
and configure package.json
as appropriate for a command line app.
username
Type: string
Example: sholladay
The author's handle / account name.
fullName
Type: string
Example: Seth Holladay
The author's full legal name.
Type: string
An email address to contact the author.
website
Type: string
A URL for the author. Used in package.json
and README.md
.
createRemote
Type: boolean
Default: false
Whether to create a remote repository on GitHub. The remote is automatically configured as origin
, its wiki is turned off, and its description is set for you.
accessToken
Type: string
A personal access token used to communicate with the GitHub API for creating a repository when createRemote
is true
.
Don't Repeat Yourself
To reduce typing to a minimum, you should set up an alias in your dotfiles that provides common values for you on the command line.
alias seth='yo seth --username="$(id -un)" --full-name="$(id -F)" --email='\''[email protected]'\'' --website='\''https://seth-holladay.com'\'' --access-token='\''<my-access-token>'\';
Now instead of invoking the generator as yo seth
, you can use just seth
and your favorite options will be applied.
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
Go make something, dang it.