Lightweight Node JS server.
- Install Node
Creating a "package.json" file:
- Open terminal
- Type
npm init [-f|--force|-y|--yes]for the defaults
-
Install node packages:
$ npm install
-
Adding definitely typed ("d.ts") files:
In Visual Studio Code, to add "d.ts" files, the user will need to be a level above the "typings" folder. A "tsd.json" file will be created and "d.ts" files will be added to this. If the "typings" folder doesn't exist, it will be created as well as the "tsd.json" file.
To add a "d.ts" file, in the termial, change directories until you are in the directory that you want to add the files.
- Open terminal
- Type
tsd install node jquery sqlite3 --save
-
Creating documentation:
gulp typescript
This will be produced in the "docs" folder.
NPM install documentation npm-install