npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

update-yeoman-generator

v3.0.0

Published

update-yeoman-generator - Update your Yeoman generator with style

Downloads

40

Readme

update-yeoman-generator

Greenkeeper badge

Update your Yeoman generator with style

MIT License PRs Welcome Watch on GitHub Star on GitHub Tweet

A script to help update repositories using Yeoman generators to the latest version.

Requirements

To use this package the generator should:

  • Creates a .yo-rc.json storing the version of your application. It should follow the Yeoman storage specs.
// .yo-rc.json
{
  "generator-poi": {
    "version": "1.0.0"
  }
}

Setup

Private repositories

If you are using this project for private repositories, you'll need to create a token with the notifications and repo permissions. After generate your token, pass the information token using the flag --github-token in your command.

update-yeoman-generator --generator <github-user>/<github-repository> --github-token <your-github-token>

Run update-yeoman-generator

Make sure you have npm@>=5.2.0:

npm install -g npm@latest

Parameters

  • -g, --generator [required] Name of the Github generator. It should be in format
    update-yeoman-generator --generator <github-user>/<github-repository>
  • --version [optional] Show package version number
  • --ejs-open [optional] [default: "<%"] .ejs File delimiter for open tag
  • --ejs-close [optional] [default: "%>"] .ejs File delimiter for close tag.
  • -t, --template [optional] [default: "app/templates"] String with a prefix for your templates folder based on the root folder of the generator repository.
  • --github-token [optional] Github Token required for private repositories
  • -h, --help [optional] Show help command

Inside the existing boilerplate generated repository run:

update-yeoman-generator

update-yeoman-generator will apply the changes from the latest version of boilerplate as a git style merge - so you'll still need to manually fix conflicts.

Usage

$ npm install -g update-yeoman-generator
$ cd <your-project-generated-using-yeoman-generator>
$ update-yeoman-generator --help
Options:
  --version        Show version number                                 [boolean]
  --github-token   Optional: Github Token required for private repositories.
  --ejs-open       Optional: '.ejs' File delimiter for open tag. Default:
                   "app/templates"
  --ejs-close      Optional: '.ejs' File delimiter for close tag. Default:
                   "app/templates"
  -h, --help       Show help                                           [boolean]
  -g, --generator  Name of the Github generator. It should be in format
                   `<github-user>/<github-repository>`                [required]
  -t, --template   Optional: String with a prefix for your templates folder
                   based on the root folder of the generator repository.
                   Default: "app/templates"

                   EX:

                   update-yeoman-generator --generator
                   willmendesneto/generate-poi --template-prefix
                   app/templates

                   update-yeoman-generator --generator
                   <github-user>/<github-repository> --github-token
                   <your-github-token> --template-prefix app/templates
                                                                        [string]



Copyright 2017

$ update-yeoman-generator --generator <github-user>/<github-repository>

Author

Wilson Mendes (willmendesneto)