- Open a cmd terminal and navigate to the root directory
npm install
- installs required node packagesnpm start
- does several things:- Builds and compiles the
src
files into adist
directory - Watches for changes for
src
changes and updates thedist
directory on each one - Starts a lite server to serve content from the
dist
directory - Opens a browser tab to the app
- Watches the
dist
directory and refreshes the browser upon changes
- Builds and compiles the
- TEMPLATES (HTML)
- There are no .html files in
src
directory. - Instead, make changes to Pug files (.pug) which are converted immediately to .html files in the
dist
directory - Pug (formerly known as JADE) is easy to read and understand and is a more terse way to write HTML.
- Further questions about Pug can be answered online.
- There are no .html files in
- SCRIPTING (JavaScript)
- There are no .js files in
src
directory. - Instead, make changes TypeScript files (.ts) which are converted immediately to .js files in the
dist
directory - TypeScript is a strict superset of JavaScript. This means all JavaScript is valid TypeScript already (i.e. any JavaScript file you already have can be safely renamed to have a .ts extension).
- TypeScript allows for strict typing and JavaScript classes and is the preferred standard for any code written in Angular 2 (i.e. nearly all supporting example code for Angular 2 is written in TypeScript, so it's easier to learn it than to fight it).
- Further questions about TypeScript can be answered online.
- There are no .js files in
- STYLING (CSS)
- There are no .css files in
src
directory. - Instead, make changes Sass files (.scss) which are converted immediately to .css files in the
dist
directory - Sass is a strict superset of CSS. This means all CSS is valid Sass already (i.e. any CSS file you already have can be safely renamed to have a .scss extension).
- Further questions about Sass can be answered online.
- There are no .css files in
Not licensed for reuse except by NAIC employees and contractors.
<style>ol ol { list-style-type: lower-alpha; } and ol ol ol { list-style-type: lower-roman; }</style>