Skip to content

Commit f86c9da

Browse files
author
Manuela Paula Ritter
committedNov 25, 2020
setup actions scripts and packages
1 parent 33c6e09 commit f86c9da

File tree

3 files changed

+259
-4
lines changed

3 files changed

+259
-4
lines changed
 

‎karma.conf.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ module.exports = function (config) {
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('@angular-devkit/build-angular/plugins/karma')
13+
require('@angular-devkit/build-angular/plugins/karma'),
1414
],
1515
client: {
16-
clearContext: false // leave Jasmine Spec Runner output visible in browser
16+
clearContext: false, // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
1919
dir: require('path').join(__dirname, './coverage/emapp'),
2020
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
21+
fixWebpackSourcePaths: true,
2222
},
2323
reporters: ['progress', 'kjhtml'],
2424
port: 9876,
@@ -27,6 +27,10 @@ module.exports = function (config) {
2727
autoWatch: true,
2828
browsers: ['Chrome'],
2929
singleRun: false,
30-
restartOnFileChange: true
30+
restartOnFileChange: true,
31+
customLaunchers: {
32+
base: 'ChromeHeadless',
33+
flags: ['--no-sandbox', '--disable-gpu'],
34+
},
3135
});
3236
};

‎package-lock.json

+247
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build",
8+
"build:prod": "ng build --prod",
9+
"build:ci": "npm run clean && npm run test:ci && npm run build:prod",
810
"test": "ng test",
11+
"test:ci": "ng test --watch=false --browsers=ChromeHeadlessCustom",
912
"lint": "ng lint",
1013
"e2e": "ng e2e"
1114
},
@@ -45,6 +48,7 @@
4548
"karma-jasmine": "~2.0.1",
4649
"karma-jasmine-html-reporter": "^1.4.0",
4750
"protractor": "~5.4.0",
51+
"puppeteer": "^5.5.0",
4852
"ts-node": "~7.0.0",
4953
"tslint": "~5.15.0",
5054
"tslint-config-prettier": "^1.18.0",

0 commit comments

Comments
 (0)
Please sign in to comment.