Skip to content

Instantly share code, notes, and snippets.

@Ceheiss
Created November 14, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ceheiss/37cc7d21e87202722beb5cdc4840968d to your computer and use it in GitHub Desktop.
Save Ceheiss/37cc7d21e87202722beb5cdc4840968d to your computer and use it in GitHub Desktop.
File used for my node projects
=================================
------- PROJECT SETUP ---------
=================================
Hello, don't forget to do the following things in your brand new Node App:
To use Jest, build with babel and send it to dist folder, and format everything with prettier (you can add src after jest if you want to test all the files):
"scripts": {
"test": "jest",
"build": "babel src -d dist",
"format": "prettier src/*.js --write"
}
Add in .gitignore:
node_modules
package-lock.json
dist
Add this in the .babelrc file:
{
"presets": ["env"]
}
****** important ******
save test that is only run like: npm test
the rest need the run method(?) as well
e.g. npm run build / npm run format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment