Giter VIP home page Giter VIP logo

generator-vets-website's Introduction

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

generator-vets-website's People

Contributors

alexandec avatar annaswims avatar cbonade avatar cehsu avatar dependabot[bot] avatar depfu[bot] avatar erikphansen avatar jbalboni avatar jerekshoe avatar jhonnyoddball avatar mhaley37 avatar micahchiang avatar mottie avatar theodur avatar timwright12 avatar u-don avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.