From fd711e51d7ddf6dab8958c6bdca9373cefce5a4e Mon Sep 17 00:00:00 2001 From: mgechev Date: Thu, 27 Aug 2020 18:49:41 +0300 Subject: [PATCH] feat(devtools): add demo app which does not use zones --- angular.json | 100 ++++++++++++++++++ projects/demo-no-zone/browserslist | 12 +++ projects/demo-no-zone/e2e/protractor.conf.js | 30 ++++++ projects/demo-no-zone/e2e/src/app.e2e-spec.ts | 25 +++++ projects/demo-no-zone/e2e/src/app.po.ts | 11 ++ projects/demo-no-zone/e2e/tsconfig.json | 9 ++ projects/demo-no-zone/karma.conf.js | 32 ++++++ .../demo-no-zone/src/app/app.component.css | 0 .../demo-no-zone/src/app/app.component.html | 3 + .../src/app/app.component.spec.ts | 29 +++++ .../demo-no-zone/src/app/app.component.ts | 17 +++ projects/demo-no-zone/src/app/app.module.ts | 12 +++ projects/demo-no-zone/src/assets/.gitkeep | 0 .../src/environments/environment.prod.ts | 3 + .../src/environments/environment.ts | 16 +++ projects/demo-no-zone/src/favicon.ico | Bin 0 -> 5430 bytes projects/demo-no-zone/src/index.html | 14 +++ projects/demo-no-zone/src/main.ts | 15 +++ projects/demo-no-zone/src/polyfills.ts | 62 +++++++++++ projects/demo-no-zone/src/styles.css | 1 + projects/demo-no-zone/src/test.ts | 14 +++ projects/demo-no-zone/tsconfig.app.json | 9 ++ projects/demo-no-zone/tsconfig.spec.json | 9 ++ projects/demo-no-zone/tslint.json | 7 ++ 24 files changed, 430 insertions(+) create mode 100644 projects/demo-no-zone/browserslist create mode 100644 projects/demo-no-zone/e2e/protractor.conf.js create mode 100644 projects/demo-no-zone/e2e/src/app.e2e-spec.ts create mode 100644 projects/demo-no-zone/e2e/src/app.po.ts create mode 100644 projects/demo-no-zone/e2e/tsconfig.json create mode 100644 projects/demo-no-zone/karma.conf.js create mode 100644 projects/demo-no-zone/src/app/app.component.css create mode 100644 projects/demo-no-zone/src/app/app.component.html create mode 100644 projects/demo-no-zone/src/app/app.component.spec.ts create mode 100644 projects/demo-no-zone/src/app/app.component.ts create mode 100644 projects/demo-no-zone/src/app/app.module.ts create mode 100644 projects/demo-no-zone/src/assets/.gitkeep create mode 100644 projects/demo-no-zone/src/environments/environment.prod.ts create mode 100644 projects/demo-no-zone/src/environments/environment.ts create mode 100644 projects/demo-no-zone/src/favicon.ico create mode 100644 projects/demo-no-zone/src/index.html create mode 100644 projects/demo-no-zone/src/main.ts create mode 100644 projects/demo-no-zone/src/polyfills.ts create mode 100644 projects/demo-no-zone/src/styles.css create mode 100644 projects/demo-no-zone/src/test.ts create mode 100644 projects/demo-no-zone/tsconfig.app.json create mode 100644 projects/demo-no-zone/tsconfig.spec.json create mode 100644 projects/demo-no-zone/tslint.json diff --git a/angular.json b/angular.json index 659e79ee776..847ae25acfc 100644 --- a/angular.json +++ b/angular.json @@ -359,6 +359,106 @@ } } } + }, + "demo-no-zone": { + "projectType": "application", + "schematics": {}, + "root": "projects/demo-no-zone", + "sourceRoot": "projects/demo-no-zone/src", + "prefix": "app", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/demo-no-zone", + "index": "projects/demo-no-zone/src/index.html", + "main": "projects/demo-no-zone/src/main.ts", + "polyfills": "projects/demo-no-zone/src/polyfills.ts", + "tsConfig": "projects/demo-no-zone/tsconfig.app.json", + "assets": ["projects/demo-no-zone/src/favicon.ico", "projects/demo-no-zone/src/assets"], + "styles": ["projects/demo-no-zone/src/styles.css"], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "projects/demo-no-zone/src/environments/environment.ts", + "with": "projects/demo-no-zone/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "extractCss": true, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + } + ] + } + } + }, + "serve": { + "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "demo-no-zone:build" + }, + "configurations": { + "production": { + "browserTarget": "demo-no-zone:build:production" + } + } + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "demo-no-zone:build" + } + }, + "test": { + "builder": "@angular-devkit/build-angular:karma", + "options": { + "main": "projects/demo-no-zone/src/test.ts", + "polyfills": "projects/demo-no-zone/src/polyfills.ts", + "tsConfig": "projects/demo-no-zone/tsconfig.spec.json", + "karmaConfig": "projects/demo-no-zone/karma.conf.js", + "assets": ["projects/demo-no-zone/src/favicon.ico", "projects/demo-no-zone/src/assets"], + "styles": ["projects/demo-no-zone/src/styles.css"], + "scripts": [] + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "projects/demo-no-zone/tsconfig.app.json", + "projects/demo-no-zone/tsconfig.spec.json", + "projects/demo-no-zone/e2e/tsconfig.json" + ], + "exclude": ["**/node_modules/**"] + } + }, + "e2e": { + "builder": "@angular-devkit/build-angular:protractor", + "options": { + "protractorConfig": "projects/demo-no-zone/e2e/protractor.conf.js", + "devServerTarget": "demo-no-zone:serve" + }, + "configurations": { + "production": { + "devServerTarget": "demo-no-zone:serve:production" + } + } + } + } } }, "defaultProject": "shell-dev", diff --git a/projects/demo-no-zone/browserslist b/projects/demo-no-zone/browserslist new file mode 100644 index 00000000000..80848532e47 --- /dev/null +++ b/projects/demo-no-zone/browserslist @@ -0,0 +1,12 @@ +# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries + +# You can see what browsers were selected by your queries by running: +# npx browserslist + +> 0.5% +last 2 versions +Firefox ESR +not dead +not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/projects/demo-no-zone/e2e/protractor.conf.js b/projects/demo-no-zone/e2e/protractor.conf.js new file mode 100644 index 00000000000..504db95d671 --- /dev/null +++ b/projects/demo-no-zone/e2e/protractor.conf.js @@ -0,0 +1,30 @@ +// @ts-check +// Protractor configuration file, see link for more information +// https://github.com/angular/protractor/blob/master/lib/config.ts + +const { SpecReporter } = require('jasmine-spec-reporter'); + +/** + * @type { import("protractor").Config } + */ +exports.config = { + allScriptsTimeout: 11000, + specs: ['./src/**/*.e2e-spec.ts'], + capabilities: { + browserName: 'chrome', + }, + directConnect: true, + baseUrl: 'http://localhost:4200/', + framework: 'jasmine', + jasmineNodeOpts: { + showColors: true, + defaultTimeoutInterval: 30000, + print: function () {}, + }, + onPrepare() { + require('ts-node').register({ + project: require('path').join(__dirname, './tsconfig.json'), + }); + jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); + }, +}; diff --git a/projects/demo-no-zone/e2e/src/app.e2e-spec.ts b/projects/demo-no-zone/e2e/src/app.e2e-spec.ts new file mode 100644 index 00000000000..42fc5a6a52e --- /dev/null +++ b/projects/demo-no-zone/e2e/src/app.e2e-spec.ts @@ -0,0 +1,25 @@ +import { AppPage } from './app.po'; +import { browser, logging } from 'protractor'; + +describe('workspace-project App', () => { + let page: AppPage; + + beforeEach(() => { + page = new AppPage(); + }); + + it('should display welcome message', () => { + page.navigateTo(); + expect(page.getTitleText()).toEqual('Welcome to demo-no-zone!'); + }); + + afterEach(async () => { + // Assert that there are no errors emitted from the browser + const logs = await browser.manage().logs().get(logging.Type.BROWSER); + expect(logs).not.toContain( + jasmine.objectContaining({ + level: logging.Level.SEVERE, + } as logging.Entry) + ); + }); +}); diff --git a/projects/demo-no-zone/e2e/src/app.po.ts b/projects/demo-no-zone/e2e/src/app.po.ts new file mode 100644 index 00000000000..6a185bf10bb --- /dev/null +++ b/projects/demo-no-zone/e2e/src/app.po.ts @@ -0,0 +1,11 @@ +import { browser, by, element } from 'protractor'; + +export class AppPage { + navigateTo(): Promise { + return browser.get(browser.baseUrl) as Promise; + } + + getTitleText(): Promise { + return element(by.css('app-root h1')).getText() as Promise; + } +} diff --git a/projects/demo-no-zone/e2e/tsconfig.json b/projects/demo-no-zone/e2e/tsconfig.json new file mode 100644 index 00000000000..201351434ec --- /dev/null +++ b/projects/demo-no-zone/e2e/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "../../../out-tsc/e2e", + "module": "commonjs", + "target": "es5", + "types": ["jasmine", "jasminewd2", "node"] + } +} diff --git a/projects/demo-no-zone/karma.conf.js b/projects/demo-no-zone/karma.conf.js new file mode 100644 index 00000000000..f13998b282d --- /dev/null +++ b/projects/demo-no-zone/karma.conf.js @@ -0,0 +1,32 @@ +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html + +module.exports = function (config) { + config.set({ + basePath: '', + frameworks: ['jasmine', '@angular-devkit/build-angular'], + plugins: [ + require('karma-jasmine'), + require('karma-chrome-launcher'), + require('karma-jasmine-html-reporter'), + require('karma-coverage-istanbul-reporter'), + require('@angular-devkit/build-angular/plugins/karma'), + ], + client: { + clearContext: false, // leave Jasmine Spec Runner output visible in browser + }, + coverageIstanbulReporter: { + dir: require('path').join(__dirname, '../../coverage/demo-no-zone'), + reports: ['html', 'lcovonly', 'text-summary'], + fixWebpackSourcePaths: true, + }, + reporters: ['progress', 'kjhtml'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: true, + browsers: ['Chrome'], + singleRun: false, + restartOnFileChange: true, + }); +}; diff --git a/projects/demo-no-zone/src/app/app.component.css b/projects/demo-no-zone/src/app/app.component.css new file mode 100644 index 00000000000..e69de29bb2d diff --git a/projects/demo-no-zone/src/app/app.component.html b/projects/demo-no-zone/src/app/app.component.html new file mode 100644 index 00000000000..9549029e592 --- /dev/null +++ b/projects/demo-no-zone/src/app/app.component.html @@ -0,0 +1,3 @@ +

{{ counter }}

+ + diff --git a/projects/demo-no-zone/src/app/app.component.spec.ts b/projects/demo-no-zone/src/app/app.component.spec.ts new file mode 100644 index 00000000000..939d54bfb97 --- /dev/null +++ b/projects/demo-no-zone/src/app/app.component.spec.ts @@ -0,0 +1,29 @@ +import { TestBed, async } from '@angular/core/testing'; +import { AppComponent } from './app.component'; + +describe('AppComponent', () => { + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [AppComponent], + }).compileComponents(); + })); + + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + }); + + it(`should have as title 'demo-no-zone'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app.title).toEqual('demo-no-zone'); + }); + + it('should render title in a h1 tag', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.debugElement.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain('Welcome to demo-no-zone!'); + }); +}); diff --git a/projects/demo-no-zone/src/app/app.component.ts b/projects/demo-no-zone/src/app/app.component.ts new file mode 100644 index 00000000000..9583df4c875 --- /dev/null +++ b/projects/demo-no-zone/src/app/app.component.ts @@ -0,0 +1,17 @@ +import { Component, ChangeDetectorRef } from '@angular/core'; + +@Component({ + selector: 'app-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.css'], +}) +export class AppComponent { + counter = 0; + + constructor(private _cd: ChangeDetectorRef) {} + + increment(): void { + this.counter++; + this._cd.detectChanges(); + } +} diff --git a/projects/demo-no-zone/src/app/app.module.ts b/projects/demo-no-zone/src/app/app.module.ts new file mode 100644 index 00000000000..5ce7811a4c0 --- /dev/null +++ b/projects/demo-no-zone/src/app/app.module.ts @@ -0,0 +1,12 @@ +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; + +import { AppComponent } from './app.component'; + +@NgModule({ + declarations: [AppComponent], + imports: [BrowserModule], + providers: [], + bootstrap: [AppComponent], +}) +export class AppModule {} diff --git a/projects/demo-no-zone/src/assets/.gitkeep b/projects/demo-no-zone/src/assets/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/projects/demo-no-zone/src/environments/environment.prod.ts b/projects/demo-no-zone/src/environments/environment.prod.ts new file mode 100644 index 00000000000..c9669790be1 --- /dev/null +++ b/projects/demo-no-zone/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true, +}; diff --git a/projects/demo-no-zone/src/environments/environment.ts b/projects/demo-no-zone/src/environments/environment.ts new file mode 100644 index 00000000000..99c3763cad6 --- /dev/null +++ b/projects/demo-no-zone/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false, +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/projects/demo-no-zone/src/favicon.ico b/projects/demo-no-zone/src/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..8081c7ceaf2be08bf59010158c586170d9d2d517 GIT binary patch literal 5430 zcmc(je{54#6vvCoAI3i*G5%$U7!sA3wtMZ$fH6V9C`=eXGJb@R1%(I_{vnZtpD{6n z5Pl{DmxzBDbrB>}`90e12m8T*36WoeDLA&SD_hw{H^wM!cl_RWcVA!I+x87ee975; z@4kD^=bYPn&pmG@(+JZ`rqQEKxW<}RzhW}I!|ulN=fmjVi@x{p$cC`)5$a!)X&U+blKNvN5tg=uLvuLnuqRM;Yc*swiexsoh#XPNu{9F#c`G zQLe{yWA(Y6(;>y|-efAy11k<09(@Oo1B2@0`PtZSkqK&${ zgEY}`W@t{%?9u5rF?}Y7OL{338l*JY#P!%MVQY@oqnItpZ}?s z!r?*kwuR{A@jg2Chlf0^{q*>8n5Ir~YWf*wmsh7B5&EpHfd5@xVaj&gqsdui^spyL zB|kUoblGoO7G(MuKTfa9?pGH0@QP^b#!lM1yHWLh*2iq#`C1TdrnO-d#?Oh@XV2HK zKA{`eo{--^K&MW66Lgsktfvn#cCAc*(}qsfhrvOjMGLE?`dHVipu1J3Kgr%g?cNa8 z)pkmC8DGH~fG+dlrp(5^-QBeEvkOvv#q7MBVLtm2oD^$lJZx--_=K&Ttd=-krx(Bb zcEoKJda@S!%%@`P-##$>*u%T*mh+QjV@)Qa=Mk1?#zLk+M4tIt%}wagT{5J%!tXAE;r{@=bb%nNVxvI+C+$t?!VJ@0d@HIyMJTI{vEw0Ul ze(ha!e&qANbTL1ZneNl45t=#Ot??C0MHjjgY8%*mGisN|S6%g3;Hlx#fMNcL<87MW zZ>6moo1YD?P!fJ#Jb(4)_cc50X5n0KoDYfdPoL^iV`k&o{LPyaoqMqk92wVM#_O0l z09$(A-D+gVIlq4TA&{1T@BsUH`Bm=r#l$Z51J-U&F32+hfUP-iLo=jg7Xmy+WLq6_tWv&`wDlz#`&)Jp~iQf zZP)tu>}pIIJKuw+$&t}GQuqMd%Z>0?t%&BM&Wo^4P^Y z)c6h^f2R>X8*}q|bblAF?@;%?2>$y+cMQbN{X$)^R>vtNq_5AB|0N5U*d^T?X9{xQnJYeU{ zoZL#obI;~Pp95f1`%X3D$Mh*4^?O?IT~7HqlWguezmg?Ybq|7>qQ(@pPHbE9V?f|( z+0xo!#m@Np9PljsyxBY-UA*{U*la#8Wz2sO|48_-5t8%_!n?S$zlGe+NA%?vmxjS- zHE5O3ZarU=X}$7>;Okp(UWXJxI%G_J-@IH;%5#Rt$(WUX?6*Ux!IRd$dLP6+SmPn= z8zjm4jGjN772R{FGkXwcNv8GBcZI#@Y2m{RNF_w8(Z%^A*!bS*!}s6sh*NnURytky humW;*g7R+&|Ledvc- + + + + DemoNoZone + + + + + + + + + diff --git a/projects/demo-no-zone/src/main.ts b/projects/demo-no-zone/src/main.ts new file mode 100644 index 00000000000..63e7f507acb --- /dev/null +++ b/projects/demo-no-zone/src/main.ts @@ -0,0 +1,15 @@ +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; +import { environment } from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} + +platformBrowserDynamic() + .bootstrapModule(AppModule, { + ngZone: 'noop', + }) + .catch((err) => console.error(err)); diff --git a/projects/demo-no-zone/src/polyfills.ts b/projects/demo-no-zone/src/polyfills.ts new file mode 100644 index 00000000000..cc0bcbbe60c --- /dev/null +++ b/projects/demo-no-zone/src/polyfills.ts @@ -0,0 +1,62 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** + * BROWSER POLYFILLS + */ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +// import 'classlist.js'; // Run `npm install --save classlist.js`. + +/** + * Web Animations `@angular/platform-browser/animations` + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). + */ +// import 'web-animations-js'; // Run `npm install --save web-animations-js`. + +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags.ts'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * + */ + +/*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ +// import 'zone.js/dist/zone'; // Included with Angular CLI. + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ diff --git a/projects/demo-no-zone/src/styles.css b/projects/demo-no-zone/src/styles.css new file mode 100644 index 00000000000..90d4ee0072c --- /dev/null +++ b/projects/demo-no-zone/src/styles.css @@ -0,0 +1 @@ +/* You can add global styles to this file, and also import other style files */ diff --git a/projects/demo-no-zone/src/test.ts b/projects/demo-no-zone/src/test.ts new file mode 100644 index 00000000000..da9049dc632 --- /dev/null +++ b/projects/demo-no-zone/src/test.ts @@ -0,0 +1,14 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'zone.js/dist/zone-testing'; +import { getTestBed } from '@angular/core/testing'; +import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context); diff --git a/projects/demo-no-zone/tsconfig.app.json b/projects/demo-no-zone/tsconfig.app.json new file mode 100644 index 00000000000..f10ee2ef1b6 --- /dev/null +++ b/projects/demo-no-zone/tsconfig.app.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "../../out-tsc/app", + "types": [] + }, + "include": ["src/**/*.ts"], + "exclude": ["src/test.ts", "src/**/*.spec.ts"] +} diff --git a/projects/demo-no-zone/tsconfig.spec.json b/projects/demo-no-zone/tsconfig.spec.json new file mode 100644 index 00000000000..8eec07d40ad --- /dev/null +++ b/projects/demo-no-zone/tsconfig.spec.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "../../out-tsc/spec", + "types": ["jasmine", "node"] + }, + "files": ["src/test.ts", "src/polyfills.ts"], + "include": ["src/**/*.spec.ts", "src/**/*.d.ts"] +} diff --git a/projects/demo-no-zone/tslint.json b/projects/demo-no-zone/tslint.json new file mode 100644 index 00000000000..8006e74e961 --- /dev/null +++ b/projects/demo-no-zone/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tslint.json", + "rules": { + "directive-selector": [true, "attribute", "app", "camelCase"], + "component-selector": [true, "element", "app", "kebab-case"] + } +}