refactoring: more fixes, first attempt at tagRenderingAnswer
This commit is contained in:
parent
aaaaf1948d
commit
29372c465e
24 changed files with 278 additions and 113 deletions
20
scripts/BuildMeta.ts
Normal file
20
scripts/BuildMeta.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import Script from "./Script"
|
||||
import Validators from "../UI/InputElement/Validators"
|
||||
|
||||
export default class BuildMeta extends Script {
|
||||
constructor() {
|
||||
super(
|
||||
"Prints meta information about the mapcomplete codebase. Used to automate some things"
|
||||
)
|
||||
}
|
||||
async main(args: string[]): Promise<void> {
|
||||
const types = Validators.AllValidators.map((v) => v.name)
|
||||
.map((s) => `"${s}"`)
|
||||
.join(", ")
|
||||
console.log("public static readonly availableTypes = [ " + types + " ] as const")
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
new BuildMeta().run()
|
Loading…
Add table
Add a link
Reference in a new issue