{
    "version": 1,
    "supportedProjectTypes": [ ],
    "id": "Z.Js",
    "category": "R.Qt",
    "trDescription": "Creates a JavaScript file.",
    "trDisplayName": "JS File",
    "trDisplayCategory": "Qt",
    "iconText": "js",
    "enabled": "%{JS: value('Plugins').indexOf('QmlJSEditor') >= 0}",

    "options": { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('application/javascript')}" },

    "pages" :
    [
        {
            "trDisplayName": "Location",
            "trShortTitle": "Location",
            "typeId": "File"
        },
        {
            "trDisplayName": "Options",
            "trShortTitle": "Options",
            "typeId": "Fields",
            "data":
            [
                {
                    "name": "Stateless",
                    "trDisplayName": "Stateless library",
                    "type": "CheckBox",
                    "span": true,
                    "data":
                    {
                        "checked": false
                    }
                }
            ]
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators" :
    [
        {
            "typeId": "File",
            "data":
            {
                "source": "file.js",
                "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}",
                "openInEditor": true
            }
        }
    ]
}
