Skip to content

Commit 30006df

Browse files
authored
feat: Angular 15.1 updates (#8)
1 parent a789493 commit 30006df

File tree

4 files changed

+67
-26
lines changed

4 files changed

+67
-26
lines changed

angular-tutorial/package.json

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,31 @@
3030
"url": "https://github.com/NativeScript/NativeScript/issues"
3131
},
3232
"dependencies": {
33-
"@angular/animations": "~14.0.0",
34-
"@angular/common": "~14.0.0",
35-
"@angular/compiler": "~14.0.0",
36-
"@angular/core": "~14.0.0",
37-
"@angular/forms": "~14.0.0",
38-
"@angular/platform-browser": "~14.0.0",
39-
"@angular/platform-browser-dynamic": "~14.0.0",
40-
"@angular/router": "~14.0.0",
41-
"@nativescript/angular": "^14.0.0",
42-
"@nativescript/core": "~8.2.0",
33+
"@angular/animations": "~15.1.0",
34+
"@angular/common": "~15.1.0",
35+
"@angular/compiler": "~15.1.0",
36+
"@angular/core": "~15.1.0",
37+
"@angular/forms": "~15.1.0",
38+
"@angular/platform-browser": "~15.1.0",
39+
"@angular/platform-browser-dynamic": "~15.1.0",
40+
"@angular/router": "~15.1.0",
41+
"@nativescript/angular": "^15.0.0",
42+
"@nativescript/core": "~8.4.0",
43+
"@nativescript/tailwind": "^2.0.1",
4344
"@nativescript/theme": "~3.0.1",
4445
"rxjs": "^7.5.0",
46+
"tailwindcss": "^3.2.4",
4547
"zone.js": "~0.11.5"
4648
},
4749
"devDependencies": {
48-
"@angular-devkit/build-angular": "~14.0.0",
49-
"@angular/compiler-cli": "~14.0.0",
50-
"@nativescript/android": "~8.2.0",
51-
"@nativescript/ios": "~8.2.0",
52-
"@nativescript/types": "~8.2.0",
50+
"@angular-devkit/build-angular": "~15.1.0",
51+
"@angular/compiler-cli": "~15.1.0",
52+
"@nativescript/android": "~8.4.0",
53+
"@nativescript/ios": "~8.4.0",
54+
"@nativescript/types": "~8.4.0",
5355
"@nativescript/webpack": "~5.0.0",
54-
"@ngtools/webpack": "~14.0.0",
55-
"typescript": "~4.7.4"
56+
"@ngtools/webpack": "~15.1.0",
57+
"typescript": "~4.8.4"
5658
},
5759
"private": "true",
5860
"readme": "NativeScript Application"

angular-tutorial/src/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The imported CSS rules must precede all other types of rules.
1313
@import "@nativescript/theme/css/core.css";
1414
@import "@nativescript/theme/css/default.css";
1515

16+
@tailwind base;
17+
@tailwind components;
18+
@tailwind utilities;
19+
1620
/* Place any CSS rules you want to apply on both iOS and Android here.
1721
This is where the vast majority of your CSS code goes. */
1822

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: [
4+
'./src/**/*.{css,xml,html,vue,svelte,ts,tsx}'
5+
],
6+
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
7+
darkMode: ['class', '.ns-dark'],
8+
theme: {
9+
extend: {},
10+
},
11+
plugins: [],
12+
corePlugins: {
13+
preflight: false // disables browser-specific resets
14+
}
15+
}

angular-tutorial/tsconfig.json

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,41 @@
11
{
22
"compilerOptions": {
33
"module": "esnext",
4-
"target": "es2017",
4+
"target": "es2020",
55
"moduleResolution": "node",
66
"experimentalDecorators": true,
77
"emitDecoratorMetadata": true,
88
"noEmitHelpers": true,
99
"noEmitOnError": true,
1010
"skipLibCheck": true,
11-
"lib": ["es2017", "dom"],
11+
"lib": [
12+
"ESNext",
13+
"dom"
14+
],
1215
"baseUrl": ".",
1316
"paths": {
14-
"~/*": ["src/*"],
15-
"@/*": ["src/*"]
16-
}
17+
"~/*": [
18+
"src/*"
19+
],
20+
"@/*": [
21+
"src/*"
22+
]
23+
},
24+
"removeComments": false
1725
},
18-
"include": ["src/tests/**/*.ts", "src/**/*.ios.ts", "src/**/*.android.ts"],
19-
"files": ["./src/main.ts", "./references.d.ts", "./src/polyfills.ts"],
20-
"exclude": ["node_modules", "platforms", "e2e"]
21-
}
26+
"include": [
27+
"src/tests/**/*.ts",
28+
"src/**/*.ios.ts",
29+
"src/**/*.android.ts"
30+
],
31+
"files": [
32+
"./src/main.ts",
33+
"./references.d.ts",
34+
"./src/polyfills.ts"
35+
],
36+
"exclude": [
37+
"node_modules",
38+
"platforms",
39+
"e2e"
40+
]
41+
}

0 commit comments

Comments
 (0)