Skip to content

Instantly share code, notes, and snippets.

@markodayan
Last active December 11, 2021 13:03
Show Gist options
  • Save markodayan/87ca2070d382ce4d0f0360fe46525224 to your computer and use it in GitHub Desktop.
Save markodayan/87ca2070d382ce4d0f0360fe46525224 to your computer and use it in GitHub Desktop.
repetitive stuff with node
npm init -y
echo "node_modules\n.env" > .gitignore
echo "# Node.js Boilerplate Sample" > README.md
touch .env
mkdir -p src/test && touch src/index.js
mkdir -p src/lib
mkdir -p .github/workflows && touch .github/workflows/actions.yaml
mkdir .vscode && touch .vscode/settings.json
touch .prettierrc
git init
chmod +x .git/hooks/pre-commit
npm i dotenv
npm i -D nodemon mocha chai prettier [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment