https://github.com/mingderwang/ming-ts
test minimal typescript code
https://github.com/mingderwang/ming-ts
Last synced: 4 months ago
JSON representation
test minimal typescript code
- Host: GitHub
- URL: https://github.com/mingderwang/ming-ts
- Owner: mingderwang
- License: mit
- Created: 2020-07-14T07:53:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T10:42:11.000Z (over 3 years ago)
- Last Synced: 2025-10-06T16:44:43.986Z (9 months ago)
- Language: HTML
- Size: 481 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ming-ts
A Typescript Template with a package build for Windows and Mac OS
## features
* a typescript template
* web app (html) using parcel
* package your app for windows, linux and mac os
* supports eslint
## run your app as a web app
```sh
yarn
yarn dev
```
## eslint
```sh
yarn
yarn lint
```
## package your app
```sh
yarn
yarn start
```
## build and run
```sh
yarn build
yarn package
```
> output
```sh
➜ yarn
➜ yarn build
➜ yarn package
yarn install v1.22.15
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.12s.
yarn run v1.22.15
$ tsc index.ts
✨ Done in 2.06s.
yarn run v1.22.15
$ npm run build && pkg index.js
> ming-ts@1.0.1 build
> tsc index.ts
> pkg@5.6.0
> Targets not specified. Assuming:
node16-linux-arm64, node16-macos-arm64, node16-win-arm64
✨ Done in 4.89s.
```
> test run in mac os
```sh
➜ ./index-macos
My name is Mike and I'm 25 years old!
```