Last active
May 15, 2023 16:09
-
-
Save dazeb/dd9b2b41766cbef0617720300992cb12 to your computer and use it in GitHub Desktop.
New Node project
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/bash | |
| # Ask for the project name | |
| echo "Enter your new project name:" | |
| read projectname | |
| # Create directory and navigate into it | |
| mkdir $projectname | |
| cd $projectname | |
| # Initialize npm | |
| npm init -y | |
| # Generate essential files | |
| npx license MIT | |
| npx gitignore node | |
| npx covgen $(git config --get user.email) | |
| touch index.js | |
| echo "Project setup complete." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment