Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
chore: update VS Code settings & related files
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Sep 3, 2019
1 parent 8b16771 commit 4553aea
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 26 deletions.
19 changes: 15 additions & 4 deletions .vscode/launch.json
Expand Up @@ -7,17 +7,28 @@
{
"type": "node",
"request": "launch",
"name": "Inspect: tests",
"showAsyncStacks": true,
"preLaunchTask": "babel:compile",
"name": "Inspect: Mocha",
"program": "${workspaceFolder}/node_modules/.bin/_mocha",
"args": [
"--no-timeouts"
]
"--no-timeouts",
],
"skipFiles": [
"<node_internals>/**"
],
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "node",
"request": "attach",
"showAsyncStacks": true,
"name": "Attach",
"protocol": "inspector"
"protocol": "inspector",
"skipFiles": [
"<node_internals>/**"
],
"internalConsoleOptions": "openOnSessionStart"
}
]
}
37 changes: 17 additions & 20 deletions .vscode/settings.json
@@ -1,31 +1,28 @@
{
// Do not show compiled JavaScript files in the file tree
"editor.tabSize": 2,
"editor.wordWrapColumn": 100,
"eslint.autoFixOnSave": true,
"eslint.enable": true,
"eslint.lintTask.enable": true,
"eslint.options": {
"reportUnusedDisableDirectives": true
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"{packages,test}/**/*.js": true,
"**/*.log": true,
"**/node_modules": true,
"**/.DS_Store": true,
"**/.git": true,
".eslintcache": true,
".nyc_output": true,
"coverage": true,
".eslintcache": true,
"{packages,test}/**/*.js": true
},
// Custom Application window title 鉂わ笍
"window.title": "Atlas.js",
// These should be set up through .editorconfig, but just in case...
"editor.wordWrapColumn": 100,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
// Disable built-in JS validator due to unsupported language syntax being used
"javascript.validate.enable": false,
"files.trimTrailingWhitespace": true,
"javascript.format.enable": false,
"javascript.validate.enable": false,
"mochaExplorer.files": "",
"triggerTaskOnSave.selectedTask": "babel:compile",
"typescript.format.enable": false,
// Enable ESLint and its auto-fixer
"eslint.enable": true,
"eslint.autoFixOnSave": true,
"eslint.options": {
"reportUnusedDisableDirectives": true
},
"mochaExplorer.files": ""
"window.title": "Atlas.js"
}
35 changes: 35 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,35 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "mocha:test",
"type": "process",
"command": "make",
"args": [
"test"
],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "babel:compile",
"type": "process",
"command": "make",
"args": [
"compile"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent",
"clear": true
},
}
]
}
5 changes: 3 additions & 2 deletions makefile
@@ -1,6 +1,7 @@
# Defining shell is necessary in order to modify PATH
SHELL := sh
export PATH := node_modules/.bin/:$(PATH)
BINDIR := node_modules/.bin/
export PATH := $(BINDIR):$(PATH)
export NODE_OPTIONS := --trace-deprecation

# On CI servers, use the `npm ci` installer to avoid introducing changes to the package-lock.json
Expand Down Expand Up @@ -62,7 +63,7 @@ test: force compile
mocha $(MOCHA_FLAGS)

test-debug: force compile
mocha --inspect --inspect-brk $(MOCHA_FLAGS)
node --inspect-brk $(BINDIR)/_mocha --no-timeouts $(MOCHA_FLAGS)

test-watch: force compile
mocha --reporter min $(MOCHA_FLAGS) --watch
Expand Down

0 comments on commit 4553aea

Please sign in to comment.