Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
chore(vscode): set up debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
yenbekbay committed Aug 5, 2017
1 parent f894ef7 commit 66ad7a5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 21 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"protocol": "inspector",
"name": "Attach",
"restart": true,
"cwd": "${workspaceRoot}",
"outFiles": ["${workspaceRoot}/build/main.js"],
"sourceMaps": true
}
]
}
10 changes: 10 additions & 0 deletions .vscode/tasks.json
@@ -0,0 +1,10 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"problemMatcher": []
}
]
}
28 changes: 7 additions & 21 deletions package.json
Expand Up @@ -27,34 +27,20 @@
"test": "run-p --silent typecheck lint jest",
"test:ci": "run-p --silent typecheck lint jest:coverage && codecov",
"build": "backpack build",
"dev": "backpack",
"dev": "backpack --inspect",
"commitmsg": "validate-commit-msg",
"prepush": "yarn test",
"deploy": "sh scripts/deploy.sh"
},
"lint-staged": {
"{*.js,{scripts,src}/**/*.js}": [
"eslint --cache --fix",
"git add"
],
"{*.json,.vscode/*.json}": [
"prettier --write",
"git add"
]
"{*.js,{scripts,src}/**/*.js}": ["eslint --cache --fix", "git add"],
"{*.json,.vscode/*.json}": ["prettier --write", "git add"]
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js"
],
"coverageReporters": [
"lcov"
],
"roots": [
"<rootDir>/src"
],
"setupFiles": [
"<rootDir>/jest.setup.js"
],
"collectCoverageFrom": ["src/**/*.js"],
"coverageReporters": ["lcov"],
"roots": ["<rootDir>/src"],
"setupFiles": ["<rootDir>/jest.setup.js"],
"testEnvironment": "node",
"testRegex": "/__tests__/.*-test\\.js$"
},
Expand Down

0 comments on commit 66ad7a5

Please sign in to comment.