File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /rxjs /
21built /
32dist /
43vendor /
Original file line number Diff line number Diff line change @@ -32,13 +32,7 @@ Angular's `node_modules` is installed.
3232
3333## Running integration tests
3434
35- The first time you run the tests, you'll need some setup:
36-
37- ``` shell
38- $ ./integration/build_rxjs_es6.sh
39- ```
40-
41- Now you can iterate on the tests by keeping the dist folder up-to-date.
35+ You can iterate on the tests by keeping the dist folder up-to-date.
4236See the ` package.json ` of the test(s) you're debugging, to see which dist/ folders they install from.
4337Then run the right ` tsc --watch ` command to keep those dist folders up-to-date, for example:
4438
Load diff This file was deleted.
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ --compilation_level=ADVANCED_OPTIMIZATIONS
2+ --language_out=ES5
3+ --js_output_file=dist/bundle.js
4+ --output_manifest=dist/manifest.MF
5+ --variable_renaming_report=dist/variable_renaming_report
6+ --property_renaming_report=dist/property_renaming_report
7+ --create_source_map=%outname%.map
8+
9+ --warning_level=QUIET
10+ --dependency_mode=STRICT
11+ --rewrite_polyfills=false
12+
13+ node_modules/zone.js/dist/zone_externs.js
14+
15+ --js node_modules/rxjs/**.js
16+ --process_common_js_modules
17+ --module_resolution=node
18+
19+ node_modules/@angular/core/@angular/core.js
20+ --js_module_root=node_modules/@angular/core
21+ node_modules/@angular/core/src/testability/testability.externs.js
22+
23+ node_modules/@angular/common/@angular/common.js
24+ --js_module_root=node_modules/@angular/common
25+
26+ node_modules/@angular/platform-browser/@angular/platform-browser.js
27+ --js_module_root=node_modules/@angular/platform-browser
28+
29+ --js built/**.js
30+ --entry_point=built/src/main
Original file line number Diff line number Diff line change 11{
22 "open" : false ,
3- "logLevel" : " silent" ,
3+ "logLevel" : " silent" ,
44 "port" : 8080 ,
55 "server" : {
66 "baseDir" : " src" ,
77 "routes" : {
8- "/dist" : " dist"
8+ "/dist" : " dist" ,
9+ "/node_modules" : " node_modules"
910 },
1011 "middleware" : {
1112 "0" : null
1213 }
1314 }
14- }
15+ }
Original file line number Diff line number Diff line change 1111 "@angular/platform-browser" : " file:../../dist/packages-dist/platform-browser" ,
1212 "@angular/platform-server" : " file:../../dist/packages-dist/platform-server" ,
1313 "@angular/tsc-wrapped" : " file:../../dist/tools/@angular/tsc-wrapped" ,
14- "google-closure-compiler" : " 20161201 .0.0" ,
15- "rxjs" : " file:../../node_modules/rxjs " ,
14+ "google-closure-compiler" : " 20170409 .0.0" ,
15+ "rxjs" : " 5.3.1 " ,
1616 "typescript" : " 2.1.6" ,
17- "zone.js" : " 0.7 .6"
17+ "zone.js" : " 0.8 .6"
1818 },
1919 "devDependencies" : {
2020 "@types/jasmine" : " 2.5.41" ,
2323 "protractor" : " file:../../node_modules/protractor"
2424 },
2525 "scripts" : {
26- "test" : " ngc && ./bundle.sh && concurrently \" yarn run serve\" \" yarn run protractor\" --kill-others --success first" ,
26+ "closure" : " java -jar node_modules/google-closure-compiler/compiler.jar --flagfile closure.conf" ,
27+ "test" : " ngc && yarn run closure && concurrently \" yarn run serve\" \" yarn run protractor\" --kill-others --success first" ,
2728 "serve" : " lite-server -c e2e/browser.config.json" ,
2829 "preprotractor" : " tsc -p e2e" ,
2930 "protractor" : " protractor e2e/protractor.config.js"
3031 }
31- }
32+ }
Original file line number Diff line number Diff line change 11<!doctype html>
22< html >
3+
34< head >
45 < meta charset ="utf-8 ">
56 < title > Hello World</ title >
67 < base href ="/ ">
78</ head >
9+
810< body >
9- < hello-world-app > Loading...</ hello-world-app >
11+ < hello-world-app > Loading...</ hello-world-app >
1012
11- < script src ="dist/bundle.js "> </ script >
13+ < script src ="node_modules/zone.js/dist/zone.min.js "> </ script >
14+ < script src ="dist/bundle.js "> </ script >
1215
1316</ body >
14- </ html >
17+
18+ </ html >
Original file line number Diff line number Diff line change @@ -4,12 +4,6 @@ set -e -o pipefail
44
55cd ` dirname $0 `
66
7- if [ ! -d " rxjs/dist/es6" ]; then
8- echo " You must run build the ES2015 version of RxJS for some tests:"
9- echo " ./integration/build_rxjs_es6.sh"
10- exit 1
11- fi
12-
137# Workaround https://github.com/yarnpkg/yarn/issues/2165
148# Yarn will cache file://dist URIs and not update Angular code
159readonly cache=.yarn_local_cache
@@ -20,7 +14,7 @@ rm_cache
2014mkdir $cache
2115trap rm_cache EXIT
2216
23- for testDir in $( ls | grep -v rxjs | grep -v node_modules) ; do
17+ for testDir in $( ls | grep -v node_modules) ; do
2418 [[ -d " $testDir " ]] || continue
2519 echo " #################################"
2620 echo " Running integration test $testDir "
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments