Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 5, 2023
1 parent f0a6502 commit 62d9d1e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Preview
### Preview

https://taiga-family.github.io/preview-landing-components/
17 changes: 10 additions & 7 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"main": "apps/demo/src/main.ts",
"polyfills": "apps/demo/src/polyfills.ts",
"tsConfig": "apps/demo/tsconfig.app.json",
"baseHref": "./",
"baseHref": "/",
"assets": [
"apps/demo/src/favicon.ico",
"apps/demo/src/assets",
Expand Down Expand Up @@ -44,6 +44,12 @@
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},
"github": {
"baseHref": "./",
"sourceMap": false,
"buildOptimizer": true,
"vendorChunk": false
}
},
"defaultConfiguration": ""
Expand All @@ -64,19 +70,16 @@
"options": {
"parallel": false,
"commands": [
"echo 'Github pages require special 404.html'",
"echo 'Read more: https://angular.io/guide/deployment#deploy-to-github-pages'",
"echo ------",
"nx run demo:build:production --base-href=/preview-landing-components/",
"nx run demo:prerender:github",
"cp dist/demo/index.html dist/demo/404.html",
"nx run demo:prerender:production"
"rm dist/demo/index.original.html"
]
}
},
"prerender": {
"executor": "@nguniversal/builders:prerender",
"options": {
"browserTarget": "demo:build",
"browserTarget": "demo:build:github",
"serverTarget": "demo:server:production",
"guessRoutes": false,
"routes": ["/"]
Expand Down
1 change: 0 additions & 1 deletion apps/demo/routesFile.txt

This file was deleted.

5 changes: 3 additions & 2 deletions apps/demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import {CommonModule} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
import {RouterOutlet} from '@angular/router';

@Component({
standalone: true,
selector: 'app',
encapsulation: ViewEncapsulation.None,
imports: [CommonModule, RouterOutlet],
template: '<router-outlet></router-outlet>',
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [CommonModule, RouterOutlet],
})
export class AppComponent {}
3 changes: 2 additions & 1 deletion apps/demo/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {CommonModule} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiDay} from '@taiga-ui/cdk';
import {
Expand All @@ -22,6 +22,7 @@ import {EventPluginsModule} from '@tinkoff/ng-event-plugins';
selector: 'home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.less'],
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
CommonModule,
Expand Down

0 comments on commit 62d9d1e

Please sign in to comment.