Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suifengtec/tsp
a CLI tool for TypeScript Projects
https://github.com/suifengtec/tsp
cli cli-window go golang gulp npm screenshot tsp typescript
Last synced: 23 days ago
JSON representation
a CLI tool for TypeScript Projects
- Host: GitHub
- URL: https://github.com/suifengtec/tsp
- Owner: suifengtec
- License: apache-2.0
- Created: 2017-07-19T02:29:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-19T16:01:21.000Z (over 7 years ago)
- Last Synced: 2024-11-28T08:12:25.846Z (3 months ago)
- Topics: cli, cli-window, go, golang, gulp, npm, screenshot, tsp, typescript
- Language: Go
- Size: 10.9 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Intro
this is a simple CLI tool for TypeScript Projects management.
# Usage Dependencies
```
Sublime Text
Node.js/ npm
TypeScript
Git```
# Usage
to generate a TypeScript project:
```
tsp g [projectDirName] [mainClassName] [ProjectName]
```
to run a simple http server for your project:
```
tsp s [projectDirName] [port]
```
to run gulp for your project:
```tsp w [projectDirName]
```
`port` should be a number in range (80,65535).
# Sample:
```
tsp g test12 Test12Class Project12
```
it will generate a project in `test12` named `Project12` and its main Class named `Test12Class`:


after the project generated,you can do something with files in `src`, then open two CLI windows, execute the following command in a CLI window:
```
tsp w test12
```
it will watch your files.> Note: you can also change CLI to the project base dir,and execute `gulp` to do so.
the another CLI window will be used to run a simple http serve for your project,such as :
```
tsp s test12 6666
```tsp will run a http server for your TypeScript project in `test12` and open it in your default browser.

# Dev Dependencies
```
go get -u github.com/Kenshin/cprint
go get -u github.com/spf13/cobra
```
# For jQuery
uncomment the following code in the `/src/main.ts` file:
```import * as $ from "jquery";
```
then you can use it:
```console.log($('#sayhi-to-ts').html());
```
# Homepage
[here](http://coolwp.com/cli-tool-typescript-projects.html)