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 62d9d1e commit 2988f5a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
15 changes: 10 additions & 5 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@
},
"configurations": {
"production": {
"baseHref": "./",
"fileReplacements": [
{
"replace": "apps/demo/src/environments/environment.ts",
"with": "apps/demo/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"outputHashing": "media",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
Expand Down Expand Up @@ -70,16 +71,17 @@
"options": {
"parallel": false,
"commands": [
"nx run demo:prerender:github",
"rm -rf dist/demo",
"npx nx prerender demo",
"cp dist/demo/index.html dist/demo/404.html",
"rm dist/demo/index.original.html"
"rm -rf dist/demo/server dist/demo/index.original.html"
]
}
},
"prerender": {
"executor": "@nguniversal/builders:prerender",
"options": {
"browserTarget": "demo:build:github",
"browserTarget": "demo:build:production",
"serverTarget": "demo:server:production",
"guessRoutes": false,
"routes": ["/"]
Expand All @@ -94,7 +96,10 @@
},
"configurations": {
"production": {
"outputHashing": "media"
"outputHashing": "media",
"sourceMap": false,
"buildOptimizer": true,
"vendorChunk": false
}
},
"defaultConfiguration": "production"
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/src/app/home/home.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
justify-content: space-between;
}

.button,
.error {
.button[data-size][data-shape],
.error[data-size][data-shape] {
.transition(~'color, background');
background: var(--tui-base-02);
color: var(--tui-primary);
Expand All @@ -48,7 +48,7 @@
}
}

.error {
.error[data-size][data-shape] {
color: var(--tui-negative);

&:hover,
Expand Down
6 changes: 1 addition & 5 deletions apps/demo/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"extends": "../../tsconfig.json",
"angularCompilerOptions": {
"strictMetadataEmit": false,
"compilationMode": "full"
},
"compilerOptions": {
"removeComments": true,
"baseUrl": ".",
"outDir": "../../dist/out-tsc",
"useDefineForClassFields": false,
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"]
Expand Down
1 change: 1 addition & 0 deletions apps/demo/tsconfig.server.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./tsconfig.app.json",
"compilerOptions": {
"removeComments": true,
"outDir": "./out-tsc/server",
"types": ["node"]
},
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"extends": "@taiga-ui/tsconfig",
"angularCompilerOptions": {
"compilationMode": "full"
},
"compilerOptions": {
"rootDir": ".",
"baseUrl": ".",
"module": "esnext",
"removeComments": true,
"useDefineForClassFields": false,
"typeRoots": ["node_modules/@types"]
}
Expand Down

0 comments on commit 2988f5a

Please sign in to comment.