Skip to content

Commit

Permalink
feat(stark-all): enable resourcesInlining once we have Angular 6 for …
Browse files Browse the repository at this point in the history
…inlining template in components

ISSUES CLOSED: #376
  • Loading branch information
ageorges-nbb committed May 16, 2018
1 parent 8ecbda6 commit 9b33ccd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
1 change: 1 addition & 0 deletions packages/stark-core/tsconfig-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"enableResourceInlining": true,
"flatModuleOutFile": "stark-core.js",
"flatModuleId": "@nationalbankbelgium/stark-core"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/stark-core/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"preserveWhitespaces": false,
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true
"skipTemplateCodegen": true,
"enableResourceInlining": true
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<!--
FIXME: the template is inlined in the component.ts file for now until we migrate to NG6
In NG6, the resource inlining can be automatically done by NGC thanks to the new "enableResourceInlining" option
see: https://github.com/angular/angular/commit/b5be18f4059dc09ee9a3eb22ebd0b1485262e8fa
-->
<a (click)="logoClickHandler($event)" href="#">
<i></i>
</a>
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ const componentName: string = "stark-app-logo";
/* tslint:disable:enforce-component-selector max-inline-declarations use-view-encapsulation use-host-property-decorator */
@Component({
selector: componentName,
// FIXME: move the inline template to the component.html file and use templateUrl instead once we migrate to NG6
template: `
<a (click)="logoClickHandler($event)" href="#">
<i></i>
</a>`,
templateUrl: "./app-logo.component.html",
encapsulation: ViewEncapsulation.None,
host: { class: "stark-app-logo" }
})
Expand Down
1 change: 1 addition & 0 deletions packages/stark-ui/tsconfig-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"enableResourceInlining": true,
"flatModuleOutFile": "stark-ui.js",
"flatModuleId": "@nationalbankbelgium/stark-ui"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/stark-ui/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"preserveWhitespaces": false,
"allowEmptyCodegenFiles": false,
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true
"skipTemplateCodegen": true,
"enableResourceInlining": true
}
}
8 changes: 4 additions & 4 deletions starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@
"@angular/platform-server": "6.0.2",
"@angular/router": "6.0.2",
"@mdi/angular-material": "2.3.54",
"@nationalbankbelgium/stark-core": "file:../dist/packages-dist/stark-core/nationalbankbelgium-stark-core-10.0.0-alpha.2-a445d6a.tgz",
"@nationalbankbelgium/stark-ui": "file:../dist/packages-dist/stark-ui/nationalbankbelgium-stark-ui-10.0.0-alpha.2-a445d6a.tgz",
"@nationalbankbelgium/stark-core": "file:../dist/packages-dist/stark-core/nationalbankbelgium-stark-core-10.0.0-alpha.2-8ecbda6.tgz",
"@nationalbankbelgium/stark-ui": "file:../dist/packages-dist/stark-ui/nationalbankbelgium-stark-ui-10.0.0-alpha.2-8ecbda6.tgz",
"@ngrx/store": "5.2.0",
"@uirouter/visualizer": "6.0.0",
"core-js": "2.5.6",
Expand All @@ -135,8 +135,8 @@
"web-animations-js": "2.3.1"
},
"devDependencies": {
"@nationalbankbelgium/stark-build": "file:../dist/packages-dist/stark-build/nationalbankbelgium-stark-build-10.0.0-alpha.2-a445d6a.tgz",
"@nationalbankbelgium/stark-testing": "file:../dist/packages-dist/stark-testing/nationalbankbelgium-stark-testing-10.0.0-alpha.2-a445d6a.tgz",
"@nationalbankbelgium/stark-build": "file:../dist/packages-dist/stark-build/nationalbankbelgium-stark-build-10.0.0-alpha.2-8ecbda6.tgz",
"@nationalbankbelgium/stark-testing": "file:../dist/packages-dist/stark-testing/nationalbankbelgium-stark-testing-10.0.0-alpha.2-8ecbda6.tgz",
"@types/core-js": "0.9.46",
"@types/hammerjs": "2.0.35",
"@types/node": "6.0.106",
Expand Down

0 comments on commit 9b33ccd

Please sign in to comment.