Add vscode settings for code server

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2020-06-30 04:06:44 +00:00
parent 3cef94ab34
commit 022533ceb6
6 changed files with 36 additions and 29 deletions

32
.vscode/launch.json vendored
View file

@ -4,34 +4,14 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch index.html",
"type": "firefox",
"name": "ng serve",
"type": "node",
"request": "launch",
"reAttach": true,
"file": "${workspaceFolder}/index.html"
},
{
"name": "Launch localhost",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "http://localhost/index.html",
"webRoot": "${workspaceFolder}"
},
{
"name": "Attach",
"type": "firefox",
"request": "attach"
},
{
"name": "Launch addon",
"type": "firefox",
"request": "launch",
"reAttach": true,
"addonType": "webExtension",
"addonPath": "${workspaceFolder}"
"runtimeExecutable": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
"runtimeArgs": [
"serve"
]
}
]
}

12
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,12 @@
{
"database.connections": [
{
"type": "mysql",
"name": "root@captain.intra.wbrawner.com (MySql)",
"host": "captain.intra.wbrawner.com:3306",
"username": "root",
"database": null,
"password": "U7YE8YsmES8LHB2B39WXNjTQk4d48LzQEZG3cj6wSb2fgeRLEYtrrqTwiqAhrpR3"
}
]
}

View file

@ -51,6 +51,14 @@
"vendorChunk": false,
"buildOptimizer": true,
"serviceWorker": true
},
"codeserver": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.codeserver.ts"
}
]
}
}
},
@ -62,6 +70,9 @@
"configurations": {
"production": {
"browserTarget": "twigs:build:production"
},
"codeserver": {
"browserTarget": "twigs:build:codeserver"
}
}
},

View file

@ -4,7 +4,7 @@
"scripts": {
"ng": "node_modules/@angular/cli/bin/ng",
"start": "node_modules/@angular/cli/bin/ng serve --host '0.0.0.0'",
"code-server": "node_modules/@angular/cli/bin/ng serve --host \"0.0.0.0\" --disable-host-check --base-href /angular/",
"code-server": "node_modules/@angular/cli/bin/ng serve --configuration=codeserver --host \"0.0.0.0\" --disable-host-check --poll=2000",
"build": "node_modules/@angular/cli/bin/ng build",
"package": "node_modules/@angular/cli/bin/ng build --prod --service-worker",
"publish": "node_modules/@angular/cli/bin/ng build --prod --service-worker && firebase deploy",

View file

@ -0,0 +1,4 @@
export const environment = {
production: false,
apiUrl: 'https://3000code.brawner.home'
};