Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
- No Linting
Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
package.json, set version to a prerelease version, e.g. 2.0.0-rc1, 3.1.5-rc4, ...npm pack to create packagenpm publish <package>.tgz --tag next to publish the package under the next tagnpm install --save package@next to install prerelease package| // Turn off autocomplete in Visual Studio Code | |
| // http://code.visualstudio.com/ | |
| // Add the following lines to user settings | |
| // OPTIONAL WORD WRAPPING | |
| // Controls if lines should wrap. The lines will wrap at min(editor.wrappingColumn, viewportWidthInColumns). | |
| "editor.wordWrap": true, | |
| // Controls the indentation of wrapped lines. Can be one of 'none', 'same' or 'indent'. | |
| "editor.wrappingIndent": "indent", |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin <branch-name> |