Created
June 4, 2016 16:22
-
-
Save hackebrot/360ec3d7053ce2be9df69f142272e3c7 to your computer and use it in GitHub Desktop.
cookiecutter.json draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": "Raphael Pierzina", | |
"keywords": [ | |
"pytest", | |
"plugin" | |
], | |
"url": "https://github.com/pytest-dev/cookiecutter-pytest-plugin", | |
"variables": [ | |
{ | |
"default": "Raphael Pierzina", | |
"name": "full_name", | |
"prompt": "Hi, what is your full name?", | |
"type": "string", | |
"validation": "\\b[\\w ]+\\b" | |
}, | |
{ | |
"default": "[email protected]", | |
"name": "email", | |
"prompt": "Please enter your email adress.", | |
"type": "string", | |
"validation": "\\b[\\w @\\.]+\\b" | |
}, | |
{ | |
"default": "foobar", | |
"name": "plugin_name", | |
"prompt": "What is the name of your plugin ('pytest-' will be used a prefix)?", | |
"type": "string", | |
"validation": "\\b[a-z\\-]+\\b" | |
}, | |
{ | |
"default": "{{ cookiecutter.plugin_name|lower|replace('-', '_') }}", | |
"name": "module_name", | |
"prompt": "Please enter a module name ('pytest_' will be used a prefix):", | |
"type": "string", | |
"validation": "\\b[a-z_]+\\b" | |
}, | |
{ | |
"default": true, | |
"name": "docs", | |
"prompt": "Would you like to add documentation?", | |
"type": "boolean", | |
"variables": [ | |
{ | |
"choices": [ | |
{ | |
"description": "http://www.mkdocs.org/", | |
"name": "mkdocs" | |
}, | |
{ | |
"description": "http://www.sphinx-doc.org/", | |
"name": "sphinx", | |
"variables": [ | |
{ | |
"default": false, | |
"name": "makefile", | |
"prompt": "Would you like to create Makefiles for sphinx?", | |
"type": "boolean" | |
} | |
] | |
} | |
], | |
"default": "sphinx", | |
"name": "engine", | |
"prompt": "Please choose a docs engine", | |
"type": "choice" | |
}, | |
{ | |
"name": "ReadTheDocs", | |
"optional": true, | |
"prompt": "Do you want to add a link to ReadTheDocs?" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment