1
0
Fork 0
js-utils/scripts/project-create.sh

17 lines
446 B
Bash
Raw Permalink Normal View History

#! /bin/bash
PROJECT_NAME="${1}"
PROJECT_PATH="${2:-${USER}}"
echo "Creating project ${PROJECT_NAME}..."
mkdir ../"${PROJECT_NAME}"
pushd ../"${PROJECT_NAME}"
echo "Setting up repository..."
git init
2019-09-23 13:13:44 +00:00
git remote add github "git@github.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
git remote add gitlab "git@git.apextoaster.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
echo "Setting up template..."
popd
./scripts/project-update.sh "../${PROJECT_NAME}"