Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myitcv/typescript_test
Basic setup for TypeScript compiled to ES5 SystemJS modules
https://github.com/myitcv/typescript_test
Last synced: 15 days ago
JSON representation
Basic setup for TypeScript compiled to ES5 SystemJS modules
- Host: GitHub
- URL: https://github.com/myitcv/typescript_test
- Owner: myitcv
- Created: 2015-08-06T16:06:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T10:16:14.000Z (over 8 years ago)
- Last Synced: 2024-11-07T11:09:02.384Z (2 months ago)
- Language: TypeScript
- Homepage: https://github.com/myitcv/typescript_test
- Size: 313 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## `typescript_test`
[![Build Status](https://travis-ci.org/myitcv/typescript_test.svg?branch=master)](https://travis-ci.org/myitcv/typescript_test)
Download and setup:
```
git clone [email protected]:myitcv/typescript_test.git typescript_test && cd $_
export PATH=$PWD/node_modules/.bin:$PATH
```Best to add that `PATH` adjustment to your `.profile`/`.bash_profile`/etc.
Setup:
```
npm install
jspm install
tsd install
./scripts/protobuf_install
```Compile (and watch for changes):
```
gulp watch
```Run `NodeJS` app:
```
node main.js
```Serving the browser version:
```
# use cache of -1 to always reload files
http-server -c-1 -a localhost -p 9001
```Navigate to [http://localhost:9001](http://localhost:9001) and see the served results of `src/browser.ts`
## `protobuf`
This project needs two symlinks from the root:
```
protobuf -> https://github.com/google/protobuf/, specifically the js subdir
goog -> https://github.com/google/closure-library/, specifically the closure/goog subdirectory
```Get the require Go packages:
```
go get github.com/golang/protobuf/proto```
Then run the Go server:
```
go run *.go
```Optionally regenerate the Go and JS files:
```
protoc helloworld.proto --js_out=binary,library=helloworld_lib:src
protoc helloworld.proto --go_out=import_path=main:.
```