Skip to content

Commit

Permalink
Add 2.0 related info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
torokmark committed Oct 12, 2016
1 parent f35e26c commit 84f43f3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,24 @@ Here are the implementations of the following design patterns in TypeScript:
* [State](https://github.com/torokmark/design_patterns_in_typescript/tree/master/state)
* [Strategy](https://github.com/torokmark/design_patterns_in_typescript/tree/master/strategy)
* [Template Method](https://github.com/torokmark/design_patterns_in_typescript/tree/master/template_method)
* [Visitor](https://github.com/torokmark/design_patterns_in_typescript/tree/master/visitor)
* [Visitor](https://github.com/torokmark/design_patterns_in_typescript/tree/master/visitor)

## Compile the project

```
$ git clone https://github.com/torokmark/design_patterns_in_typescript.git
$ cd design_patterns_in_typescript
$ tsc
```

There is a new `tsconfig.json` file in the root direcotry which is responsible for the compiler options.
As it is set the default target is Ecmascript5 now.
Any additional options come here.

To compile only one pattern, use the following command.

```
$ cd design_patterns_in_typescript/visitor
$ tsc --target ES5 visitor.ts
```
>> Here if there is no `--outFile` option then the compiler generates the js counterpart into the current directory.

0 comments on commit 84f43f3

Please sign in to comment.