From 863dbeeb7c768a5392059bddba162645d2114b97 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 7 Feb 2019 14:02:54 +0000 Subject: [PATCH] docs: remove quickstart example and copy tsconfig.1.json into TS config guide (#28592) This example has long been replaced by the cli-quickstart, but was never deleted. PR Close #28592 --- .../examples/quickstart/bs-config.1.json | 8 ----- aio/content/examples/quickstart/e2e-spec.ts | 17 ---------- .../examples/quickstart/example-config.json | 0 .../quickstart/src/app/app.component.ts | 8 ----- .../examples/quickstart/src/app/app.module.ts | 11 ------- .../examples/quickstart/src/index.html | 31 ------------------- aio/content/examples/quickstart/src/main.ts | 5 --- .../examples/quickstart/src/tsconfig.1.json | 13 -------- .../examples/quickstart/stackblitz.json | 11 ------- aio/content/guide/typescript-configuration.md | 16 +++++++++- 10 files changed, 15 insertions(+), 105 deletions(-) delete mode 100644 aio/content/examples/quickstart/bs-config.1.json delete mode 100644 aio/content/examples/quickstart/e2e-spec.ts delete mode 100644 aio/content/examples/quickstart/example-config.json delete mode 100644 aio/content/examples/quickstart/src/app/app.component.ts delete mode 100644 aio/content/examples/quickstart/src/app/app.module.ts delete mode 100644 aio/content/examples/quickstart/src/index.html delete mode 100644 aio/content/examples/quickstart/src/main.ts delete mode 100644 aio/content/examples/quickstart/src/tsconfig.1.json delete mode 100644 aio/content/examples/quickstart/stackblitz.json diff --git a/aio/content/examples/quickstart/bs-config.1.json b/aio/content/examples/quickstart/bs-config.1.json deleted file mode 100644 index 4e58595267..0000000000 --- a/aio/content/examples/quickstart/bs-config.1.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "server": { - "baseDir": "src", - "routes": { - "/node_modules": "node_modules" - } - } -} diff --git a/aio/content/examples/quickstart/e2e-spec.ts b/aio/content/examples/quickstart/e2e-spec.ts deleted file mode 100644 index 73921707ee..0000000000 --- a/aio/content/examples/quickstart/e2e-spec.ts +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; // necessary for es6 output in node - -import { browser, element, by } from 'protractor'; - -describe('QuickStart E2E Tests', function () { - - let expectedMsg = 'Hello Angular'; - - beforeEach(function () { - browser.get(''); - }); - - it(`should display: ${expectedMsg}`, function () { - expect(element(by.css('h1')).getText()).toEqual(expectedMsg); - }); - -}); diff --git a/aio/content/examples/quickstart/example-config.json b/aio/content/examples/quickstart/example-config.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/aio/content/examples/quickstart/src/app/app.component.ts b/aio/content/examples/quickstart/src/app/app.component.ts deleted file mode 100644 index 1ef28fc5c4..0000000000 --- a/aio/content/examples/quickstart/src/app/app.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -// #docregion -import { Component } from '@angular/core'; - -@Component({ - selector: 'my-app', - template: `

Hello {{name}}

` -}) -export class AppComponent { name = 'Angular'; } diff --git a/aio/content/examples/quickstart/src/app/app.module.ts b/aio/content/examples/quickstart/src/app/app.module.ts deleted file mode 100644 index 50a0e6eb47..0000000000 --- a/aio/content/examples/quickstart/src/app/app.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -// #docregion -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; -import { AppComponent } from './app.component'; - -@NgModule({ - imports: [ BrowserModule ], - declarations: [ AppComponent ], - bootstrap: [ AppComponent ] -}) -export class AppModule { } diff --git a/aio/content/examples/quickstart/src/index.html b/aio/content/examples/quickstart/src/index.html deleted file mode 100644 index 21fb56edb9..0000000000 --- a/aio/content/examples/quickstart/src/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - Angular Quickstart - - - - - - - - - - - - - - - - - - - Loading AppComponent content here ... - - - - diff --git a/aio/content/examples/quickstart/src/main.ts b/aio/content/examples/quickstart/src/main.ts deleted file mode 100644 index 311c44b76d..0000000000 --- a/aio/content/examples/quickstart/src/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; - -platformBrowserDynamic().bootstrapModule(AppModule); diff --git a/aio/content/examples/quickstart/src/tsconfig.1.json b/aio/content/examples/quickstart/src/tsconfig.1.json deleted file mode 100644 index 2c7260d1bc..0000000000 --- a/aio/content/examples/quickstart/src/tsconfig.1.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "moduleResolution": "node", - "sourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "lib": [ "es2015", "dom" ], - "noImplicitAny": true, - "suppressImplicitAnyIndexErrors": true - } -} diff --git a/aio/content/examples/quickstart/stackblitz.json b/aio/content/examples/quickstart/stackblitz.json deleted file mode 100644 index fd606e2ab9..0000000000 --- a/aio/content/examples/quickstart/stackblitz.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "description": "QuickStart", - "files": [ - "src/app/app.component.ts", - "src/app/app.module.ts", - "src/main.ts", - "src/index.html" - ], - "file": "src/app/app.component.ts", - "tags": ["quickstart"] -} diff --git a/aio/content/guide/typescript-configuration.md b/aio/content/guide/typescript-configuration.md index 66f9ec0040..1cfb5fcc72 100644 --- a/aio/content/guide/typescript-configuration.md +++ b/aio/content/guide/typescript-configuration.md @@ -34,7 +34,21 @@ For details about `tsconfig.json`, see the official The [Setup](guide/setup) guide uses the following `tsconfig.json`: - + + { + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "lib": [ "es2015", "dom" ], + "noImplicitAny": true, + "suppressImplicitAnyIndexErrors": true + } + } + This file contains options and flags that are essential for Angular applications.