🔧 Simplify scripts and development (#155)

* 🔧 Update scripts and configs

* 🔧 Add shebang to script

* 🔥 Remove test and dev configs, pass inline

*  Add local development dev-link set up

* 📝 Update generated docs with refactor

* 📝 Add Contributing guide
This commit is contained in:
Sebastián Ramírez
2020-04-19 20:19:25 +02:00
committed by GitHub
parent a7fd258e18
commit f09fb854bf
13 changed files with 262 additions and 153 deletions

22
scripts/dev-fsfp-back.sh Normal file
View File

@@ -0,0 +1,22 @@
#! /usr/bin/env bash
# Run this script from outside the project, to integrate a dev-fsfp project with changes and review modifications
# Exit in case of error
set -e
if [ ! -d ./full-stack-fastapi-postgresql ] ; then
echo "Run this script from outside the project, to integrate a sibling dev-fsfp project with changes and review modifications"
exit 1
fi
if [ $(uname -s) = "Linux" ]; then
echo "Remove __pycache__ files"
sudo find ./dev-fsfp/ -type d -name __pycache__ -exec rm -r {} \+
fi
rm -rf ./full-stack-fastapi-postgresql/\{\{cookiecutter.project_slug\}\}/*
rsync -a --exclude=node_modules ./dev-fsfp/* ./full-stack-fastapi-postgresql/\{\{cookiecutter.project_slug\}\}/
rsync -a ./dev-fsfp/{.env,.gitignore,.gitlab-ci.yml} ./full-stack-fastapi-postgresql/\{\{cookiecutter.project_slug\}\}/