Skip to content

Commit 8812cbe

Browse files
committed
chore: add templates
1 parent b93d1da commit 8812cbe

171 files changed

Lines changed: 10806 additions & 1502 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3+
# App assets not part of the templates
4+
apps/**/App_Resources
5+
apps/**/node_modules
6+
apps/**/platforms
7+
apps/**/package-lock.json
8+
apps/**/yarn.lock
9+
310
# compiled output
411
/dist
512
/tmp

‎apps/nativescript-starter-angular/.eslintrc.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎apps/nativescript-starter-angular/.gitignore‎

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"installDependencies": true,
3+
"startCommand": "./node_modules/.bin/preview-cli --config=https://preview.nativescript.org/api/config"
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("@nativescript/core/cli-hooks/before-checkForChanges.js");
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { NativeScriptConfig } from '@nativescript/core';
2+
3+
export default {
4+
id: 'org.nativescript.app',
5+
appPath: 'src',
6+
appResourcesPath: '../../tools/assets/App_Resources',
7+
android: {
8+
v8Flags: '--expose_gc',
9+
markingMode: 'none',
10+
},
11+
} as NativeScriptConfig;
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
import { NativeScriptConfig } from '@nativescript/core';
22

33
export default {
4-
id: 'org.nativescript.starterangular',
5-
appResourcesPath: '../../tools/assets/App_Resources',
6-
android: {
7-
v8Flags: '--expose_gc',
4+
id: 'org.nativescript.app',
5+
appPath: 'src',
6+
appResourcesPath: '../../tools/assets/App_Resources',
7+
android: {
8+
v8Flags: '--expose_gc',
89
markingMode: 'none',
9-
codeCache: true,
10-
suppressCallJSMethodExceptions: false
1110
},
12-
ios: {
13-
discardUncaughtJsExceptions: false
14-
},
15-
appPath: 'src',
1611
} as NativeScriptConfig;
Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
{
2-
"main": "./src/app.ts",
3-
"description": "NativeScript Application",
4-
"license": "SEE LICENSE IN <your-license-filename>",
5-
"repository": "<fill-your-repository-here>",
6-
"scripts": {
7-
"postinstall": "node ./tools/postinstall.js"
8-
},
2+
"name": "stackblitz-nativescript-angular",
3+
"main": "./src/main.ts",
4+
"version": "1.0.0",
5+
"private": true,
96
"dependencies": {
10-
"@nativescript/core": "*"
7+
"@angular/animations": "~14.0.0",
8+
"@angular/common": "~14.0.0",
9+
"@angular/compiler": "~14.0.0",
10+
"@angular/core": "~14.0.0",
11+
"@angular/forms": "~14.0.0",
12+
"@angular/platform-browser": "~14.0.0",
13+
"@angular/platform-browser-dynamic": "~14.0.0",
14+
"@angular/router": "~14.0.0",
15+
"@nativescript/angular": "^14.0.0",
16+
"@nativescript/core": "~8.2.0",
17+
"@nativescript/theme": "~3.0.2",
18+
"rxjs": "~7.5.0",
19+
"zone.js": "~0.11.5"
1120
},
1221
"devDependencies": {
13-
"@nativescript/android": "~8.2.1",
14-
"@nativescript/ios": "~8.2.0"
22+
"@angular-devkit/build-angular": "~14.0.0",
23+
"@angular/compiler-cli": "~14.0.0",
24+
"@nativescript/preview-cli": "^1.0.0-beta.15",
25+
"@nativescript/types-minimal": "~8.2.0",
26+
"@nativescript/webpack": "^5.0.7-alpha.3",
27+
"@ngtools/webpack": "~14.0.0",
28+
"typescript": "~4.7.0"
1529
}
1630
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/// <reference path="../../node_modules/@nativescript/types-ios/index.d.ts" />
2-
/// <reference path="../../node_modules/@nativescript/types-android/lib/android-21.d.ts" />
1+
/// <reference path="./node_modules/@nativescript/types-minimal/index.d.ts" />
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import '@nativescript/theme/css/core.css';
2+
@import '@nativescript/theme/css/default.css';
3+
4+
Button.-primary {
5+
font-size: 18;
6+
}

0 commit comments

Comments
 (0)