A starting project to set up an HTML site set up with typescript
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Adwaith Rao ef00d282a1 Initial commit 4 роки тому
src Initial commit 4 роки тому
.gitignore Initial commit 4 роки тому
LICENSE Initial commit 4 роки тому
README.md Initial commit 4 роки тому
package.json Initial commit 4 роки тому
tsconfig.json Initial commit 4 роки тому

README.md

Basic HTML with typescript boilerplate

A starting project to set up an HTML site set up with typescript

Initialize

  • Make sure the latest NodeJS is installed (v12.18.3 at the time of this commit).
  • Make sure that npm is up to date (v7.5.4 at the time of this commit).
  • Run npm i to install all dependencies.

Usage

  • Make your preferred directory structure under the src/ folder.
  • Run npm run watch from your command prompt or terminal. This keeps the Typescript compiler running in watch mode.
  • Wait for incremental compilation. Any file with a .ts extension is compiled into an equivalent .js file within the same directory.
  • Link the js file to your HTML with its <script> tag.