-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make plugin cookiecutter more consistent
- Loading branch information
Showing
22 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,21 @@ package using pip. Next, use it to bootstrap your project folder:: | |
You'll be prompted for some questions. Answer them, and you will find a | ||
project folder created for you:: | ||
|
||
repo_name [pretalx-superplugin]: pretalx-superplugin | ||
repo_url [GitHub repository URL]: https://github.com/myuser/pretalx-superplugin | ||
module_name [pretalx_superplugin]: pretalx_superplugin | ||
human_name [The pretalx super plugin]: Super Plugin | ||
author_name [Your name]: J Random Developer | ||
author_email [Your email]: [email protected] | ||
short_description [Short description]: The best plugin | ||
Select category: | ||
[1/7] human_name (pretalx FooBar plugin): pretalx JSON plugin | ||
[2/7] module_name (pretalx_json): | ||
[3/7] short_description (pretalx plugin for pretalx JSON plugin): pretalx plugin for custom JSON exports | ||
[4/7] author_name (Your name): Tobias Kunze | ||
[5/7] author_email ([email protected]): [email protected] | ||
[6/7] repo_url (https://github.com/r/pretalx-json): https://github.com/rixx/pretalx-json | ||
[7/7] Select category | ||
1 - FEATURE | ||
2 - INTEGRATION | ||
3 - CUSTOMIZATION | ||
4 - EXPORTER | ||
5 - RECORDING | ||
6 - LANGUAGE | ||
7 - OTHER | ||
Choose from 1, 2, 3, 4, 5 [1]: 1 | ||
Choose from [1/2/3/4/5/6/7] (1): 1 | ||
|
||
Now, change to the newly created directory:: | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"human_name": "pretalx FooBar plugin", | ||
"module_name": "{{ cookiecutter.human_name.replace('pretalx', '').replace('the', '').strip().replace(' ', '_').replace('-', '_').replace('__', '_') }}", | ||
"module_name": "pretalx_{{ cookiecutter.human_name.lower().replace('pretalx', '').replace('the', '').replace('plugin', '').strip().replace(' ', '_').replace('-', '_').replace('__', '_') }}", | ||
"short_description": "pretalx plugin for {{ cookiecutter.human_name }}", | ||
"author_name": "Your name", | ||
"author_email": "[email protected]", | ||
"repo_url": "https://github.com/{{ cookiecutter.author_email.split('@')[0] }}/{{ cookiecutter.module_name.replace('_', '-') }}", | ||
"__repo_name": "{{ cookiecutter.module_name.replace('_', '-') }}", | ||
"__model_name": "{{ cookiecutter.module_name.replace('pretalx_', '').split('_')|map('capitalize')|join }}", | ||
"repo_url": "https://github.com/{{ cookiecutter.author_email.split('@')[0] }}/{{ cookiecutter.__repo_name }}", | ||
"category": ["FEATURE", "INTEGRATION", "CUSTOMIZATION", "EXPORTER", "RECORDING", "LANGUAGE", "OTHER"] | ||
"__model_name": "{{ cookiecutter.module_name.split('-')|map('capitalize')|join }}}", | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
2 changes: 1 addition & 1 deletion
2
{{cookiecutter.repo_name}}/pyproject.toml → {{cookiecutter.__repo_name}}/pyproject.toml
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...e}}/{{cookiecutter.module_name}}/forms.py → ...e}}/{{cookiecutter.module_name}}/forms.py
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,4 @@ | |
name="settings", | ||
), | ||
] | ||
urlpatterns += router.urls | ||
{% endif %} |
File renamed without changes.
Empty file.
Empty file.