Skip to content

Commit

Permalink
build(docs): fixed build with --aot
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Dec 11, 2019
1 parent 9f869ff commit 1893b52
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
},
"configurations": {
"production": {
"tsConfig": "packages/docs/tsconfig.aot.json",
"fileReplacements": [
{
"replace": "packages/docs/src/environments/environment.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class NavbarComponent {
// To add new version to dropdown add new object to the end of data array,
// number of current version is taken from package.json, rest should be specified
// run npm show @ptsecurity/mosaic versions --json to see all mosaic versions
private versionData = [
versionData = [
{
number: '8.1.0',
date: '9 октября',
Expand Down
23 changes: 23 additions & 0 deletions packages/docs/tsconfig.aot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"paths": {
"@ptsecurity/cdk/*": ["../../dist/releases/cdk/*"],

"@ptsecurity/mosaic/*": ["../../dist/releases/mosaic/*"],

"@ptsecurity/mosaic-examples": ["../../dist/releases/mosaic-examples"],

"@ptsecurity/mosaic-moment-adapter": ["../../dist/releases/mosaic-moment-adapter"]
}
},
"include": [
"src/**/*.ts"
],
"exclude": [
"src/test.ts",
"src/**/*.spec.ts",
"src/assets"
]
}
1 change: 0 additions & 1 deletion packages/docs/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"@ptsecurity/mosaic/*": [
"../../dist/packages/mosaic/*"
],
"@ptsecurity/mosaic-examples/*": ["../../dist/packages/mosaic-examples/*"],
"@ptsecurity/mosaic-examples": ["../../dist/packages/mosaic-examples"],
"@ptsecurity/mosaic-moment-adapter": [
"../../dist/packages/mosaic-moment-adapter/public-api.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export class TextAreaOverviewExample {
disabled: boolean = true;
required: boolean = true;
placeholder: string = 'placeholder';
value: any;
}

0 comments on commit 1893b52

Please sign in to comment.