Updated autogen script and code to support Light

This commit is contained in:
Nick
2017-10-23 16:41:51 -07:00
parent 8783684195
commit 9bf099ffd0
9 changed files with 306 additions and 51 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ class DocJSONBuilder {
this._styledLayers = {};
for (let styleLayer of styledLayers) {
this._styledLayers[pascelCase(styleLayer.name) + 'Layer'] = styleLayer;
const ComponentName = pascelCase(styleLayer.name);
this._styledLayers[ComponentName + (ComponentName === 'Light' ? '' : 'Layer')] = styleLayer;
}
this._filePath = INPUT_PATH;