Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
Vlad Pazych edited this page Feb 16, 2017 · 1 revision
{
    // Generator will regenerate when something changes here:
    "watchScripts": [
        "./project/**/*.ts"
    ],

    // Generator will recompile templates and regenerate when something changes here:
    "watchTemplates": [
        "./project/templates/**/*"
    ],

    // Generator fills templates with map as data source:
    "map": "./project/map",

    // In modifier you can change map, for easier data access for templates:
    "modifier": "./project/modifier",

    // If your output path will not have that safe keyword, generator will not work,
    // to avoid accidental cleaning of your root project folder:
    "outputSafeKeyword": "generated",

    // Output folder path:
    "generatedPath": "../Assets/Generated",

    // File definitions relative to 'generatedPath' above:
    "files": {
        "./Contexts.cs": "./project/templates/contexts.hbs",
        "./Components.cs": "./project/templates/components.hbs",
        "./Views.cs": "./project/templates/views.hbs",
        "./ECSInterfaces.cs": "./project/templates/ecsInterfaces.hbs",
        "./ECSClasses.cs": "./project/templates/ecsClasses.hbs",
        "./Systems/Reactive.cs": "./project/templates/systems/reactive.hbs",
        "./Systems/Execute.cs": "./project/templates/systems/execute.hbs",
        "./Systems/Initialize.cs": "./project/templates/systems/initialize.hbs",
        "./Systems/Chain.cs": "./project/templates/systems/chain.hbs",
        "./Editor/Inspectors.cs": "./project/templates/inspectors.hbs",
        "./.Docs/Index.html": "./project/templates/docs.hbs"
    },

    // Partials can be used inside templates:
    "partials": {
        "propsEntity": "./project/templates/partials/propsEntity.hbs",
        "propsGroup": "./project/templates/partials/propsGroup.hbs",
        "propsGroupSingle": "./project/templates/partials/propsGroupSingle.hbs",
        "propsContext": "./project/templates/partials/propsContext.hbs",
        "propsMB": "./project/templates/partials/propsMB.hbs",
        "propsMBExternal": "./project/templates/partials/propsMBExternal.hbs",
        "propsGO": "./project/templates/partials/propsGO.hbs",
        "methods": "./project/templates/partials/methods.hbs",
        "methodsEditor": "./project/templates/partials/methodsEditor.hbs",
        "intellisenseDocs": "./project/templates/partials/intellisenseDocs.hbs",
        "docElement": "./project/templates/partials/docElement.hbs",
        "docStyle": "./project/templates/partials/docStyle.hbs",
        "docLogic": "./project/templates/partials/docLogic.hbs"
    },

    // Helpers can be used inside templates:
    "helpers": {
        "toLower": "./project/lib/helpers/toLower",
        "toUpper": "./project/lib/helpers/toUpper",
        "ifCond": "./project/lib/helpers/ifCond",
        "len": "./project/lib/helpers/len"
    }
}
Clone this wiki locally