This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ff5540
commit ff79b58
Showing
63 changed files
with
430 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,6 @@ | |
/build | ||
|
||
/.nx/cache | ||
|
||
|
||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ Skip formatting files. | |
|
||
#### standalone | ||
|
||
Default: `false` | ||
Default: `true` | ||
|
||
Type: `boolean` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const nxPreset = require('@nx/jest/preset').default; | ||
|
||
module.exports = { | ||
...nxPreset, | ||
testTimeout: 500000, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
{ | ||
"name": "@nxext/capacitor", | ||
"version": "18.0.4", | ||
"version": "18.0.0", | ||
"description": "An Nx plugin for developing cross-platform applications using Capacitor", | ||
"author": { | ||
"name": "Devin Shoemaker", | ||
"email": "[email protected]" | ||
}, | ||
"homepage": "https://nxext.github.io/nx-extensions-ionic/docs/capacitor/getting-started.html", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -28,5 +24,7 @@ | |
"ignore": "^5.3.1", | ||
"tslib": "^2.3.0" | ||
}, | ||
"peerDependencies": {} | ||
"peerDependencies": { | ||
"@nx/web": "^18.3.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
export { | ||
createNodes, | ||
PlaywrightPluginOptions, | ||
createDependencies, | ||
} from './src/plugins/plugin'; | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
xdescribe('Plugin', () => { | ||
beforeEach(() => {}); | ||
|
||
it('', async () => {}); | ||
}); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const capacitorVersion = '^5.0.3'; | ||
export const capacitorVersion = '^6.0.0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "@nxext/ionic-angular", | ||
"version": "18.0.4", | ||
"version": "18.0.0", | ||
"description": "An Nx plugin for developing Ionic React applications and libraries", | ||
"author": { | ||
"name": "Devin Shoemaker", | ||
"email": "[email protected]" | ||
"name": "Dominik Pieper", | ||
"email": "[email protected]" | ||
}, | ||
"homepage": "https://nxext.github.io/nx-extensions-ionic/docs/ionic-angular/overview.html", | ||
"repository": { | ||
|
@@ -25,7 +25,7 @@ | |
"schematics": "./generators.json", | ||
"builders": "./executors.json", | ||
"dependencies": { | ||
"@nxext/capacitor": "^18.0.4", | ||
"@nxext/capacitor": "18.0.0", | ||
"@nx/devkit": "18.3.1", | ||
"@nx/eslint": "18.3.1", | ||
"@nx/angular": "18.3.1", | ||
|
@@ -34,5 +34,8 @@ | |
"typescript": "5.4.5", | ||
"tslib": "^2.3.0" | ||
}, | ||
"peerDependencies": {} | ||
"peerDependencies": { | ||
"@nx/angular": "^18.3.0", | ||
"@nx/eslint": "^18.3.0" | ||
} | ||
} |
17 changes: 6 additions & 11 deletions
17
...r/src/generators/application/files/base-standalone/src/app/app.component.spec.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { TestBed } from '@angular/core/testing'; | ||
|
||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { AppComponent } from './app.component'; | ||
|
||
describe('AppComponent', () => { | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [AppComponent], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
}).compileComponents(); | ||
}); | ||
|
||
it('should create the app', () => { | ||
TestBed.overrideComponent(AppComponent, { | ||
add: { | ||
imports: [RouterTestingModule] | ||
} | ||
}); | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
|
||
}); |
15 changes: 4 additions & 11 deletions
15
...ngular/src/generators/application/files/base-standalone/src/app/app.component.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...r/src/generators/application/files/tabs-standalone/src/app/app.component.spec.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { AppComponent } from './app.component'; | ||
|
||
describe('AppComponent', () => { | ||
it('should create the app', () => { | ||
TestBed.overrideComponent(AppComponent, { | ||
add: { | ||
imports: [RouterTestingModule] | ||
} | ||
}); | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
}); |
19 changes: 7 additions & 12 deletions
19
...ngular/src/generators/application/files/tabs-standalone/src/app/app.component.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
import {Component} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {IonicModule} from '@ionic/angular'; | ||
import { Component } from '@angular/core'; | ||
import { IonApp, IonRouterOutlet } from '@ionic/angular/standalone'; | ||
|
||
@Component({ | ||
selector: '<%= prefix %>-root', | ||
templateUrl: 'app.component.html', | ||
standalone: true, | ||
imports: [CommonModule, IonicModule], | ||
template: ` | ||
<ion-app> | ||
<ion-router-outlet></ion-router-outlet> | ||
</ion-app> | ||
`, | ||
styles: `` | ||
imports: [IonApp, IonRouterOutlet], | ||
}) | ||
|
||
export class AppComponent {} | ||
export class AppComponent { | ||
constructor() {} | ||
} |
15 changes: 7 additions & 8 deletions
15
...c-angular/src/generators/application/files/tabs-standalone/src/app/app.config.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import { ApplicationConfig, importProvidersFrom } from '@angular/core'; | ||
import { provideRouter } from '@angular/router'; | ||
import { ApplicationConfig } from '@angular/core'; | ||
import { RouteReuseStrategy, provideRouter } from '@angular/router'; | ||
import { IonicRouteStrategy, provideIonicAngular } from '@ionic/angular/standalone'; | ||
|
||
import { appRoutes } from './app.routes'; | ||
import {IonicModule} from '@ionic/angular'; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
provideRouter(appRoutes), | ||
importProvidersFrom( | ||
IonicModule.forRoot() | ||
) | ||
|
||
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }, | ||
provideIonicAngular(), | ||
provideRouter(appRoutes) | ||
], | ||
}; |
7 changes: 3 additions & 4 deletions
7
...c-angular/src/generators/application/files/tabs-standalone/src/app/app.routes.ts.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { NgModule } from '@angular/core'; | ||
import {Routes} from '@angular/router'; | ||
import { Routes } from '@angular/router'; | ||
|
||
export const appRoutes: Routes = [ | ||
{ | ||
path: '', | ||
loadChildren: () => import('./tabs/tabs.routes').then(r => r.routes) | ||
} | ||
loadChildren: () => import('./tabs/tabs.routes').then((m) => m.routes), | ||
}, | ||
]; |
12 changes: 12 additions & 0 deletions
12
...files/tabs-standalone/src/app/explore-container/explore-container.component.html.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div id="container"> | ||
<strong>{{ name }}</strong> | ||
<p> | ||
Explore | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://ionicframework.com/docs/components" | ||
>UI Components</a | ||
> | ||
</p> | ||
</div> |
27 changes: 27 additions & 0 deletions
27
...files/tabs-standalone/src/app/explore-container/explore-container.component.scss.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#container { | ||
text-align: center; | ||
|
||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
} | ||
|
||
#container strong { | ||
font-size: 20px; | ||
line-height: 26px; | ||
} | ||
|
||
#container p { | ||
font-size: 16px; | ||
line-height: 22px; | ||
|
||
color: #8c8c8c; | ||
|
||
margin: 0; | ||
} | ||
|
||
#container a { | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.