Skip to content

Commit 937e826

Browse files
committed
Fix deploy
1 parent a76f825 commit 937e826

File tree

5 files changed

+31
-14
lines changed

5 files changed

+31
-14
lines changed

angular.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@
176176
}
177177
},
178178
"defaultProject": "angular-lyon"
179-
}
179+
}

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"serve:ssr": "node dist/angular-lyon/server/main.js",
1414
"build:ssr": "ng build --prod && ng run angular-lyon:server:production",
1515
"prerender": "ng run angular-lyon:prerender",
16-
"deploy": "ng deploy --build-target=angular-lyon:prerender"
16+
"deploy": "ng run angular-lyon:prerender && ng deploy --no-build"
1717
},
1818
"private": true,
1919
"dependencies": {
@@ -27,8 +27,8 @@
2727
"@angular/platform-server": "~11.2.5",
2828
"@angular/router": "~11.2.5",
2929
"@nguniversal/express-engine": "^11.2.1",
30-
"@rx-angular/cdk": "^1.0.0-alpha.5",
31-
"@rx-angular/template": "^1.0.0-beta.24",
30+
"@rx-angular/cdk": "^1.0.0-alpha.8",
31+
"@rx-angular/template": "^1.0.0-beta.25",
3232
"express": "^4.17.1",
3333
"rxjs": "~6.5.3",
3434
"tslib": "^2.0.0",

server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { existsSync } from 'fs';
1111
export function app(): express.Express {
1212
const server = express();
1313
const distFolder = join(process.cwd(), 'dist/angular-lyon/browser');
14-
const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index';
14+
const indexHtml = existsSync(join(distFolder, 'index.html')) ? 'index.html' : 'index.original.html';
1515

1616
// Our Universal express-engine (found @ https://github.com/angular/universal/tree/master/modules/express-engine)
1717
server.engine('html', ngExpressEngine({

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"angularCompilerOptions": {
2323
"fullTemplateTypeCheck": true,
24-
"strictInjectionParameters": true
24+
"strictInjectionParameters": true,
25+
"strictTemplates": true
2526
}
2627
}

yarn.lock

+24-8
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,13 @@
234234
dependencies:
235235
tslib "^2.0.0"
236236

237+
"@angular/platform-browser@^11.2.0":
238+
version "11.2.11"
239+
resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-11.2.11.tgz#d7a1643d9615e6bbda854e91d7c77ae185583ca0"
240+
integrity sha512-5DwczcZHRDh9E+hfzoGC+lfbJe95w8C1mg0EFtxxeGbdtaAXGzlfhDWvLceB5cpd8UNRVY7QvOZ/erfH2i3QTw==
241+
dependencies:
242+
tslib "^2.0.0"
243+
237244
"@angular/platform-browser@~11.2.5":
238245
version "11.2.5"
239246
resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-11.2.5.tgz#a00829cf0c23a3bfd28942fac35fafde9a7c970c"
@@ -1284,18 +1291,20 @@
12841291
node-gyp "^7.1.0"
12851292
read-package-json-fast "^2.0.1"
12861293

1287-
"@rx-angular/cdk@^1.0.0-alpha.5":
1288-
version "1.0.0-alpha.5"
1289-
resolved "https://registry.yarnpkg.com/@rx-angular/cdk/-/cdk-1.0.0-alpha.5.tgz#c94ef81d09716652c618cafa81cded0d7feabe50"
1290-
integrity sha512-BCYK9dicsfv8fR+OvO+ol6Y8+7H8joZaHhFzNb1+BlzWofHzJ80K0xg8cai05jAXhMQh+jLzBhtpDjNVX3zwsw==
1294+
"@rx-angular/cdk@^1.0.0-alpha.8":
1295+
version "1.0.0-alpha.8"
1296+
resolved "https://registry.yarnpkg.com/@rx-angular/cdk/-/cdk-1.0.0-alpha.8.tgz#892d0857d126188088a666b0849bdc57290185a7"
1297+
integrity sha512-pSCphPlfIJI2cj68oBiQS7GOZVSJAdlzRUusnXz+GpVwjH2TCQrHKTwr2m5wBiDbttiLoFfQETo/Cj3AR6OFWg==
12911298
dependencies:
1299+
rxjs "^6.6.3"
12921300
tslib "^2.0.0"
12931301

1294-
"@rx-angular/template@^1.0.0-beta.24":
1295-
version "1.0.0-beta.24"
1296-
resolved "https://registry.yarnpkg.com/@rx-angular/template/-/template-1.0.0-beta.24.tgz#b9b45f1f4bb28db8ad9c434619bd1a0764cf2e02"
1297-
integrity sha512-i4Q5QEPDe8Dq7SS/GUy9GuM8eFxo4W8HuxZNuF5Y/Xdm0+glb+8oGM66IsTxkyCrTS17dIJt7+Pp2Ayq51nC4A==
1302+
"@rx-angular/template@^1.0.0-beta.25":
1303+
version "1.0.0-beta.25"
1304+
resolved "https://registry.yarnpkg.com/@rx-angular/template/-/template-1.0.0-beta.25.tgz#f78f6730e45b1ff7260aca9c811ced2915498dec"
1305+
integrity sha512-nzUgSDbPM2fbFlwCx5lQVNqvgrL9W0kWjycLwzGYAh81+gvm2UJG7lersuLuc6sXkt3DF9cc0lXd0DtLjFBAgg==
12981306
dependencies:
1307+
"@angular/platform-browser" "^11.2.0"
12991308
tslib "^2.0.0"
13001309

13011310
"@schematics/[email protected]":
@@ -8790,6 +8799,13 @@ rxjs@^6.5.5, rxjs@^6.6.0:
87908799
dependencies:
87918800
tslib "^1.9.0"
87928801

8802+
rxjs@^6.6.3:
8803+
version "6.6.7"
8804+
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9"
8805+
integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==
8806+
dependencies:
8807+
tslib "^1.9.0"
8808+
87938809
[email protected], safe-buffer@~5.1.0, safe-buffer@~5.1.1:
87948810
version "5.1.2"
87958811
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"

0 commit comments

Comments
 (0)