@jetbrains/kotlinc-js-api
v2.0.1
Published
KotlincJS compiler wrapper for NodeJS
Downloads
1,320
Readme
kotlinc-js-api
This package provides JavaScript APIs for calling the Kotlin to JavaScript compiler.
Installation
npm i @jetbrains/kotlinc-js-api --save
Usage
const kotlinCompiler = require('@jetbrains/kotlinc-js-api');
kotlinCompiler
.compile({
output: './build/dist.js',
sources: [__dirname + '/src'],
sourceMaps: true,
moduleKind: 'commonjs',
libraries: [
'path/to/some.meta.js',
]
})
.then(() => console.log('Compilation successful'));