#!/bin/bash # Git init git init; # Make directory mkdir "src"; mkdir "src/__tests__"; mkdir ".vscode"; # Download files curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_package.json --output package.json; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_.eslintrc.yaml --output .eslintrc; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_.prettierrc.yaml --output .prettierrc; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_.prettierignore --output .prettierignore; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_.gitignore --output .gitignore; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_.eslintignore --output .eslintignore; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_.vscode_launch.json --output .vscode/launch.json; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_src_index.js --output src/index.js; curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/root_src___tests___test.js --output src/__tests__/test.js; # Install packages npm init -f; npm install --save-dev \ jest \ prettier \ eslint \ eslint-plugin-prettier \ eslint-config-prettier \ eslint-plugin-react \ babel-eslint \ babel-jest \ husky # Run prettier npm run pretty; # Git commit git add -A; git commit -m "initial commit"