A starting project to set up an HTML site set up with typescript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 734 B

4 years ago
4 years ago
4 years ago
12345678910111213
  1. # Basic HTML with typescript boilerplate
  2. A starting project to set up an HTML site set up with typescript
  3. ### Initialize
  4. - Make sure the latest NodeJS is installed (v12.18.3 at the time of this commit).
  5. - Make sure that npm is up to date (v7.5.4 at the time of this commit).
  6. - Run ```npm i``` to install all dependencies.
  7. ### Usage
  8. - Make your preferred directory structure under the **src/** folder.
  9. - Run ```npm run watch``` from your command prompt or terminal. This keeps the Typescript compiler running in watch mode.
  10. - Wait for incremental compilation. Any file with a **.ts** extension is compiled into an equivalent **.js** file within the same directory.
  11. - Link the js file to your HTML with its ```<script>``` tag.