Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit cc7d9c2

Browse files
committed
Update the Stackblitz template to v18
Updates the Stackblitz template to the latest version. Also reduces the number of files we need to generate.
1 parent 5cce19c commit cc7d9c2

File tree

6 files changed

+2465
-3109
lines changed

6 files changed

+2465
-3109
lines changed

src/app/shared/stack-blitz/stack-blitz-writer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const TEMPLATE_FILES = [
4444
'src/main.ts',
4545
'src/styles.scss',
4646
'src/test.ts',
47-
'src/theme.scss',
4847
];
4948

5049
const PROJECT_TAGS = ['angular', 'material', 'cdk', 'web', 'example'];

src/assets/stack-blitz/angular.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"src/assets"
3434
],
3535
"styles": [
36-
"src/theme.scss",
3736
"src/styles.scss"
3837
],
3938
"stylePreprocessorOptions": {
@@ -109,8 +108,7 @@
109108
]
110109
},
111110
"styles": [
112-
"src/styles.scss",
113-
"src/theme.scss"
111+
"src/styles.scss"
114112
],
115113
"scripts": []
116114
}

src/assets/stack-blitz/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"@angular/animations": "^17.3.0",
13+
"@angular/animations": "^18.0.1",
1414
"@angular/cdk": "${version}",
15-
"@angular/common": "^17.3.0",
16-
"@angular/compiler": "^17.3.0",
17-
"@angular/core": "^17.3.0",
18-
"@angular/forms": "^17.3.0",
15+
"@angular/common": "^18.0.1",
16+
"@angular/compiler": "^18.0.1",
17+
"@angular/core": "^18.0.1",
18+
"@angular/forms": "^18.0.1",
1919
"@angular/material": "${version}",
2020
"@angular/material-experimental": "${version}",
2121
"@angular/material-moment-adapter": "${version}",
22-
"@angular/platform-browser": "^17.3.0",
23-
"@angular/platform-browser-dynamic": "^17.3.0",
24-
"@angular/router": "^17.3.0",
25-
"@angular/localize": "^17.3.0",
22+
"@angular/platform-browser": "^18.0.1",
23+
"@angular/platform-browser-dynamic": "^18.0.1",
24+
"@angular/router": "^18.0.1",
25+
"@angular/localize": "^18.0.1",
2626
"moment": "^2.18.1",
2727
"rxjs": "~7.4.0",
2828
"tslib": "^2.3.0",
2929
"zone.js": "~0.14.0"
3030
},
3131
"devDependencies": {
32-
"@angular-devkit/build-angular": "^17.3.0",
33-
"@angular/cli": "^17.3.0",
34-
"@angular/compiler-cli": "^17.3.0",
32+
"@angular-devkit/build-angular": "^18.0.1",
33+
"@angular/cli": "^18.0.1",
34+
"@angular/compiler-cli": "^18.0.1",
3535
"@types/jasmine": "~3.10.0",
3636
"@types/node": "^12.11.1",
3737
"jasmine-core": "~3.10.0",
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1+
@use '@angular/material' as mat;
2+
3+
$theme: mat.define-theme((
4+
color: (
5+
theme-type: light,
6+
primary: mat.$azure-palette,
7+
tertiary: mat.$blue-palette,
8+
)
9+
));
10+
111
body {
12+
@include mat.all-component-themes($theme);
213
font-family: Roboto, "Helvetica Neue", sans-serif;
314
margin: 0;
415
padding: 30px;
16+
height: 100%;
517
}
618

7-
html, body {
19+
html {
820
height: 100%;
921
}
22+
23+
@include mat.core();
24+
@include mat.color-variants-backwards-compatibility($theme);

src/assets/stack-blitz/src/theme.scss

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)