majkrzak / kot

Minimalistinc tool for building kotlin projects
MIT License
0 stars 1 forks source link

Add json schema definiton for project file #8

Open majkrzak opened 4 years ago

majkrzak commented 4 years ago

Project structure json file needs strict definition. This will allow IDE tools to auto-complete it and build tool itself to validate.

Currently project file structure looks like:

{
  "name": "my_project",
  "dependencies": [
    "org.jetbrains.kotlin:kotlin-stdlib:1.3.50",
    "org.jetbrains.kotlin:kotlin-reflect:1.3.50",
    "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2",
    "org.koin:koin-core:2.0.1"
  ],
  "modules": {
    "simple":[],
    "complex": [
        "simple"
    ]
  }
}
NikoGrano commented 4 years ago

I can deal this... What we should call the file?

majkrzak commented 4 years ago

Naming specialist required :joy: but seriously: schema/configuration.json or schema/config.json.

NikoGrano commented 4 years ago

Acceptable?