From db2329ef6a2892aab4e4e62a8e27417a79937d50 Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Wed, 16 May 2018 15:30:39 -0500 Subject: [PATCH] docs(aio): Add missing dependencies and files to testing zip file download (#23948) Closes #23060 PR Close #23948 --- aio/content/examples/testing/src/tests.sb.ts | 50 +++++++++---------- .../customizer/package-json/testing.json | 1 + aio/tools/example-zipper/exampleZipper.js | 1 + aio/tools/examples/shared/package.json | 3 +- aio/tools/examples/shared/yarn.lock | 6 +++ 5 files changed, 35 insertions(+), 26 deletions(-) diff --git a/aio/content/examples/testing/src/tests.sb.ts b/aio/content/examples/testing/src/tests.sb.ts index 3f1c8fe61a..c255cca180 100644 --- a/aio/content/examples/testing/src/tests.sb.ts +++ b/aio/content/examples/testing/src/tests.sb.ts @@ -1,26 +1,26 @@ // Import spec files individually for Stackblitz -import 'app/about/about.component.spec.ts'; -import 'app/app-initial.component.spec.ts'; -import 'app/app.component.router.spec.ts'; -import 'app/app.component.spec.ts'; -import 'app/banner/banner-initial.component.spec.ts'; -import 'app/banner/banner.component.spec.ts'; -import 'app/banner/banner.component.detect-changes.spec.ts'; -import 'app/banner/banner-external.component.spec.ts'; -import 'app/dashboard/dashboard-hero.component.spec.ts'; -import 'app/dashboard/dashboard.component.no-testbed.spec.ts'; -import 'app/dashboard/dashboard.component.spec.ts'; -import 'app/demo/async-helper.spec.ts'; -import 'app/demo/demo.spec.ts'; -import 'app/demo/demo.testbed.spec.ts'; -import 'app/hero/hero-detail.component.no-testbed.spec.ts'; -import 'app/hero/hero-detail.component.spec.ts'; -import 'app/hero/hero-list.component.spec.ts'; -import 'app/model/hero.service.spec.ts'; -import 'app/model/http-hero.service.spec.ts'; -import 'app/model/testing/http-client.spec.ts'; -import 'app/shared/highlight.directive.spec.ts'; -import 'app/shared/title-case.pipe.spec.ts'; -import 'app/twain/twain.component.spec.ts'; -import 'app/twain/twain.component.marbles.spec.ts'; -import 'app/welcome/welcome.component.spec.ts'; +import './app/about/about.component.spec.ts'; +import './app/app-initial.component.spec.ts'; +import './app/app.component.router.spec.ts'; +import './app/app.component.spec.ts'; +import './app/banner/banner-initial.component.spec.ts'; +import './app/banner/banner.component.spec.ts'; +import './app/banner/banner.component.detect-changes.spec.ts'; +import './app/banner/banner-external.component.spec.ts'; +import './app/dashboard/dashboard-hero.component.spec.ts'; +import './app/dashboard/dashboard.component.no-testbed.spec.ts'; +import './app/dashboard/dashboard.component.spec.ts'; +import './app/demo/async-helper.spec.ts'; +import './app/demo/demo.spec.ts'; +import './app/demo/demo.testbed.spec.ts'; +import './app/hero/hero-detail.component.no-testbed.spec.ts'; +import './app/hero/hero-detail.component.spec.ts'; +import './app/hero/hero-list.component.spec.ts'; +import './app/model/hero.service.spec.ts'; +import './app/model/http-hero.service.spec.ts'; +import './app/model/testing/http-client.spec.ts'; +import './app/shared/highlight.directive.spec.ts'; +import './app/shared/title-case.pipe.spec.ts'; +import './app/twain/twain.component.spec.ts'; +import './app/twain/twain.component.marbles.spec.ts'; +import './app/welcome/welcome.component.spec.ts'; diff --git a/aio/tools/example-zipper/customizer/package-json/testing.json b/aio/tools/example-zipper/customizer/package-json/testing.json index 92f1609f1a..5ce4c4788f 100644 --- a/aio/tools/example-zipper/customizer/package-json/testing.json +++ b/aio/tools/example-zipper/customizer/package-json/testing.json @@ -11,6 +11,7 @@ "devDependencies": [ "@angular/cli", "@types/jasminewd2", + "jasmine-marbles", "jasmine-spec-reporter", "karma-coverage-istanbul-reporter", "ts-node" diff --git a/aio/tools/example-zipper/exampleZipper.js b/aio/tools/example-zipper/exampleZipper.js index fedcebb1ba..996f38a008 100644 --- a/aio/tools/example-zipper/exampleZipper.js +++ b/aio/tools/example-zipper/exampleZipper.js @@ -98,6 +98,7 @@ class ExampleZipper { 'src/favicon.ico', 'src/karma.conf.js', 'src/polyfills.ts', + 'src/test.ts', 'src/typings.d.ts', 'src/environments/**/*', 'src/tsconfig.*', diff --git a/aio/tools/examples/shared/package.json b/aio/tools/examples/shared/package.json index 90e2ff8e32..d3f27b9ee5 100644 --- a/aio/tools/examples/shared/package.json +++ b/aio/tools/examples/shared/package.json @@ -40,11 +40,11 @@ "zone.js": "^0.8.24" }, "devDependencies": { + "@angular-devkit/build-angular": "~0.6.0", "@angular/cli": "^6.0.0", "@angular/compiler-cli": "^6.0.0", "@angular/language-service": "^6.0.0", "@angular/platform-server": "^6.0.0", - "@angular-devkit/build-angular": "~0.6.0", "@types/angular": "^1.5.16", "@types/angular-animate": "^1.5.5", "@types/angular-cookies": "^1.4.2", @@ -66,6 +66,7 @@ "html-webpack-plugin": "^2.16.1", "http-server": "^0.9.0", "jasmine-core": "~2.99.1", + "jasmine-marbles": "^0.3.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~1.7.1", "karma-chrome-launcher": "~2.2.0", diff --git a/aio/tools/examples/shared/yarn.lock b/aio/tools/examples/shared/yarn.lock index fcde5b4085..b85cf758e4 100644 --- a/aio/tools/examples/shared/yarn.lock +++ b/aio/tools/examples/shared/yarn.lock @@ -4986,6 +4986,12 @@ jasmine-core@~2.99.1: version "2.99.1" resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.99.1.tgz#e6400df1e6b56e130b61c4bcd093daa7f6e8ca15" +jasmine-marbles@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/jasmine-marbles/-/jasmine-marbles-0.3.1.tgz#ef65edecb41b8dd62fc6bda40448222042e32043" + dependencies: + lodash "^4.5.0" + jasmine-spec-reporter@~4.2.1: version "4.2.1" resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-4.2.1.tgz#1d632aec0341670ad324f92ba84b4b32b35e9e22"