Simple tool to transpile Scala datamodel
This file is the shared skill contract used by both Copilot and Claude wrappers.
Guide a user to set up Scala-TS safely in an SBT codebase by:
test:compile and generated-file checks.build.sbt and/or project/*.sbt).sbt test:compile; if it fails, report the baseline failure and stop.sbt test:compile and verify expected generated files exist.build.sbt.sbt-scala-ts / ScalatsGeneratorPluginsbt-scala-ts-idtlt / ScalatsIdtltPluginsbt-scala-ts-python / ScalatsPythonPluginscalatsUnionWithLiteralscalatsOptionToNullablescalatsOnCompile / sourceManagedscalatsSingleFilePrinter(...)scalatsTypeNaming, scalatsFieldMapper, custom mappersscalatsPythonBaseModuleFor each SBT module in scope:
scalatsOnCompile behavior (default true unless user wants manual trigger).scalatsOnCompile / sourceManaged) default/custom.Option: undefined vs nullable (scalatsOptionToNullable)scalatsUnionWithLiteralscalatsValueClassAsTagged when requested)scalatsSource*, scalatsType*).project/plugins.sbt:
addSbtPlugin("io.github.scala-ts" % "sbt-scala-ts" % "<ver>")build.sbt:
enablePlugins(ScalatsGeneratorPlugin)scalatsUnionWithLiteralproject/plugins.sbt:
addSbtPlugin("io.github.scala-ts" % "sbt-scala-ts-idtlt" % "<ver>")build.sbt:
enablePlugins(ScalatsIdtltPlugin)project/plugins.sbt:
addSbtPlugin("io.github.scala-ts" % "sbt-scala-ts-python" % "<ver>")build.sbt:
enablePlugins(ScalatsPythonPlugin)scalatsPythonBaseModule := Some("<module>")Reference fixtures:
sbt-plugin/src/sbt-test/sbt-scala-ts/simplesbt-plugin/src/sbt-test/sbt-scala-ts/enumeratumsbt-plugin-idtlt/src/sbt-test/sbt-scala-ts-idtlt/fullsbt-plugin-python/src/sbt-test/sbt-scala-ts-python/fullsbt-plugin/src/sbt-test/sbt-scala-ts/multiAlways emit:
sbt test:compile before questions).sbt test:compile status.ts/.py files present per configured module.