generate sample .gitignore file for application

This commit is contained in:
Sameer Naik
2017-06-01 16:46:40 +05:30
parent e99812b432
commit 09445c0c4a
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
node_modules/

View File

@@ -62,6 +62,11 @@ wait_for_db() {
fi
}
add_gitignore_sample() {
info "Installing git ignore rules."
cp /dist/.gitignore .gitignore
}
add_sample_code() {
if ! [[ -n $SKIP_SAMPLE_CODE && $SKIP_SAMPLE_CODE -gt 0 ]]; then
info "Adding dist samples."
@@ -99,6 +104,7 @@ bootstrap_express_app() {
info "Creating express application."
express . -f
add_gitignore_sample
add_database_support
add_nodemon_support
add_sample_code