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

@department-of-veterans-affairs/generator-vets-website

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@department-of-veterans-affairs/generator-vets-website

Generate a React app for vets-website

  • 3.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
increased by38.97%
Maintainers
0
Weekly downloads
 
Created
Source

Yeoman generator for applications on VA.gov

Installation

The generator is already installed as a devDependency of vets-website.

Usage

From vets-website, run npm run new:app.

Follow the instructions on screen.

For more details on answering the prompts, the following documentation might be helpful.

These resources are also provided by the generator at startup.

Contributing

Making changes

There are two generators: one for general (non-form) apps and one for form apps.

  • The latter runs on top of the former if certain prompts are answered to generate a form app.
  • Each generator has its own set of templates from which it generates files in the app structure.

For specifics on writing a generator, refer to the official Yeoman documentation.

Testing changes

  1. Make your modified generator available as a global module.

    From the root of this repo (generator-vets-website):

    # Create a symlink in your global node_modules to this module.
    npm link
    
  2. Run your modified generator in your local vets-website.

    From the root of vets-website:

    # Point vets-website's local generator to your newly linked global module.
    npm link @department-of-veterans-affairs/generator-vets-website
    
    # Start up Yeoman.
    npx yo
    
    # Choose to run generator-vets-website in the Yeoman prompt.
    

    Due to the link, any further changes to the generator will automatically be included when you run it within your local vets-website repo.

  3. When you're done testing your changes, clean up the links:

    # From the root of vets-website:
    npm unlink --no-save @department-of-veterans-affairs/generator-vets-website
    
    # From the root of generator-vets-website:
    npm unlink
    

Keywords

FAQs

Package last updated on 15 Oct 2024

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