build(docs-infra): fix StackBlitz projects and ZIPs for testing guide examples (#31937)

- Update the `stackblitz.json` config files (used for generating
  Stackblitz projects and ZIP archives) to include the correct files
  (taking into account the current layout of the example projects).
- Update the boilerplate files for `testing` examples to match the
  current layout of the example projects.

PR Close #31937
This commit is contained in:
George Kalpakas 2019-08-01 00:12:06 +03:00 committed by Alex Rickabaugh
parent a5b12db7d6
commit 2e84f4e0cd
5 changed files with 20 additions and 23 deletions

View File

@ -1,24 +1,22 @@
{ {
"description": "Testing - specs", "description": "Testing - specs",
"files":[ "files":[
"src/expected.ts",
"src/index-specs.html",
"src/main-specs.ts",
"src/styles.css", "src/styles.css",
"src/test.css",
"src/tests.sb.ts",
"e2e/src/**/*.ts",
"src/app/**/*.css", "src/app/**/*.css",
"src/app/**/*.html", "src/app/**/*.html",
"src/app/**/*.ts", "src/app/**/*.ts",
"src/app/**/*.spec.ts",
"src/testing/*.ts", "src/testing/**/*",
"!src/main.ts", "src/**/*.spec.ts"
"!src/app/bag/*.*",
"!src/app/1st.spec.ts",
"src/expected.ts",
"src/test.css",
"src/tests.sb.ts",
"src/main-specs.ts",
"src/index-specs.html"
], ],
"main": "src/index-specs.html", "main": "src/index-specs.html",
"tags": ["testing"] "tags": ["testing"]

View File

@ -1,3 +1,3 @@
const jasmineRequire = require('jasmine-core/lib/jasmine-core/jasmine.js'); import jasmineRequire from 'jasmine-core/lib/jasmine-core/jasmine.js';
window['jasmineRequire'] = jasmineRequire; window['jasmineRequire'] = jasmineRequire;

View File

@ -1,19 +1,18 @@
{ {
"description": "Heroes Test App", "description": "Heroes Test App",
"files":[ "files":[
"src/index.html",
"src/main.ts",
"src/styles.css", "src/styles.css",
"src/test.css",
"e2e/src/**/*.ts",
"src/app/**/*.css", "src/app/**/*.css",
"src/app/**/*.html", "src/app/**/*.html",
"src/app/**/*.ts", "src/app/**/*.ts",
"!src/app/bag/*.*", "!src/**/*.spec.ts"
"!src/test.ts",
"src/test.css",
"src/main.ts",
"src/index.html"
], ],
"tags": ["testing"] "tags": ["testing"]
} }

View File

@ -1,5 +1,5 @@
{ {
"extends": "../tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/app", "outDir": "../out-tsc/app",
"types": [] "types": []

View File

@ -1,5 +1,5 @@
{ {
"extends": "../tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/spec", "outDir": "../out-tsc/spec",
"types": [ "types": [
@ -8,8 +8,8 @@
] ]
}, },
"files": [ "files": [
"test.ts", "src/test.ts",
"polyfills.ts" "src/polyfills.ts"
], ],
"include": [ "include": [
"src/**/*.spec.ts", "src/**/*.spec.ts",