/js

This an initial setup for new JS projects.

Primary LanguageJavaScript

JavaScript Initial Configuration

This is an initial configuration for a JavaScript project.

Development Setup

Dependencies

  • $ git clone https://github.com/gpazevedo/js.git newfolder copy the repository for a new folder and init a git there
  • $ yarn install install the dependencies
  • $ git init initiate the version control

Workflow

  • $ yarn test filetobetested # TDD with Unit Tests
  • $ yarn test # TDD with all Unit Tests
  • $ yarn test:coverage # TDD with all Unit Tests
  • $ yarn build # builds for production
  • $ yarn build && node dist/index.js # Runs the program

VSCode plugins

A better development experience can be achieved with the following vscode plug-ins installed:

  • EditorConfig for VS Code editorconfig.editorconfig ".editorconfig"
  • ESLint dbaeumer.vscode-eslint ".eslintrc"
  • Prettier - Code formatter esbenp.prettier-vscode ".prettierrc"
  • Insert Unicode brunnerh.insert-unicode
  • Jest orta.vscode-jest
  • Visual Studio IntelliCode
  • vscode-icons vscode-icons-team.vscode-icons
  • Babel JavaScript mgmcdermott.vscode-language-babel
  • Debugger for Chrome msjsdiag.debugger-for-chrome ".vscode/launch.json"