Practice Management Book

http://www.fpnotebook.com/

Yeoman File Generation

Aka: Yeoman File Generation
  1. Technique: Setup
    1. Install Node
    2. Install Yeoman
      1. npm install -g yo tsd
    3. Create a directory for project
      1. mkdir generator-MYNAMEHERE
      2. cd generator-MYNAMEHERE\
    4. Create json config files
      1. npm init (package.json for node)
      2. tsd init (tsd.json)
    5. Open in VS Code in root directory
      1. "code ."
    6. Edit json file
      1. Add dev-dependencies object
      2. Add dependencies (e.g. Yeoman)
    7. Create the index.js file
      1. mkdir app
      2. Create file "app/index.js"
      3. Set up the index.js to run all the node code (e.g. require section, module.exports section)
    8. Link the root directory to npm (so yeoman project is visible locally)
      1. npm link
    9. Enable typescript for use in Visual Studio Code
      1. Option 1
        1. Set-up typings.json
      2. Option 2
        1. npm install tsd -g (or add to package.json)
        2. tsd install node lodash --save

You are currently viewing the original 'fpnotebook.com\legacy' version of this website. Internet Explorer 8.0 and older will automatically be redirected to this legacy version.

If you are using a modern web browser, you may instead navigate to the newer desktop version of fpnotebook. Another, mobile version is also available which should function on both newer and older web browsers.

Please Contact Me as you run across problems with any of these versions on the website.

Navigation Tree