🔧 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

34
scripts/dev-link.sh Normal file
View File

@@ -0,0 +1,34 @@
#! /usr/bin/env bash
# Exit in case of error
set -e
# Run this from the root of the project to generate a dev-link project
# It will contain a link to each of the files of the generator, except for
# .env and frontend/.env, that will be the generated ones
# This allows developing with a live stack while keeping the same source code
# Without having to generate dev-fsfp and integrating back all the files
rm -rf dev-link
mkdir -p tmp-dev-link/frontend
cookiecutter --no-input -f ./ project_name="Dev Link"
mv ./dev-link/.env ./tmp-dev-link/
mv ./dev-link/frontend/.env ./tmp-dev-link/frontend/
rm -rf ./dev-link/
mkdir -p ./dev-link/
cd ./dev-link/
for f in ../\{\{cookiecutter.project_slug\}\}/* ; do
ln -s "$f" ./
done
cd ..
mv ./tmp-dev-link/.env ./dev-link/
mv ./tmp-dev-link/frontend/.env ./dev-link/frontend/
rm -rf ./tmp-dev-link