Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Added general README and updated Browserify README.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Aug 5, 2016
1 parent ae29f91 commit 5aaeb56
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# TypeScript Samples

Most of the samples here will assume that you have TypeScript installed.
You can get TypeScript with Visual Studio, NuGet, or with npm:

```shell
npm install -g typescript
```

To compile each sample, `cd` into the directory and use the `tsc` command to compile.
`tsc` will use each directory's `tsconfig.json` to get specific compiler options.

##### [AMD Modules](amd/README.md)

##### [Angular Seed TypeScript](angular1/README.md)
Expand Down
42 changes: 30 additions & 12 deletions browserify/README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,63 @@
**Install Browserify**
```

```shell
npm install -g browserify
```

**Fetch dependencies**
```

```shell
npm install
```

**Compile .ts files**
```

Either enter the following command

```shell
node node_modules/typescript/bin/tsc.js
```
shortcut for this command
```

or use the `tsc` script from our `package.json` with

```shell
npm run tsc
```

**Run Browserify**
```

Either enter the following command

```shell
browserify src/app.js -o bundle.js -s app
```
shortcut for this command
```

or use the `browserify` script from our `package.json` with

```shell
npm run browserify

```

**Start http-server**
```

Either enter the following command

```shell
node node_modules/http-server/bin/http-server -o
```
shortcut for this command

or use the `listen` script from our `package.json` with

```
npm run listen
```

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

By default http-server listens on port `8080`.
If this port is taken, use '-p ####' to specify a free port, where `####` is the available port.

**Shortcut for running all steps in a batch**

```
npm run all
```

0 comments on commit 5aaeb56

Please sign in to comment.