This folder provides a small script that simplifies the TypeScript app development process. More precisely, this script will:
- build the project
- start a tiny HTTP server
- open a Web browser and start the application from the tiny HTTP server
- watch TypeScript source files to incrementally rebuild the application whenever a source file changes
So when you perform any change to the source code, all you have to do is to save the TypeScript file and press reload on the Web browser. The watcher will take care of recompiling the application under the hood.
Simply start:
npm run app-server
| file | description |
|---|---|
| app-server.ts | TypeScript source file for the tiny web server |
| tsconfig.json | TypeScript compiler settings for this tool |
| README.md | This file |
The two files below are generated when the tiny web server is started:
| file | description |
|---|---|
| app-server.js | Tiny web server, transpiled to JS for execution |
| app-server.js.map | Application map file for the tiny web server |
For details on how to generate app.min.js, see the top-level README file