Skip to content

Instantly share code, notes, and snippets.

View kheob's full-sized avatar
🐢

Bai Chan Kheo kheob

🐢
  • Melbourne, Australia
View GitHub Profile
@kheob
kheob / generate.sh
Last active December 24, 2017 23:31
Generates a Node TypeScript project
echo "Node project name: "
read project_name
if [ -d "$project_name" ]; then
echo "Project already exists."
elif [ -z "$project_name" ]; then
echo "You didn't enter a name."
else
git clone --depth=1 https://github.com/Microsoft/TypeScript-Node-Starter.git $project_name
@kheob
kheob / generate.sh
Created December 24, 2017 23:04
Generates a React TypeScript project
echo "React project name: "
read project_name
if [ -d "$project_name" ]; then
echo "Project already exists."
elif [ -z "$project_name" ]; then
echo "You didn't enter a name."
else
create-react-app $project_name --scripts-version=react-scripts-ts