ngxs/schematics

View on GitHub
src/factories/store/schema.json

Summary

Maintainability
Test Coverage
{
    "$schema": "http://json-schema.org/schema",
    "$id": "SchematicsNgxsStore",
    "title": "Ngxs Store Options Schema",
    "type": "object",
    "properties": {
        "name": {
            "description": "The name of the store.",
            "type": "string",
            "$default": {
                "$source": "argv",
                "index": 0
            },
            "x-prompt": "What name would you like to use for the store?"
        },
        "path": {
            "type": "string",
            "format": "path",
            "description": "The path to create the store."
        },
        "sourceRoot": {
            "type": "string",
            "format": "path",
            "description": "The source root path"
        },
        "spec": {
            "type": "boolean",
            "description": "Specifies if a spec file is generated.",
            "default": true
        }
    },
    "required": [
        "name"
    ]
}