update package.json and package-lock.json #59
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Welcome to Codeverter!
Codeverter is a tool to convert a TypeScript source file (*.ts) into different languages (go, c# or Visual Basic by the moment).
Playground
If you want to try it, click here!
Installing
NPM
Public registry
npm install -g @southworks/codeverter
Locally
Building
Prerequisites
Dependencies
In order to build the project you must install the required dependencies by running the following command
npm install
Compilation
The project is written in TypeScript so you need to call the tsc compiler. To start the compilation process use the command
npm run build
once finished you will have all the final JavaScript files at ./out folder.For production use the command
npm run build:prod
Testing
To run the available test suites run the command
npm test
npm test -- -t "constant"
Usage
Command 'cdv'
cdv
is the command to execute the toolFor example:
cdv --src xxx --lang zzz --dest yyy <path>
Args
--src
: Path to the source file or directory.--lang
: Target language.--template
: Custom template to perform the transformation. The extension must be '.t' followed by the language extension, for example: csharp => .tcs.--dest
: DestinationSupport
Fully documented support at Wiki
Constants/Variables
Enums
Interfaces
Classes
*In a go way, using composition
**Using naming conventions
Constructors
Properties
*Naming convention for pubic or private, protected is considered private
Methods/Functions
*Naming convention for pubic or private, protected is considered private
**As functions