SBT plugin without scalajs-bundler
Ensure you use the correct plugin
project.enablePlugins(ScalablyTypedConverterExternalNpmPlugin)
externalNpm
Implement You need to implement the externalNpm
task yourself.
You should call npm
or yarn
yourself, and return the directory where
both package.json
and node_modules
can be found.
This example uses the directory of the sbt project.
project.settings(
externalNpm := {
Process("yarn", baseDirectory.value).!
baseDirectory.value
}
)
Follow the normal instructions
The rest of Getting started with SBT plugin applies.
You can check out the storybook-react
and react-native
demos in
SlinkyDemos
for complete examples.
Customize the generated code
While optional, it's recommended to have a look at conversion options to see what the possibilities are.
Now what?
Have a look at Where do I start?