-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from bookbrainz/document-local-setup
docs: Document local setup and debugging with VSCode
- Loading branch information
Showing
6 changed files
with
166 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"env": {"SSR":true}, | ||
"program": "${workspaceFolder}/lib/server/app.js", | ||
"sourceMaps": true, | ||
"preLaunchTask": "build-website" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Webserver Mocha Tests", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--timeout", "999999", | ||
"--colors", | ||
// You can point to a specific file or folder to run only those tests | ||
"${workspaceFolder}/test/" | ||
], | ||
"env": {"NODE_ENV":"test","SSR":true}, | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"preLaunchTask": "build-website" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch API", | ||
"program": "${workspaceFolder}/lib/api/app.js", | ||
"preLaunchTask": "build-api-with-sourcemaps" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "API Mocha Tests", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--timeout", "999999", | ||
"--colors", | ||
// If you want to run only on test file, put the path here: | ||
"${workspaceFolder}/test/src/api/routes/test-search.js" | ||
], | ||
"env": {"NODE_ENV":"test","SSR":true}, | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"preLaunchTask": "build-api-with-sourcemaps" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"typescript.format.enable": false, | ||
"javascript.validate.enable": false, | ||
"eslint.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build-website", | ||
"dependsOn": [ | ||
"build-server-with-sourcemaps", | ||
"build-client-js" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "build-server-with-sourcemaps", | ||
"command": "${workspaceFolder}/node_modules/.bin/babel", | ||
"args": [ | ||
"src", | ||
"--out-dir", | ||
"lib", | ||
"--source-maps", | ||
"--ignore src/api" | ||
], | ||
"isBackground": false | ||
}, | ||
{ | ||
"label": "build-client-js", | ||
"type": "npm", | ||
"script": "build-client-js", | ||
"problemMatcher": [], | ||
}, | ||
{ | ||
"label": "build-api-with-sourcemaps", | ||
"command": "${workspaceFolder}/node_modules/.bin/babel", | ||
"args": [ | ||
"src", | ||
"--ignore 'src/server','src/client'", | ||
"--source-maps", | ||
"--out-dir", | ||
"lib" | ||
], | ||
"isBackground": false | ||
}, | ||
{ | ||
"label": "lint-code", | ||
"type": "npm", | ||
"script": "lint", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters