-
Notifications
You must be signed in to change notification settings - Fork 14
Home
Rubén Díaz edited this page Jun 13, 2017
·
16 revisions
Table of Contents
TS-Merger is a tool designed to parse and merge a base and a patch file into one single file depending on the merge strategy defined.
Currently, the merger supports the following nodes:
-
ImportDeclaration
-
ClassDeclaration
-
Constructor
-
MethodDeclaration
-
PropertyDeclaration
-
Decorator
-
ObjectLiteralExpression
-
ArrayLiteralExpression
-
PropertyAssignment
-
CallExpression
-
VariableAssignment
-
Body (partially)
The TS Merger can be launched in two ways depending the file you want to launch:
-
Launching the TS code directly
ts-node src\index.ts <<MERGE_STRATEGY>> <<BASE_FILE_PATH>> <<PATCH_FILE_PATH>>
-
From compiled JS file resultant from webpack:
node dist\tsmerger.js <<MERGE_STRATEGY>> <<BASE_FILE_PATH>> <<PATCH_FILE_PATH>>
Being MERGE_STRATEGY true or false to override or not