Skip to content

Instantly share code, notes, and snippets.

@sixertoy
Created August 12, 2016 10:45
Show Gist options
  • Save sixertoy/016d86072eda941b57dc136855ae310f to your computer and use it in GitHub Desktop.
Save sixertoy/016d86072eda941b57dc136855ae310f to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# -----------------------------------------
#
#
# Check if git directory exists
# if not exists will create and init a new local repository
if [ ! -d "$DIRECTORY" ]; then
git init
fi
# Copy main files from user's home folder
cp ~/.jshintrc .
cp ~/.gitignore .
cp ~/.babel.json .
cp ~/.stylelintrc .
cp ~/.editorconfig .
cp ~/.jsbeautifyrc .
cp ~/.eslintrc.json .
# Creat low level directories for a simple project
mkdir bin
mkdir src
mkdir dist
mkdir temp
mkdir .kiss
# Create low level files for a project
touch .env
touch README.md
# Init repository with NPM packager
npm init
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment