diff --git a/aio/content/examples/http/example-config.json b/aio/content/examples/http/example-config.json index 317e9458f3..e69de29bb2 100644 --- a/aio/content/examples/http/example-config.json +++ b/aio/content/examples/http/example-config.json @@ -1,3 +0,0 @@ -{ - "projectType": "testing" -} diff --git a/aio/content/examples/http/src/index-specs.html b/aio/content/examples/http/src/index-specs.html index 26286a5083..6ab86ba366 100644 --- a/aio/content/examples/http/src/index-specs.html +++ b/aio/content/examples/http/src/index-specs.html @@ -1,4 +1,11 @@ - + + + + + + App Tests + + + + + diff --git a/aio/content/examples/http/src/test.css b/aio/content/examples/http/src/test.css deleted file mode 100644 index 6010a5d9ba..0000000000 --- a/aio/content/examples/http/src/test.css +++ /dev/null @@ -1 +0,0 @@ -@import "~jasmine-core/lib/jasmine-core/jasmine.css" diff --git a/aio/content/examples/testing/example-config.json b/aio/content/examples/testing/example-config.json deleted file mode 100644 index 317e9458f3..0000000000 --- a/aio/content/examples/testing/example-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "projectType": "testing" -} diff --git a/aio/content/examples/testing/src/index-specs.html b/aio/content/examples/testing/src/index-specs.html index ca132f6cd0..6ab86ba366 100644 --- a/aio/content/examples/testing/src/index-specs.html +++ b/aio/content/examples/testing/src/index-specs.html @@ -1,4 +1,11 @@ - + + + + + + App Tests + + + + + diff --git a/aio/content/examples/testing/src/index.html b/aio/content/examples/testing/src/index.html index adc021fd82..bcbba0e48a 100644 --- a/aio/content/examples/testing/src/index.html +++ b/aio/content/examples/testing/src/index.html @@ -6,6 +6,7 @@ App Under Test + diff --git a/aio/content/examples/testing/src/test.css b/aio/content/examples/testing/src/test.css deleted file mode 100644 index 6010a5d9ba..0000000000 --- a/aio/content/examples/testing/src/test.css +++ /dev/null @@ -1 +0,0 @@ -@import "~jasmine-core/lib/jasmine-core/jasmine.css" diff --git a/aio/tools/examples/README.md b/aio/tools/examples/README.md index ac85afeafb..efcb2ddd81 100644 --- a/aio/tools/examples/README.md +++ b/aio/tools/examples/README.md @@ -32,6 +32,8 @@ Currently you will find the next boilerplates: * systemjs - Currently in deprecation, only used in a a few examples. * i18n - Based on the CLI one, features a few scripts for i18n. * universal - Based on the cli with a extra server for universal. +* elements - Based on the CLI, with a custom `tsconfig.json` for changing the `target` +* testing - Based on the CLI, with extra testing styles There is also a `common` folder that contains files used in all different examples. diff --git a/aio/tools/examples/example-boilerplate.js b/aio/tools/examples/example-boilerplate.js index 773b37aea6..22112751a7 100644 --- a/aio/tools/examples/example-boilerplate.js +++ b/aio/tools/examples/example-boilerplate.js @@ -61,11 +61,6 @@ BOILERPLATE_PATHS.i18n = [ 'package.json' ]; -BOILERPLATE_PATHS.testing = [ - ...cliRelativePath, - 'angular.json' -]; - BOILERPLATE_PATHS.universal = [ ...cliRelativePath, 'angular.json', diff --git a/aio/tools/examples/shared/boilerplate/testing/angular.json b/aio/tools/examples/shared/boilerplate/testing/angular.json deleted file mode 100644 index 976280e171..0000000000 --- a/aio/tools/examples/shared/boilerplate/testing/angular.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "projects", - "projects": { - "angular.io-example": { - "root": "", - "sourceRoot": "src", - "projectType": "application", - "prefix": "app", - "schematics": {}, - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist", - "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.app.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], - "scripts": [] - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "src/environments/environment.ts", - "with": "src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "extractCss": true, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "angular.io-example:build" - }, - "configurations": { - "production": { - "browserTarget": "angular.io-example:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "angular.io-example:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.spec.json", - "karmaConfig": "src/karma.conf.js", - "styles": [ - "src/styles.css" - ], - "scripts": [], - "assets": [ - "src/favicon.ico", - "src/assets" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "src/tsconfig.app.json", - "src/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - } - }, - "angular.io-example-e2e": { - "root": "e2e/", - "projectType": "application", - "prefix": "", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "angular.io-example:serve" - }, - "configurations": { - "production": { - "devServerTarget": "angular.io-example:serve:production" - } - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": "e2e/tsconfig.e2e.json", - "exclude": [ - "**/node_modules/**" - ] - } - } - } - } - }, - "defaultProject": "angular.io-example" -}