FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

TypeScriptSamples/browserify/README.md at master · anbreen/TypeScriptSamples · GitHub

Repository navigation

Latest commit

 

History

History
45 lines (37 loc) · 638 Bytes

File metadata and controls

45 lines (37 loc) · 638 Bytes

Install Browserify

npm install -g browserify

Fetch dependencies

npm install

Compile .ts files

node node_modules/typescript/bin/tsc.js

shortcut for this command

npm run tsc

Run Browserify

browserify src/app.js -o bundle.js -s app

shortcut for this command

npm run browserify

Start http-server

node node_modules/http-server/bin/http-server -o

shortcut for this command

npm run listen

By default http-server listens on port 8080. If this port is taken use '-p' to specify free port.

Shortcut for running all steps in a batch

npm run all

Back | FazBrowse Home | New Git URL