Skip to content

Commit 457dc5a

Browse files
TommertomTommertom
Tommertom
authored and
Tommertom
committed
Updated create scripts
1 parent bed7029 commit 457dc5a

File tree

8 files changed

+199
-35
lines changed

8 files changed

+199
-35
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Change Log Ionic-Svelte-NPM
22
All notable changes to this project will be documented in this file.
33

4-
## 0.5.71
5-
- Added platforms back
4+
## 0.5.73 create scripts
5+
- bump create-svelte dependency to latest
6+
7+
## 0.5.71/72
8+
- Added platforms back (typescript)
69

710
## 0.5.70
811
- Ionic core 6.6.0 and create scripts locked to latest of 6 (arrival of 7)

demo-app/src/lib/components/NavHome.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@
6565
button
6666
on:click={() => {
6767
showDetail(tech);
68-
}}
69-
>
68+
}}>
7069
<ion-icon icon={allIonicIcons[tech.icon]} style="color: {tech.color};" />
7170
<ion-label>
7271
<h3>{tech.title}</h3>

index.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,28 @@ export {
5050
toastController
5151
} from "@ionic/core";
5252

53+
// platforms
54+
declare const PLATFORMS_MAP: {
55+
[key: string]: boolean;
56+
};
57+
58+
declare type Platforms = keyof typeof PLATFORMS_MAP;
59+
60+
export function getPlatforms(win?: any): string[];
61+
export function setupPlatforms(win: any);
62+
63+
interface IsPlatformSignature {
64+
(plt: Platforms): boolean;
65+
(win: Window, plt: Platforms): boolean;
66+
}
67+
export function isPlatform(
68+
winOrPlatform: Window | Platforms | undefined,
69+
platform?: Platforms
70+
): IsPlatformSignature;
71+
72+
export function testUserAgent(win: Window, expr: RegExp);
73+
74+
5375
// not exported by @ionic/core
5476
export type NavigationHookResult = boolean | NavigationHookOptions;
5577
export interface NavigationHookOptions {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-svelte",
3-
"version": "0.5.71",
3+
"version": "0.5.73",
44
"private": false,
55
"homepage": "https://ionicsvelte.firebaseapp.com",
66
"repository": {

packages/create-capacitor-svelte-app/package-lock.json

Lines changed: 83 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/create-capacitor-svelte-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-capacitor-svelte-app",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"description": "Use this CLI app to setup a new Capacitor application in a new SvelteKit project.",
55
"keywords": [
66
"capacitor",
@@ -38,7 +38,7 @@
3838
"start": "node dist/index.js"
3939
},
4040
"dependencies": {
41-
"create-svelte": "^2.0.0-next.193",
41+
"create-svelte": "^3.2.0",
4242
"fs-extra": "^10.1.0",
4343
"ip": "^1.1.8",
4444
"kleur": "^4.1.5",

packages/create-ionic-svelte-app/package-lock.json

Lines changed: 83 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)