[CLI] add support running scripts in js compiler, extract common code with jvm part
This commit is contained in:
committed by
romanart
parent
50c08b25d3
commit
f59e393e37
+3
@@ -1,5 +1,6 @@
|
||||
Usage: kotlinc-js <options> <source files>
|
||||
where advanced options include:
|
||||
-Xenable-js-scripting Enable experimental support of .kts files using K/JS (with -Xir only)
|
||||
-Xfriend-modules=<path> Paths to friend modules
|
||||
-Xfriend-modules-disabled Disable internal declaration export
|
||||
-Xir Use IR backend
|
||||
@@ -17,6 +18,8 @@ where advanced options include:
|
||||
Should be a subset of sources passed as free arguments
|
||||
-Xcoroutines={enable|warn|error}
|
||||
Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
||||
-Xdisable-default-scripting-plugin
|
||||
Do not enable scripting plugin by default
|
||||
-Xdisable-phases Disable backend phases
|
||||
-Xdump-directory Dump backend state into directory
|
||||
-Xdump-fqname FqName of declaration that should be dumped
|
||||
|
||||
Vendored
+1
@@ -28,6 +28,7 @@ where possible options include:
|
||||
instead of going through a graceful migration cycle.
|
||||
Code written in the progressive mode is backward compatible; however, code written in
|
||||
non-progressive mode may cause compilation errors in the progressive mode.
|
||||
-script Evaluate the script file
|
||||
-nowarn Generate no warnings
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
|
||||
+2
-2
@@ -17,8 +17,6 @@ where advanced options include:
|
||||
default is 'disable' in language version 1.2 and below,
|
||||
'enable' since language version 1.3
|
||||
-Xdump-declarations-to=<path> Path to JSON file to dump Java to Kotlin declaration mappings
|
||||
-Xdisable-default-scripting-plugin
|
||||
Do not enable scripting plugin by default
|
||||
-Xdisable-standard-script Disable standard kotlin script support
|
||||
-Xfriend-paths=<path> Paths to output directories for friend modules (whose internals should be visible)
|
||||
-Xmultifile-parts-inherit Compile multifile classes as a hierarchy of parts and facade
|
||||
@@ -79,6 +77,8 @@ where advanced options include:
|
||||
Should be a subset of sources passed as free arguments
|
||||
-Xcoroutines={enable|warn|error}
|
||||
Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
||||
-Xdisable-default-scripting-plugin
|
||||
Do not enable scripting plugin by default
|
||||
-Xdisable-phases Disable backend phases
|
||||
-Xdump-directory Dump backend state into directory
|
||||
-Xdump-fqname FqName of declaration that should be dumped
|
||||
|
||||
Vendored
+1
-1
@@ -10,7 +10,6 @@ where possible options include:
|
||||
-no-jdk Don't include Java runtime into classpath
|
||||
-no-reflect Don't include kotlin-reflect.jar into classpath
|
||||
-no-stdlib Don't include kotlin-stdlib.jar or kotlin-reflect.jar into classpath
|
||||
-script Evaluate the script file
|
||||
-script-templates <fully qualified class name[,]>
|
||||
Script definition template classes
|
||||
-Werror Report an error if there are any warnings
|
||||
@@ -26,6 +25,7 @@ where possible options include:
|
||||
instead of going through a graceful migration cycle.
|
||||
Code written in the progressive mode is backward compatible; however, code written in
|
||||
non-progressive mode may cause compilation errors in the progressive mode.
|
||||
-script Evaluate the script file
|
||||
-nowarn Generate no warnings
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
|
||||
Reference in New Issue
Block a user