Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions angular-tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,31 @@
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"dependencies": {
"@angular/animations": "~14.0.0",
"@angular/common": "~14.0.0",
"@angular/compiler": "~14.0.0",
"@angular/core": "~14.0.0",
"@angular/forms": "~14.0.0",
"@angular/platform-browser": "~14.0.0",
"@angular/platform-browser-dynamic": "~14.0.0",
"@angular/router": "~14.0.0",
"@nativescript/angular": "^14.0.0",
"@nativescript/core": "~8.2.0",
"@angular/animations": "~15.1.0",
"@angular/common": "~15.1.0",
"@angular/compiler": "~15.1.0",
"@angular/core": "~15.1.0",
"@angular/forms": "~15.1.0",
"@angular/platform-browser": "~15.1.0",
"@angular/platform-browser-dynamic": "~15.1.0",
"@angular/router": "~15.1.0",
"@nativescript/angular": "^15.0.0",
"@nativescript/core": "~8.4.0",
"@nativescript/tailwind": "^2.0.1",
"@nativescript/theme": "~3.0.1",
"rxjs": "^7.5.0",
"tailwindcss": "^3.2.4",
"zone.js": "~0.11.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "~14.0.0",
"@angular/compiler-cli": "~14.0.0",
"@nativescript/android": "~8.2.0",
"@nativescript/ios": "~8.2.0",
"@nativescript/types": "~8.2.0",
"@angular-devkit/build-angular": "~15.1.0",
"@angular/compiler-cli": "~15.1.0",
"@nativescript/android": "~8.4.0",
"@nativescript/ios": "~8.4.0",
"@nativescript/types": "~8.4.0",
"@nativescript/webpack": "~5.0.0",
"@ngtools/webpack": "~14.0.0",
"typescript": "~4.7.4"
"@ngtools/webpack": "~15.1.0",
"typescript": "~4.8.4"
},
"private": "true",
"readme": "NativeScript Application"
Expand Down
4 changes: 4 additions & 0 deletions angular-tutorial/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ The imported CSS rules must precede all other types of rules.
@import "@nativescript/theme/css/core.css";
@import "@nativescript/theme/css/default.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Place any CSS rules you want to apply on both iOS and Android here.
This is where the vast majority of your CSS code goes. */

Expand Down
15 changes: 15 additions & 0 deletions angular-tutorial/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/**/*.{css,xml,html,vue,svelte,ts,tsx}'
],
// use the .ns-dark class to control dark mode (applied by NativeScript) - since 'media' (default) is not supported.
darkMode: ['class', '.ns-dark'],
theme: {
extend: {},
},
plugins: [],
corePlugins: {
preflight: false // disables browser-specific resets
}
}
38 changes: 29 additions & 9 deletions angular-tutorial/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
{
"compilerOptions": {
"module": "esnext",
"target": "es2017",
"target": "es2020",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"skipLibCheck": true,
"lib": ["es2017", "dom"],
"lib": [
"ESNext",
"dom"
],
"baseUrl": ".",
"paths": {
"~/*": ["src/*"],
"@/*": ["src/*"]
}
"~/*": [
"src/*"
],
"@/*": [
"src/*"
]
},
"removeComments": false
},
"include": ["src/tests/**/*.ts", "src/**/*.ios.ts", "src/**/*.android.ts"],
"files": ["./src/main.ts", "./references.d.ts", "./src/polyfills.ts"],
"exclude": ["node_modules", "platforms", "e2e"]
}
"include": [
"src/tests/**/*.ts",
"src/**/*.ios.ts",
"src/**/*.android.ts"
],
"files": [
"./src/main.ts",
"./references.d.ts",
"./src/polyfills.ts"
],
"exclude": [
"node_modules",
"platforms",
"e2e"
]
}