Extract some layers to standalone files

This commit is contained in:
Pieter Vander Vennet 2022-04-15 00:56:42 +02:00
parent fa50e52afc
commit 663f01c21e
37 changed files with 3681 additions and 3741 deletions

View file

@ -7,6 +7,7 @@ function main(args: string[]){
console.log("Extracts an inline layer from a theme and places it in it's own layer directory.")
console.log("USAGE: ts-node scripts/extractLayerFromTheme.ts <themeid> <layerid>")
console.log("(Invoke with only the themename to see which layers can be extracted)")
return
}
const themeId = args[0]
const layerId = args[1]
@ -30,7 +31,7 @@ function main(args: string[]){
const layerConfig = layers.find(l => l.id === layerId)
if(layerId === undefined || layerConfig === undefined){
if(layerConfig === undefined){
if(layerId !== undefined){
console.error( "Layer "+layerId+" not found as inline layer")
}
console.log("Layers available for extraction are:")