Skip to content

Commit 1206c84

Browse files
committed
feat: examples setup
1 parent aa82a21 commit 1206c84

103 files changed

Lines changed: 5581 additions & 9272 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.

‎.github/workflows/extract-templates.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
mkdir dist/
2020
2121
# copy template to output directory
22-
cp -r apps/nativescript-starter-${{ matrix.starter }} dist/
22+
cp -r apps/battery/${{ matrix.starter }} dist/
2323
2424
# enter template directory
25-
cd dist/nativescript-starter-${{ matrix.starter }}
25+
cd dist/battery/${{ matrix.starter }}
2626
2727
# copy gitignore from template
2828
cp ../../tools/assets/dot.gitignore .gitignore
@@ -42,5 +42,5 @@ jobs:
4242
REPO: self
4343
BRANCH: ${{ matrix.starter }}
4444
MESSAGE: "chore(update): {target-branch} to {sha}"
45-
FOLDER: dist/nativescript-starter-${{ matrix.starter }}
45+
FOLDER: dist/battery/${{ matrix.starter }}
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.

apps/nativescript-starter-angular/nativescript.config.ts renamed to apps/battery/angular/nativescript.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { NativeScriptConfig } from '@nativescript/core';
33
export default {
44
id: 'org.nativescript.app',
55
appPath: 'src',
6-
appResourcesPath: '../../tools/assets/App_Resources',
6+
appResourcesPath: '../../../tools/assets/App_Resources',
77
android: {
88
v8Flags: '--expose_gc',
99
markingMode: 'none',

‎apps/battery/angular/package.json‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "stackblitz-examples-battery-angular",
3+
"main": "./src/main.ts",
4+
"version": "1.0.0",
5+
"private": true,
6+
"dependencies": {
7+
"@angular/animations": "~14.1.0",
8+
"@angular/common": "~14.1.0",
9+
"@angular/compiler": "~14.1.0",
10+
"@angular/core": "~14.1.0",
11+
"@angular/forms": "~14.1.0",
12+
"@angular/platform-browser": "~14.1.0",
13+
"@angular/platform-browser-dynamic": "~14.1.0",
14+
"@angular/router": "~14.1.0",
15+
"@nativescript/angular": "^14.0.0",
16+
"@nativescript/core": "~8.3.0",
17+
"@nativescript/theme": "~3.0.2",
18+
"rxjs": "~7.5.0",
19+
"zone.js": "~0.11.5"
20+
},
21+
"devDependencies": {
22+
"@angular-devkit/build-angular": "~14.1.0",
23+
"@angular/compiler-cli": "~14.1.0",
24+
"@nativescript/preview-cli": "1.0.0-beta.18",
25+
"@nativescript/stackblitz": "0.0.5",
26+
"@nativescript/types-minimal": "~8.3.0",
27+
"@nativescript/webpack": "~5.0.0",
28+
"@ngtools/webpack": "~14.1.0",
29+
"typescript": "~4.7.0"
30+
}
31+
}

apps/nativescript-starter-vue/project.json renamed to apps/battery/angular/project.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3-
"sourceRoot": "apps/nativescript-starter-vue/src",
2+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
3+
"sourceRoot": "apps/battery/angular/src",
44
"projectType": "application",
55
"targets": {
66
"ios": {
@@ -41,8 +41,8 @@
4141
"executor": "@nrwl/linter:eslint",
4242
"options": {
4343
"lintFilePatterns": [
44-
"apps/nativescript-starter-vue/**/*.ts",
45-
"apps/nativescript-starter-vue/src/**/*.html"
44+
"apps/battery/angular/**/*.ts",
45+
"apps/battery/angular/src/**/*.html"
4646
]
4747
}
4848
}
File renamed without changes.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
@import '@nativescript/theme/css/core.css';
22
@import '@nativescript/theme/css/default.css';
33

4-
Button.-primary {
4+
Button.action-btn {
5+
border-radius: 25;
6+
background-color: rgb(0, 162, 255);
7+
color: white;
58
font-size: 18;
9+
padding: 5;
610
}

apps/nativescript-starter-angular/src/app/app-routing.module.ts renamed to apps/battery/angular/src/app/app-routing.module.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ import { NgModule } from '@angular/core'
22
import { Routes } from '@angular/router'
33
import { NativeScriptRouterModule } from '@nativescript/angular'
44

5-
import { ItemsComponent } from './item/items.component'
6-
import { ItemDetailComponent } from './item/item-detail.component'
5+
import { HomeComponent } from './home.component'
76

87
const routes: Routes = [
9-
{ path: '', redirectTo: '/items', pathMatch: 'full' },
10-
{ path: 'items', component: ItemsComponent },
11-
{ path: 'item/:id', component: ItemDetailComponent },
8+
{ path: '', redirectTo: '/home', pathMatch: 'full' },
9+
{ path: 'home', component: HomeComponent },
1210
]
1311

1412
@NgModule({

apps/nativescript-starter-angular/src/app/app.component.html renamed to apps/battery/angular/src/app/app.component.html

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)