File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff 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+
4849As it is set the default target is Ecmascript5 now.
50+
4951Any additional options come here.
5052
53+ By default the output is a ` patterns.js ` file.
54+
55+
5156To 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.
You can’t perform that action at this time.
0 commit comments