Skip to content

Commit

Permalink
vscode launch tasks preLaunchTask helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Maia Costa committed Jun 12, 2019
1 parent 7dc2b9e commit ed6d23a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// 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": "Debug the API",
"program": "${workspaceFolder}/api/server/app.ts",
"args": [],
"console": "internalConsole",
"cwd": "${workspaceFolder}/api",
"preLaunchTask": "npm: build:api",
"outFiles": ["${workspaceFolder}/api/production-server/**/*.js"]
},
{
"name": "Attach to API",
"type": "node",
"request": "attach",
"port": 8000
}
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"scripts": {
"dev": "yarn --cwd ./api dev & yarn --cwd ./app dev",
"test": "yarn --cwd ./api test && yarn --cwd ./app test",
"build": "docker-compose build",
"postinstall": "yarn --cwd ./api install && yarn --cwd ./app install",
"build:api": "yarn --cwd ./api build",
"build:app": "yarn --cwd ./app build",
"build": "docker-compose build",
"start": "docker-compose up",
"stop": "docker-compose down",
"clean": "docker-compose rm",
Expand Down

0 comments on commit ed6d23a

Please sign in to comment.