Skip to content

Commit c07adf8

Browse files
committed
Merging with latest
2 parents 86d0515 + 5634da4 commit c07adf8

File tree

10 files changed

+89
-265
lines changed

10 files changed

+89
-265
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
node_modules
22
build
33
dist
4-
typings
4+
tmp
55
.idea
66
*.ngfactory.ts
7-
*.css.shim.ts
87
.DS_Store

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"description": "Angular 2 AOT (Ahead Of Time) offline compilation example with Webpack",
55
"main": "build/modules/main.module.js",
66
"scripts": {
7+
"cleanup": "rimraf src/app/**/*.ngfactory.ts src/app/**/*.shim.ts",
78
"explorer": "source-map-explorer ./dist/bootstrap.bundle.js ./dist/bootstrap.bundle.js.map",
89
"explorer-aot": "source-map-explorer ./dist/bootstrap.aot.bundle.js ./dist/bootstrap.aot.bundle.js.map",
910
"ngc": "ngc -p ./tsconfig.aot.json",
1011
"serve": "http-server ./dist -a 0.0.0.0 -p 9000",
11-
"start": "npm run ngc && concurrently -r \"webpack-dev-server\" \"node ./bin/ngc-watch.js\"",
12-
"start-plugin": "webpack-dev-server --config webpack.aot.config.js",
12+
"start": "npm run cleanup && npm run ngc && concurrently -r \"webpack-dev-server\" \"node ./bin/ngc-watch.js\"",
13+
"start-plugin": "npm run cleanup && webpack-dev-server --config webpack.aot.config.js",
1314
"start-prod": "npm run ngc && npm run webpack-prod && npm run serve",
1415
"build": "npm run ngc && npm run webpack-prod",
1516
"deploy": "gh-pages -d dist",
@@ -45,7 +46,6 @@
4546
"@angular/compiler-cli": "2.2.4",
4647
"@angular/platform-server": "2.2.4",
4748
"@ngtools/webpack": "1.1.7",
48-
"@types/core-js": "0.9.34",
4949
"@types/node": "6.0.48",
5050
"angular2-template-loader": "0.6.0",
5151
"awesome-typescript-loader": "2.2.4",
@@ -57,6 +57,7 @@
5757
"gh-pages": "0.12.0",
5858
"http-server": "0.9.0",
5959
"raw-loader": "0.5.1",
60+
"rimraf": "2.5.4",
6061
"source-map-explorer": "1.3.3",
6162
"style-loader": "0.13.1",
6263
"to-string-loader": "1.1.5",

src/app/components/hello-world.component.ngfactory.ts

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77

88
import * as import0 from './hello-world.component';
99
import * as import1 from '@angular/core/src/linker/view';
10-
import * as import2 from '@angular/core/src/linker/debug_context';
11-
import * as import3 from '@angular/core/src/render/api';
12-
import * as import4 from '@angular/core/src/linker/view_utils';
13-
import * as import5 from '@angular/core/src/metadata/view';
14-
import * as import6 from '@angular/core/src/linker/view_type';
15-
import * as import7 from '@angular/core/src/change_detection/change_detection';
16-
import * as import8 from '@angular/core/src/linker/component_factory';
17-
import * as import9 from './hello-world.style.css.shim';
10+
import * as import2 from '@angular/core/src/render/api';
11+
import * as import3 from '@angular/core/src/linker/view_utils';
12+
import * as import4 from '@angular/core/src/metadata/view';
13+
import * as import5 from '@angular/core/src/linker/view_type';
14+
import * as import6 from '@angular/core/src/change_detection/change_detection';
15+
import * as import7 from '@angular/core/src/linker/component_factory';
16+
import * as import8 from './hello-world.style.css.shim';
1817
export class Wrapper_HelloWorldComponent {
1918
/*private*/ _eventHandler:Function;
2019
context:import0.HelloWorldComponent;
@@ -42,29 +41,27 @@ export class Wrapper_HelloWorldComponent {
4241
this._eventHandler = _eventHandler;
4342
}
4443
}
45-
const nodeDebugInfos_HelloWorldComponent_Host0:import2.StaticNodeDebugInfo[] = [new import2.StaticNodeDebugInfo([import0.HelloWorldComponent],import0.HelloWorldComponent,{})];
46-
var renderType_HelloWorldComponent_Host:import3.RenderComponentType = import4.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{});
47-
class View_HelloWorldComponent_Host0 extends import1.DebugAppView<any> {
44+
var renderType_HelloWorldComponent_Host:import2.RenderComponentType = import3.createRenderComponentType('',0,import4.ViewEncapsulation.None,([] as any[]),{});
45+
class View_HelloWorldComponent_Host0 extends import1.AppView<any> {
4846
_el_0:any;
4947
compView_0:import1.AppView<import0.HelloWorldComponent>;
5048
_HelloWorldComponent_0_3:Wrapper_HelloWorldComponent;
51-
constructor(viewUtils:import4.ViewUtils,parentView:import1.AppView<any>,parentIndex:number,parentElement:any) {
52-
super(View_HelloWorldComponent_Host0,renderType_HelloWorldComponent_Host,import6.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,nodeDebugInfos_HelloWorldComponent_Host0);
49+
constructor(viewUtils:import3.ViewUtils,parentView:import1.AppView<any>,parentIndex:number,parentElement:any) {
50+
super(View_HelloWorldComponent_Host0,renderType_HelloWorldComponent_Host,import5.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import6.ChangeDetectorStatus.CheckAlways);
5351
}
54-
createInternal(rootSelector:string):import8.ComponentRef<any> {
55-
this._el_0 = import4.selectOrCreateRenderHostElement(this.renderer,'hello-world-app',import4.EMPTY_INLINE_ARRAY,rootSelector,this.debug(0,0,0));
52+
createInternal(rootSelector:string):import7.ComponentRef<any> {
53+
this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'hello-world-app',import3.EMPTY_INLINE_ARRAY,rootSelector,(null as any));
5654
this.compView_0 = new View_HelloWorldComponent0(this.viewUtils,this,0,this._el_0);
5755
this._HelloWorldComponent_0_3 = new Wrapper_HelloWorldComponent();
5856
this.compView_0.create(this._HelloWorldComponent_0_3.context);
5957
this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [this._el_0]),(null as any));
60-
return new import8.ComponentRef_<any>(0,this,this._el_0,this._HelloWorldComponent_0_3.context);
58+
return new import7.ComponentRef_<any>(0,this,this._el_0,this._HelloWorldComponent_0_3.context);
6159
}
6260
injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
6361
if (((token === import0.HelloWorldComponent) && (0 === requestNodeIndex))) { return this._HelloWorldComponent_0_3.context; }
6462
return notFoundResult;
6563
}
6664
detectChangesInternal(throwOnChange:boolean):void {
67-
this.debug(0,0,0);
6865
this._HelloWorldComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange);
6966
this.compView_0.detectChanges(throwOnChange);
7067
}
@@ -75,27 +72,21 @@ class View_HelloWorldComponent_Host0 extends import1.DebugAppView<any> {
7572
cb(this._el_0,ctx);
7673
}
7774
}
78-
export const HelloWorldComponentNgFactory:import8.ComponentFactory<import0.HelloWorldComponent> = new import8.ComponentFactory<import0.HelloWorldComponent>('hello-world-app',View_HelloWorldComponent_Host0,import0.HelloWorldComponent);
79-
const styles_HelloWorldComponent:any[] = [import9.styles];
80-
const nodeDebugInfos_HelloWorldComponent0:import2.StaticNodeDebugInfo[] = [
81-
new import2.StaticNodeDebugInfo(([] as any[]),(null as any),{}),
82-
new import2.StaticNodeDebugInfo(([] as any[]),(null as any),{}),
83-
new import2.StaticNodeDebugInfo(([] as any[]),(null as any),{})
84-
]
85-
;
86-
var renderType_HelloWorldComponent:import3.RenderComponentType = import4.createRenderComponentType('/Users/isaac/Documents/Contributions/angular2-aot-webpack/src/app/components/hello-world.template.html',0,import5.ViewEncapsulation.Emulated,styles_HelloWorldComponent,{});
87-
export class View_HelloWorldComponent0 extends import1.DebugAppView<import0.HelloWorldComponent> {
75+
export const HelloWorldComponentNgFactory:import7.ComponentFactory<import0.HelloWorldComponent> = new import7.ComponentFactory<import0.HelloWorldComponent>('hello-world-app',View_HelloWorldComponent_Host0,import0.HelloWorldComponent);
76+
const styles_HelloWorldComponent:any[] = [import8.styles];
77+
var renderType_HelloWorldComponent:import2.RenderComponentType = import3.createRenderComponentType('',0,import4.ViewEncapsulation.Emulated,styles_HelloWorldComponent,{});
78+
export class View_HelloWorldComponent0 extends import1.AppView<import0.HelloWorldComponent> {
8879
_el_0:any;
8980
_text_1:any;
9081
_text_2:any;
91-
constructor(viewUtils:import4.ViewUtils,parentView:import1.AppView<any>,parentIndex:number,parentElement:any) {
92-
super(View_HelloWorldComponent0,renderType_HelloWorldComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways,nodeDebugInfos_HelloWorldComponent0);
82+
constructor(viewUtils:import3.ViewUtils,parentView:import1.AppView<any>,parentIndex:number,parentElement:any) {
83+
super(View_HelloWorldComponent0,renderType_HelloWorldComponent,import5.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import6.ChangeDetectorStatus.CheckAlways);
9384
}
94-
createInternal(rootSelector:string):import8.ComponentRef<any> {
85+
createInternal(rootSelector:string):import7.ComponentRef<any> {
9586
const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement);
96-
this._el_0 = import4.createRenderElement(this.renderer,parentRenderNode,'h1',import4.EMPTY_INLINE_ARRAY,this.debug(0,0,0));
97-
this._text_1 = this.renderer.createText(this._el_0,'Hello World!',this.debug(1,0,4));
98-
this._text_2 = this.renderer.createText(parentRenderNode,'\n',this.debug(2,0,21));
87+
this._el_0 = import3.createRenderElement(this.renderer,parentRenderNode,'h1',import3.EMPTY_INLINE_ARRAY,(null as any));
88+
this._text_1 = this.renderer.createText(this._el_0,'Hello World!',(null as any));
89+
this._text_2 = this.renderer.createText(parentRenderNode,'\n',(null as any));
9990
this.init((null as any),((<any>this.renderer).directRenderer? (null as any): [
10091
this._el_0,
10192
this._text_1,

0 commit comments

Comments
 (0)