tindzk / seed

Build tool for Scala projects
https://tindzk.github.io/seed/
Apache License 2.0
237 stars 13 forks source link

Improve scaffold command #27

Closed tindzk closed 5 years ago

tindzk commented 5 years ago

If we go through the wizard using the default settings, we get the following result:

Before:

[project]
scalaVersion = "2.13.0"
scalaJsVersion = "0.6.28"
scalaOptions = [
  "-encoding",
  "UTF-8",
  "-unchecked",
  "-deprecation",
  "-Xfuture"
]
testFrameworks = []

[module.example]
root = "shared"
sources = ["shared/src"]
targets = [
  "jvm",
  "js"
]

[module.example.test]
sources = ["shared/test"]

[module.example.js]
root = "js"
sources = ["js/src"]

[module.example.test.js]
sources = ["js/test"]

[module.example.jvm]
root = "jvm"
sources = ["jvm/src"]

[module.example.test.jvm]
sources = ["jvm/test"]

After:

[project]
scalaVersion = "2.13.0"
scalaJsVersion = "0.6.28"

[module.example]
root = "shared"
sources = ["shared/src"]
targets = [
  "jvm",
  "js"
]

[module.example.js]
root = "js"
sources = ["js/src"]

[module.example.jvm]
root = "jvm"
sources = ["jvm/src"]
tindzk commented 5 years ago

@nafg Inspired by https://github.com/tindzk/seed/issues/23#issue-467981268, I tried to narrow down the generated configuration to a bare minimum. If there is anything else that could be improved (either in the wizard itself or in the generated build file), please do let me know!