Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
williamniemiec committed Mar 22, 2022
1 parent 151ac51 commit 7715914
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>babel-transpiler</artifactId>
<version>1.0.0</version>
<name>Babel transpiler</name>
<description>Utility for executing commands in a terminal.</description>
<description>Babel transcription for JavaScript files.</description>
<url>https://github.com/wniemiec-io-java/babel-transpiler</url>

<properties>
Expand Down
15 changes: 10 additions & 5 deletions src/main/java/wniemiec/io/java/BabelTranspiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@


/**
*
* Babel transpiler lets you to execute Babel transcription for given
* JavaScript files.
*/
public class BabelTranspiler {

Expand All @@ -35,7 +36,7 @@ public class BabelTranspiler {
// Constructor
//-------------------------------------------------------------------------
/**
*
* Babel transcription for JavaScript files.
*
* @param outputErrorHandler Function to handle with error messages
*/
Expand All @@ -44,6 +45,10 @@ public BabelTranspiler(Consumer<String> outputErrorHandler) {
babelScript = new BabelTranspilerScript();
}

/**
* Babel transcription for JavaScript files. Using this constructor, output
* error messages will be ignored.
*/
public BabelTranspiler() {
this(null);
}
Expand All @@ -53,9 +58,9 @@ public BabelTranspiler() {
// Methods
//-------------------------------------------------------------------------
/**
* Generates JavaScript ECMA 5 from a JavaScript ECMA 6 code.
* Transpile JavaScript code.
*
* @param code JavaScript ECMA 6 code
* @param code JavaScript code
*
* @return JavaScript code
*
Expand Down Expand Up @@ -141,7 +146,7 @@ private List<String> parsedJavaScriptCode() throws IOException {
}

/**
* Generates JavaScript ECMA 5 from a JavaScript ECMA 6 code.
* Transpile JavaScript code.
*
* @param file JavaScript file
*
Expand Down

0 comments on commit 7715914

Please sign in to comment.