Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pubcore/generator-create

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pubcore/generator-create

Create scaffold minimal yeoman generator

  • 1.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

create a minimal yeoman generator scaffolding

It will setup jslint and mocha for testing of the generator.

Prerequisites
  • npm ^5.2.0
Example
  1. Change into the directory of your "scope" or (for unscoped packages) where your global packages are.
  2. Create a directory with name of your new generator. Convention is lower case and dash-separated, and must start with "generator-", here we assume we want to generate "some-stuff":
mkdir generator-some-stuff
  1. Change into this directory
cd generator-some-stuff
  1. Create scaffolding of a generator. You will be asked for some global settings, which will be saved in package.json:
npx -p @pubcore/generator-create -p yo yo @pubcore/create
  1. Test creation by execute prepared test:

    npm run test
    
  2. Start build you generator in app/index.js, levearge yeoman's docs: https://yeoman.io/authoring/running-context.html

Keywords

FAQs

Package last updated on 13 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc