Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooling] VSCode Debug configurations and project settings #705

Merged
merged 9 commits into from Oct 28, 2019
Merged

[Tooling] VSCode Debug configurations and project settings #705

merged 9 commits into from Oct 28, 2019

Conversation

tinovyatkin
Copy link
Contributor

@tinovyatkin tinovyatkin commented Oct 26, 2019

This PR aims to make a contributor life easier by providing ready environment in VScode:

  1. Debug configurations
    image
    Provided ready to use debugging settings:
  • Launch Chrome - fires development server in background, and launches Chrome with configured source map support, so, things like breaking points works out of the box. Adjusted webpack configuration here to build source maps in development
    image

  • Mocha Current File - allow to start debugging session from opened Mocha *.test.js file with all the breaking points, etc.
    Screenshot 2019-10-26 at 17 18 07

  • Mocha All files - the same, but run all suites, so, yo can start, for example, from a source file by setting a breakpoint.

  • Cypress Current File (that was the trickiest one 馃槴 ) - from an opened *.spec.js fires development server (if it's not online already) and launches Cypress in headed and non-exit mode and allows to unleash full debugging
    image

  1. Tasks - configured tasks and problem marchers for package.json tasks

  2. Project settings - added further settings to prevent Prettier and built-in formatters conflicts, improve Intellisense on some files, and enforce file formats for Window-based contributors.

  3. Adjusted jsconfig.json. Most important change here is checkJs: true - you will start to see some annoying false positive errors from VSCode (until we will have JSDoc typing everywhere), but it helps a lot with catching some hard to find errors, like this one (fixed in don't calculate pixel width of input聽#694) :
    Screenshot 2019-10-26 at 17 02 37

Let's do Visual Studio Code great again, try CMD + Shift + B 馃槃

@tinovyatkin tinovyatkin changed the title adjust VSCode project settings [Tooling] VSCode Debug configurations and project settings Oct 26, 2019
@jshjohnson
Copy link
Collaborator

Amazing 馃帀 thanks

@jshjohnson jshjohnson merged commit 92d5e49 into Choices-js:master Oct 28, 2019
@tinovyatkin tinovyatkin deleted the tune-vscode branch October 28, 2019 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants