II. Precautions: Non-Medical
- Not for Medical Care
- The author uses several software packages and programming languages to develop FPnotebook content
- For convenience, a dozen pages in FPNotebook are dedicated to quick notes on content creation
III. Technique: Setup
- Install Node
- Install Yeoman
- npm install -g yo tsd
- Create a directory for project
- mkdir generator-MYNAMEHERE
- cd generator-MYNAMEHERE\
- Create json config files
- npm init (package.json for node)
- tsd init (tsd.json)
- Open in VS Code in root directory
- "code ."
- Edit json file
- Add dev-dependencies object
- Add dependencies (e.g. Yeoman)
- Create the index.js file
- mkdir app
- Create file "app/index.js"
- Set up the index.js to run all the node code (e.g. require section, module.exports section)
- Link the root directory to npm (so yeoman project is visible locally)
- npm link
- Enable typescript for use in Visual Studio Code
- Option 1
- Set-up typings.json
- Option 2
- npm install tsd -g (or add to package.json)
- tsd install node lodash --save
- Option 1