Skip to content

Instantly share code, notes, and snippets.

@dasheck0
Last active January 9, 2020 10:28
Show Gist options
  • Save dasheck0/6439fcc014a9c72c99c6a9c3f868fc35 to your computer and use it in GitHub Desktop.
Save dasheck0/6439fcc014a9c72c99c6a9c3f868fc35 to your computer and use it in GitHub Desktop.
[Create node project] Some commands to easily set up node project with some information like license, code of conduct #boilerplate #nodejs #template
# npm set init.author.name "Your name"
# npm set init.author.email "[email protected]"
# npm set init.author.url "https://your-url.com"
# npm set init.license "MIT"
# npm set init.version "1.0.0"
npx license $(npm get init.license) -o "$(npm get init.author.name)" > LICENSE
npx gitignore node
npx covgen "$(npm get init.author.email)"
npm init -y
git init
git add -A
git commit -m "Initial commit"
git flow init -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment