{
    "version": 1,
    "kind": "project",
    "id": "Z.NimProject",
    "category": "I.Projects",
    "trDescription": "Creates a simple Nim application.",
    "trDisplayName": "Nim Application",
    "trDisplayCategory": "Non-Qt Project",
    "featuresRequired": [ "ToolChain.Nim.NimToolChain" ],
    "icon": "icon.png",
    "iconKind": "Themed",
    "enabled": "%{JS: value('Plugins').indexOf('Nim') >= 0 }",

    "options":
    [
        { "key": "ProjectFile", "value": "%{NimProjectFile}" },
        { "key": "NimProjectFile", "value": "%{JS: Util.fileName(value('ProjectDirectory') + '/' + value('ProjectName'), 'nimproject')}" },
        { "key": "NimFileName", "value": "main.nim" }
    ],

    "pages":
    [
        {
            "trDisplayName": "Project Location",
            "trShortTitle": "Location",
            "typeId": "Project"
        },
        {
            "trDisplayName": "Kit Selection",
            "trShortTitle": "Kits",
            "typeId": "Kits",
            "enabled": "%{JS: !value('IsSubproject')}",
            "data": { "projectFilePath": "%{ProjectFile}" }
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators":
    [
        {
            "typeId": "File",
            "data":
            [
                {
                    "source": "file.nimproject",
                    "target": "%{NimProjectFile}",
                    "openAsProject": true
                },
                {
                    "source": "main.nim",
                    "target": "%{NimFileName}",
                    "openInEditor": true
                },
                {
                    "source": "../git.ignore",
                    "target": "%{ProjectDirectory}/.gitignore",
                    "condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
                }
            ]
        }
    ]
}
