.vscode/tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "build-website",
"dependsOn": [
"build-server-with-sourcemaps",
"build-client"
],
"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/",
"--extensions", ".js,.jsx,.ts,.tsx"
],
"isBackground": false
},
{
"label": "build-client",
"type": "npm",
"script": "build-client",
"problemMatcher": [],
},
{
"label": "build-api-with-sourcemaps",
"command": "${workspaceFolder}/node_modules/.bin/babel",
"args": [
"src",
"--ignore", "src/server","src/client",
"--source-maps",
"--out-dir",
"lib",
"--extensions", ".js,.jsx,.ts,.tsx"
],
"isBackground": false
},
{
"label": "lint-code",
"type": "npm",
"script": "lint",
"problemMatcher": []
}
]
}