Skip to content

Commit 01ee72f

Browse files
committed
Add info to README
1 parent 996f569 commit 01ee72f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,27 @@ $ cd design_patterns_in_typescript
4444
$ tsc
4545
```
4646

47-
There is a new `tsconfig.json` file in the root directory which is responsible for the compiler options.
47+
There is a `tsconfig.json` file in the root directory which is responsible for the compiler options.
48+
4849
As it is set the default target is Ecmascript5 now.
50+
4951
Any additional options come here.
5052

53+
By default the output is a `patterns.js` file.
54+
55+
5156
To compile only one pattern, use the following command.
5257

5358
```
5459
$ cd design_patterns_in_typescript/visitor
55-
$ tsc --target ES5 visitor.ts
60+
$ tsc --target ES5 --module system --outFile visitor.js visitor.ts
61+
```
62+
63+
## Execute the project
64+
65+
After the compilation of the project, a `patterns.js` is generated by default.
66+
Executing the file is:
67+
68+
```
69+
node patterns.js
5670
```
57-
> Here if there is no `--outFile` option then the compiler generates the js counterpart into the current directory.

0 commit comments

Comments
 (0)