Skip to content

Commit 4db34bb

Browse files
committed
chore: setup
1 parent 0963b24 commit 4db34bb

180 files changed

Lines changed: 2400 additions & 8537 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ npm-debug.log
3333
yarn-error.log
3434
testem.log
3535
/typings
36+
package-lock.json
3637

3738
# System Files
3839
.DS_Store
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*", "references.d.ts", "node_modules/**/*", "hooks/**/*", "platforms/**/*"], "rules": {} }
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
platforms/
5+
6+
# NativeScript Template
7+
*.js.map
8+
*.js
9+
!webpack.config.js
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
18+
# General
19+
.DS_Store
20+
.AppleDouble
21+
.LSOverride
22+
.idea
23+
.cloud
24+
.project
25+
tmp/
26+
typings/
27+
28+
# misc
29+
npm-debug.log
30+
31+
# app
32+
!*.d.ts
33+
!src/assets/fontawesome.min.css
34+
!webpack.config.js
35+
/report/
36+
.nsbuildinfo
37+
/temp/
38+
/src/tns_modules/
39+
40+
# app uses platform specific scss which can inadvertently get renamed which will cause problems
41+
app/app.scss
42+
43+
package-lock.json
44+
!tools/**
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { NativeScriptConfig } from '@nativescript/core';
2+
3+
export default {
4+
id: 'org.nativescript.starterangular',
5+
appResourcesPath: '../../tools/assets/App_Resources',
6+
android: {
7+
v8Flags: '--expose_gc',
8+
markingMode: 'none',
9+
codeCache: true,
10+
suppressCallJSMethodExceptions: false
11+
},
12+
ios: {
13+
discardUncaughtJsExceptions: false
14+
},
15+
appPath: 'src',
16+
} as NativeScriptConfig;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
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+
},
9+
"dependencies": {
10+
"@nativescript/core": "*"
11+
},
12+
"devDependencies": {
13+
"@nativescript/android": "~8.2.1",
14+
"@nativescript/ios": "~8.2.0"
15+
}
16+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3+
"sourceRoot": "apps/nativescript-starter-angular/src",
4+
"projectType": "application",
5+
"targets": {
6+
"ios": {
7+
"executor": "@nativescript/nx:build",
8+
"options": {
9+
"platform": "ios"
10+
},
11+
"configurations": {
12+
"build": {
13+
"copyTo": "./dist/build.ipa"
14+
},
15+
"prod": {
16+
"combineWithConfig": "build:prod"
17+
}
18+
}
19+
},
20+
"android": {
21+
"executor": "@nativescript/nx:build",
22+
"options": {
23+
"platform": "android"
24+
},
25+
"configurations": {
26+
"build": {
27+
"copyTo": "./dist/build.apk"
28+
},
29+
"prod": {
30+
"combineWithConfig": "build:prod"
31+
}
32+
}
33+
},
34+
"clean": {
35+
"executor": "@nativescript/nx:build",
36+
"options": {
37+
"clean": true
38+
}
39+
},
40+
"lint": {
41+
"executor": "@nrwl/linter:eslint",
42+
"options": {
43+
"lintFilePatterns": [
44+
"apps/nativescript-starter-angular/**/*.ts",
45+
"apps/nativescript-starter-angular/src/**/*.html"
46+
]
47+
}
48+
}
49+
}
50+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference path="../../node_modules/@nativescript/types-ios/index.d.ts" />
2+
/// <reference path="../../node_modules/@nativescript/types-android/lib/android-21.d.ts" />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Frame defaultPage="main-page">
2+
</Frame>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'nativescript-theme-core/scss/light';
2+
@import 'nativescript-theme-core/scss/index';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
In NativeScript, the app.ts file is the entry point to your application.
3+
You can use this file to perform app-level initialization, but the primary
4+
purpose of the file is to pass control to the app’s first module.
5+
*/
6+
7+
import { Application } from "@nativescript/core";
8+
9+
Application.run({ moduleName: "app-root" });
10+
11+
/*
12+
Do not place any code after the application has been started as it will not
13+
be executed on iOS.
14+
*/

0 commit comments

Comments
 (0)