update karma and change the name of the project

This commit is contained in:
Jason Wall 2020-08-18 19:25:11 -04:00
parent a0157258c7
commit 86dc97f139
3 changed files with 16 additions and 10 deletions

View File

@ -3,7 +3,7 @@
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"db": { "dynamicbible": {
"projectType": "application", "projectType": "application",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
@ -17,7 +17,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"outputPath": "dist/db", "outputPath": "dist/dynamicbible",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
"polyfills": "src/polyfills.ts", "polyfills": "src/polyfills.ts",
@ -69,18 +69,18 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "db:build" "browserTarget": "dynamicbible:build"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "db:build:production" "browserTarget": "dynamicbible:build:production"
} }
} }
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "db:build" "browserTarget": "dynamicbible:build"
} }
}, },
"test": { "test": {
@ -110,11 +110,11 @@
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {
"protractorConfig": "e2e/protractor.conf.js", "protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "db:serve" "devServerTarget": "dynamicbible:serve"
}, },
"configurations": { "configurations": {
"production": { "production": {
"devServerTarget": "db:serve:production" "devServerTarget": "dynamicbible:serve:production"
} }
} }
}, },
@ -125,5 +125,5 @@
} }
} }
}, },
"defaultProject": "db" "defaultProject": "dynamicbible"
} }

View File

@ -25,7 +25,13 @@ module.exports = function (config) {
colors: true, colors: true,
logLevel: config.LOG_WARN, logLevel: config.LOG_WARN,
autoWatch: true, autoWatch: true,
browsers: ["Chrome"], browsers: ["Chrome", "ChromeHeadlessNoSandbox"],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox"],
},
},
singleRun: false, singleRun: false,
restartOnFileChange: true, restartOnFileChange: true,
}); });

View File

@ -11,7 +11,7 @@
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e", "e2e": "ng e2e",
"copy": "npx cap copy", "copy": "npx cap copy",
"all": "ng lint && ng test --watch=false --browsers=ChromeHeadless && ng build --prod && && npx cap copy" "all": "ng lint & ng test --watch=false --browsers=ChromeHeadless & ng build --prod & npx cap copy"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {