-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '0.7' of github.com:msqd/harp into 0.7
- Loading branch information
Showing
18 changed files
with
214 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
|
@@ -2,7 +2,15 @@ | |
"name": "HARP Project", | ||
"__dir_name": "{{cookiecutter.name | slugify}}", | ||
"__pkg_name": "{{cookiecutter.name | slugify(separator='_')}}", | ||
"author": "Smart Anonymous Harpist", | ||
"author_name": "Smart Anonymous Harpist", | ||
"author_email": "[email protected]", | ||
"create_application": false, | ||
"create_config": true | ||
"create_config": true, | ||
"__prompts__": { | ||
"name": "Project name", | ||
"author_name": "Author name", | ||
"author_email": "Author email", | ||
"create_application": "Create application folder ?", | ||
"create_config": "Create config file ?" | ||
} | ||
} |
8 changes: 6 additions & 2 deletions
8
harp/commandline/cookiecutters/project/hooks/post_gen_project.sh
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,12 +1,16 @@ | ||
#! /bin/bash | ||
|
||
if [ "{{cookiecutter.create_application}}" == "False" ]; then | ||
echo "Removing application folder (create_application == False)." | ||
rm -rf ./{{cookiecutter.__pkg_name}} | ||
fi | ||
|
||
|
||
if [ "{{cookiecutter.create_config}}" == "False" ]; then | ||
echo "Removing config file (create_config == False)." | ||
rm -f ./config.yml | ||
fi | ||
|
||
echo "Congratulations, your HARP project «{{cookiecutter.name}}» has been created in «{{cookiecutter.__dir_name}}»." | ||
echo | ||
echo "To install the project dependencies, run '(cd {{cookiecutter.__dir_name}} && make install)'." | ||
echo "To run the tests, run '(cd {{cookiecutter.__dir_name}} && make test)'." | ||
echo "To start your project, run '(cd {{cookiecutter.__dir_name}} && make)'." |
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
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
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
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
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
Oops, something went wrong.