Created
November 14, 2019 15:32
-
-
Save Ceheiss/37cc7d21e87202722beb5cdc4840968d to your computer and use it in GitHub Desktop.
File used for my node projects
This file contains 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
================================= | |
------- 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