Created
August 12, 2016 10:45
-
-
Save sixertoy/016d86072eda941b57dc136855ae310f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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