Skip to content
This repository was archived by the owner on Jun 25, 2019. It is now read-only.

Commit 2a8584b

Browse files
author
Felix Gladisch
committed
🚀 feat: testing with chrome headless
1 parent 20ca734 commit 2a8584b

File tree

3 files changed

+28
-117
lines changed

3 files changed

+28
-117
lines changed

config/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (config) {
1111
plugins: [
1212
'karma-jasmine',
1313
'karma-mocha-reporter',
14-
'karma-phantomjs-launcher',
14+
'karma-chrome-launcher',
1515
'karma-sourcemap-loader',
1616
'karma-webpack'
1717
],
@@ -77,7 +77,7 @@ module.exports = function (config) {
7777
* start these browsers
7878
* available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
7979
*/
80-
browsers: ['PhantomJS'],
80+
browsers: ['ChromeHeadless'],
8181

8282
/*
8383
* Continuous Integration mode

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-webpack-seed",
3-
"version": "1.1.3",
3+
"version": "1.2.0",
44
"scripts": {
55
"start": "webpack-dev-server --inline --progress --port 3000",
66
"build": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail",
@@ -14,7 +14,8 @@
1414
"bootstrap",
1515
"karma",
1616
"jasmine",
17-
"webpack"
17+
"webpack",
18+
"aot"
1819
],
1920
"author": "Felix Gladisch <[email protected]>",
2021
"homepage": "https://github.com/fgladisch/angular2-webpack-seed",
@@ -62,9 +63,9 @@
6263
"jasmine-core": "2.8.0",
6364
"json-loader": "0.5.7",
6465
"karma": "1.7.1",
66+
"karma-chrome-launcher": "2.2.0",
6567
"karma-jasmine": "1.1.0",
6668
"karma-mocha-reporter": "2.2.4",
67-
"karma-phantomjs-launcher": "1.0.4",
6869
"karma-sourcemap-loader": "0.3.7",
6970
"karma-webpack": "2.0.4",
7071
"node-sass": "4.5.3",

yarn.lock

Lines changed: 22 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -935,14 +935,6 @@ [email protected]:
935935
version "0.0.1"
936936
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
937937

938-
939-
version "1.6.0"
940-
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7"
941-
dependencies:
942-
inherits "^2.0.3"
943-
readable-stream "^2.2.2"
944-
typedarray "^0.0.6"
945-
946938
connect-history-api-fallback@^1.3.0:
947939
version "1.3.0"
948940
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.3.0.tgz#e51d17f8f0ef0db90a64fdb47de3051556e9f169"
@@ -1511,10 +1503,6 @@ es6-map@^0.1.3:
15111503
es6-symbol "~3.1.1"
15121504
event-emitter "~0.3.5"
15131505

1514-
es6-promise@~4.0.3:
1515-
version "4.0.5"
1516-
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.0.5.tgz#7882f30adde5b240ccfa7f7d78c548330951ae42"
1517-
15181506
es6-set@~0.1.5:
15191507
version "0.1.5"
15201508
resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1"
@@ -1742,15 +1730,6 @@ [email protected]:
17421730
schema-utils "^0.3.0"
17431731
webpack-sources "^1.0.1"
17441732

1745-
extract-zip@~1.6.5:
1746-
version "1.6.5"
1747-
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.5.tgz#99a06735b6ea20ea9b705d779acffcc87cff0440"
1748-
dependencies:
1749-
concat-stream "1.6.0"
1750-
debug "2.2.0"
1751-
mkdirp "0.5.0"
1752-
yauzl "2.4.1"
1753-
17541733
[email protected], extsprintf@^1.2.0:
17551734
version "1.3.0"
17561735
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
@@ -1775,12 +1754,6 @@ faye-websocket@~0.11.0:
17751754
dependencies:
17761755
websocket-driver ">=0.5.1"
17771756

1778-
fd-slicer@~1.0.1:
1779-
version "1.0.1"
1780-
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
1781-
dependencies:
1782-
pend "~1.2.0"
1783-
17841757
17851758
version "0.11.2"
17861759
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-0.11.2.tgz#4ff1df28af38719a6098093b88c82c71d1794a34"
@@ -1885,6 +1858,12 @@ [email protected]:
18851858
version "0.5.0"
18861859
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.0.tgz#f474ca5e6a9246d6fd8e0953cfa9b9c805afa78e"
18871860

1861+
fs-access@^1.0.0:
1862+
version "1.0.1"
1863+
resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
1864+
dependencies:
1865+
null-check "^1.0.0"
1866+
18881867
fs-extra@^0.26.4:
18891868
version "0.26.7"
18901869
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.26.7.tgz#9ae1fdd94897798edab76d0918cf42d0c3184fa9"
@@ -1895,14 +1874,6 @@ fs-extra@^0.26.4:
18951874
path-is-absolute "^1.0.0"
18961875
rimraf "^2.2.8"
18971876

1898-
fs-extra@~1.0.0:
1899-
version "1.0.0"
1900-
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
1901-
dependencies:
1902-
graceful-fs "^4.1.2"
1903-
jsonfile "^2.1.0"
1904-
klaw "^1.0.0"
1905-
19061877
fs.realpath@^1.0.0:
19071878
version "1.0.0"
19081879
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -2113,13 +2084,6 @@ hash.js@^1.0.0, hash.js@^1.0.3:
21132084
inherits "^2.0.3"
21142085
minimalistic-assert "^1.0.0"
21152086

2116-
hasha@~2.2.0:
2117-
version "2.2.0"
2118-
resolved "https://registry.yarnpkg.com/hasha/-/hasha-2.2.0.tgz#78d7cbfc1e6d66303fe79837365984517b2f6ee1"
2119-
dependencies:
2120-
is-stream "^1.0.1"
2121-
pinkie-promise "^2.0.0"
2122-
21232087
hawk@~3.1.3:
21242088
version "3.1.3"
21252089
resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
@@ -2485,7 +2449,7 @@ is-primitive@^2.0.0:
24852449
version "2.0.0"
24862450
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
24872451

2488-
is-stream@^1.0.1, is-stream@^1.1.0:
2452+
is-stream@^1.1.0:
24892453
version "1.1.0"
24902454
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
24912455

@@ -2609,6 +2573,13 @@ jsprim@^1.2.2:
26092573
json-schema "0.2.3"
26102574
verror "1.10.0"
26112575

2576+
2577+
version "2.2.0"
2578+
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz#cf1b9d07136cc18fe239327d24654c3dbc368acf"
2579+
dependencies:
2580+
fs-access "^1.0.0"
2581+
which "^1.2.1"
2582+
26122583
26132584
version "1.1.0"
26142585
resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-1.1.0.tgz#22e4c06bf9a182e5294d1f705e3733811b810acf"
@@ -2621,13 +2592,6 @@ [email protected]:
26212592
log-symbols "^2.0.0"
26222593
strip-ansi "^4.0.0"
26232594

2624-
2625-
version "1.0.4"
2626-
resolved "https://registry.yarnpkg.com/karma-phantomjs-launcher/-/karma-phantomjs-launcher-1.0.4.tgz#d23ca34801bda9863ad318e3bb4bd4062b13acd2"
2627-
dependencies:
2628-
lodash "^4.0.1"
2629-
phantomjs-prebuilt "^2.1.7"
2630-
26312595
26322596
version "0.3.7"
26332597
resolved "https://registry.yarnpkg.com/karma-sourcemap-loader/-/karma-sourcemap-loader-0.3.7.tgz#91322c77f8f13d46fed062b042e1009d4c4505d8"
@@ -2676,10 +2640,6 @@ [email protected]:
26762640
tmp "0.0.31"
26772641
useragent "^2.1.12"
26782642

2679-
kew@~0.7.0:
2680-
version "0.7.0"
2681-
resolved "https://registry.yarnpkg.com/kew/-/kew-0.7.0.tgz#79d93d2d33363d6fdd2970b335d9141ad591d79b"
2682-
26832643
kind-of@^2.0.1:
26842644
version "2.0.1"
26852645
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-2.0.1.tgz#018ec7a4ce7e3a86cb9141be519d24c8faa981b5"
@@ -2807,7 +2767,7 @@ lodash@^3.8.0:
28072767
version "3.10.1"
28082768
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
28092769

2810-
lodash@^4.0.0, lodash@^4.0.1, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.5.0, lodash@~4.17.4:
2770+
lodash@^4.0.0, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.5.0, lodash@~4.17.4:
28112771
version "4.17.4"
28122772
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
28132773

@@ -3039,12 +2999,6 @@ mixin-object@^2.0.1:
30392999
for-in "^0.1.3"
30403000
is-extendable "^0.1.1"
30413001

3042-
3043-
version "0.5.0"
3044-
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.0.tgz#1d73076a6df986cd9344e15e71fcc05a4c9abf12"
3045-
dependencies:
3046-
minimist "0.0.8"
3047-
30483002
[email protected], "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:
30493003
version "0.5.1"
30503004
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
@@ -3266,6 +3220,10 @@ nth-check@~1.0.1:
32663220
dependencies:
32673221
boolbase "~1.0.0"
32683222

3223+
null-check@^1.0.0:
3224+
version "1.0.0"
3225+
resolved "https://registry.yarnpkg.com/null-check/-/null-check-1.0.0.tgz#977dffd7176012b9ec30d2a39db5cf72a0439edd"
3226+
32693227
num2fraction@^1.2.2:
32703228
version "1.2.2"
32713229
resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
@@ -3531,28 +3489,10 @@ pbkdf2@^3.0.3:
35313489
safe-buffer "^5.0.1"
35323490
sha.js "^2.4.8"
35333491

3534-
pend@~1.2.0:
3535-
version "1.2.0"
3536-
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
3537-
35383492
performance-now@^0.2.0:
35393493
version "0.2.0"
35403494
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
35413495

3542-
phantomjs-prebuilt@^2.1.7:
3543-
version "2.1.15"
3544-
resolved "https://registry.yarnpkg.com/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.15.tgz#20f86e82d3349c505917527745b7a411e08b3903"
3545-
dependencies:
3546-
es6-promise "~4.0.3"
3547-
extract-zip "~1.6.5"
3548-
fs-extra "~1.0.0"
3549-
hasha "~2.2.0"
3550-
kew "~0.7.0"
3551-
progress "~1.1.8"
3552-
request "~2.81.0"
3553-
request-progress "~2.0.1"
3554-
which "~1.2.10"
3555-
35563496
pify@^2.0.0:
35573497
version "2.3.0"
35583498
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
@@ -3856,10 +3796,6 @@ process@^0.11.0:
38563796
version "0.11.10"
38573797
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
38583798

3859-
progress@~1.1.8:
3860-
version "1.1.8"
3861-
resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
3862-
38633799
proxy-addr@~1.1.5:
38643800
version "1.1.5"
38653801
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.5.tgz#71c0ee3b102de3f202f3b64f608d173fcba1a918"
@@ -4009,7 +3945,7 @@ [email protected], readable-stream@~1.0.2:
40093945
isarray "0.0.1"
40103946
string_decoder "~0.10.x"
40113947

4012-
readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.2, readable-stream@^2.2.6, readable-stream@^2.2.9:
3948+
readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.6, readable-stream@^2.2.9:
40133949
version "2.3.3"
40143950
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c"
40153951
dependencies:
@@ -4139,13 +4075,7 @@ repeating@^2.0.0:
41394075
dependencies:
41404076
is-finite "^1.0.0"
41414077

4142-
request-progress@~2.0.1:
4143-
version "2.0.1"
4144-
resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-2.0.1.tgz#5d36bb57961c673aa5b788dbc8141fdf23b44e08"
4145-
dependencies:
4146-
throttleit "^1.0.0"
4147-
4148-
request@2, request@^2.79.0, request@^2.81.0, request@~2.81.0:
4078+
request@2, request@^2.79.0, request@^2.81.0:
41494079
version "2.81.0"
41504080
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
41514081
dependencies:
@@ -4751,10 +4681,6 @@ tar@^2.0.0, tar@^2.2.1:
47514681
fstream "^1.0.2"
47524682
inherits "2"
47534683

4754-
throttleit@^1.0.0:
4755-
version "1.0.0"
4756-
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
4757-
47584684
[email protected], through@~2.3.6:
47594685
version "2.3.8"
47604686
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
@@ -4901,10 +4827,6 @@ type-is@~1.6.15:
49014827
media-typer "0.3.0"
49024828
mime-types "~2.1.15"
49034829

4904-
typedarray@^0.0.6:
4905-
version "0.0.6"
4906-
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
4907-
49084830
49094831
version "2.4.2"
49104832
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.2.tgz#f8395f85d459276067c988aa41837a8f82870844"
@@ -5204,18 +5126,12 @@ which-module@^2.0.0:
52045126
version "2.0.0"
52055127
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
52065128

5207-
which@1, which@^1.2.9:
5129+
which@1, which@^1.2.1, which@^1.2.9:
52085130
version "1.3.0"
52095131
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
52105132
dependencies:
52115133
isexe "^2.0.0"
52125134

5213-
which@~1.2.10:
5214-
version "1.2.14"
5215-
resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"
5216-
dependencies:
5217-
isexe "^2.0.0"
5218-
52195135
wide-align@^1.1.0:
52205136
version "1.1.2"
52215137
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710"
@@ -5357,12 +5273,6 @@ yargs@~3.10.0:
53575273
decamelize "^1.0.0"
53585274
window-size "0.1.0"
53595275

5360-
5361-
version "2.4.1"
5362-
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"
5363-
dependencies:
5364-
fd-slicer "~1.0.1"
5365-
53665276
53675277
version "0.1.2"
53685278
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"

0 commit comments

Comments
 (0)