https://github.com/csells/min-typescript-html-template
A minimal project to enable Typescript file watching on a website project
https://github.com/csells/min-typescript-html-template
Last synced: 3 months ago
JSON representation
A minimal project to enable Typescript file watching on a website project
- Host: GitHub
- URL: https://github.com/csells/min-typescript-html-template
- Owner: csells
- Created: 2022-11-07T02:12:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T02:18:48.000Z (over 2 years ago)
- Last Synced: 2024-12-31T20:16:31.435Z (4 months ago)
- Language: HTML
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# min-typescript-html-template
A minimal project to enable Typescript file watching on a website project.# usage
Clone into the directory of your choice:```sh
~/$ git clone https://github.com/csells/min-typescript-html-template.git my-proj
~/$ cd my-proj
```Enable Typescript in this project:
```sh
~/my-proj$ npm install
```Build the Typescript files into Javascript files:
```sh
~/my-proj$ npm run build
```Build the Typescript files as they change:
```sh
~/my-proj$ npm run watch
```Start the site locally and update it as it changes:
```sh
~/my-proj$ npm start
```Make the site for distribution:
```sh
~/my-proj$ npm run dist
```Start the distribution site locally and update it as it changes:
```sh
~/my-proj$ npm run start-dist
```Take out the papers and the trash:
```sh
~/my-proj$ npm run clean
```