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 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Launch index.html", "name": "ng serve",
"type": "firefox", "type": "node",
"request": "launch", "request": "launch",
"reAttach": true, "runtimeExecutable": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
"file": "${workspaceFolder}/index.html" "runtimeArgs": [
}, "serve"
{ ]
"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}"
} }
] ]
} }

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, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
"serviceWorker": true "serviceWorker": true
},
"codeserver": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.codeserver.ts"
}
]
} }
} }
}, },
@ -62,6 +70,9 @@
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "twigs:build:production" "browserTarget": "twigs:build:production"
},
"codeserver": {
"browserTarget": "twigs:build:codeserver"
} }
} }
}, },

View file

@ -1,4 +1,4 @@
{ {
"schemaVersion": 2, "schemaVersion": 2,
"dockerfilePath": "./Dockerfile" "dockerfilePath": "./Dockerfile"
} }

View file

@ -4,7 +4,7 @@
"scripts": { "scripts": {
"ng": "node_modules/@angular/cli/bin/ng", "ng": "node_modules/@angular/cli/bin/ng",
"start": "node_modules/@angular/cli/bin/ng serve --host '0.0.0.0'", "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", "build": "node_modules/@angular/cli/bin/ng build",
"package": "node_modules/@angular/cli/bin/ng build --prod --service-worker", "package": "node_modules/@angular/cli/bin/ng build --prod --service-worker",
"publish": "node_modules/@angular/cli/bin/ng build --prod --service-worker && firebase deploy", "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'
};