@nativescript/template-blank-svelte 8.9.0 → 8.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ android {
9
9
  // ndkVersion ""
10
10
 
11
11
  defaultConfig {
12
- minSdkVersion 23
12
+ minSdkVersion 24
13
13
  targetSdkVersion 34
14
14
 
15
15
  // Version Information
@@ -4,3 +4,4 @@
4
4
  // To build for device with XCode you need to specify your development team.
5
5
  // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6
6
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7
+ IPHONEOS_DEPLOYMENT_TARGET = 16.0;
package/app/app.css CHANGED
@@ -1,7 +1,4 @@
1
- @import '@nativescript/theme/css/core.css';
2
- @import '@nativescript/theme/css/default.css';
3
-
4
- .fab {
1
+ .fab {
5
2
  font-family: 'Font Awesome 5 Brands', 'fa-brands-400';
6
3
  font-weight: 400;
7
4
  }
@@ -15,4 +12,3 @@
15
12
  font-family: 'Font Awesome 5 Free', 'fa-regular-400';
16
13
  font-weight: 400;
17
14
  }
18
-
package/app/app.ts CHANGED
@@ -4,7 +4,7 @@ You can use this file to perform app-level initialization, but the primary
4
4
  purpose of the file is to pass control to the app’s first page.
5
5
  */
6
6
 
7
- import { svelteNativeNoFrame } from 'svelte-native'
7
+ import { svelteNativeNoFrame } from '@nativescript-community/svelte-native'
8
8
  import App from './App.svelte'
9
9
 
10
10
  svelteNativeNoFrame(App, {})
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "app/app.ts",
4
4
  "displayName": "Blank Svelte",
5
5
  "templateType": "App template",
6
- "version": "8.9.0",
6
+ "version": "8.9.2",
7
7
  "description": "Blank template for NativeScript apps using Svelte",
8
8
  "author": "NativeScript Team <oss@nativescript.org>",
9
9
  "license": "Apache-2.0",
@@ -42,17 +42,16 @@
42
42
  "url": "https://github.com/NativeScript/NativeScript/issues"
43
43
  },
44
44
  "dependencies": {
45
- "@nativescript/core": "~8.9.0",
46
- "@nativescript/theme": "^3.1.0",
47
- "svelte-native": "~1.0.9"
45
+ "@nativescript-community/svelte-native": "~1.0.29",
46
+ "@nativescript/core": "8.9.7"
48
47
  },
49
48
  "devDependencies": {
50
- "@nativescript/types": "~8.9.0",
51
- "@nativescript/webpack": "~5.0.0",
52
- "svelte": "~4.2.2",
53
- "svelte-loader": "^3.1.9",
54
- "svelte-native-preprocessor": "^1.0.0",
55
- "svelte-preprocess": "^5.0.4",
56
- "typescript": "~5.4.0"
49
+ "@nativescript-community/svelte-native-preprocessor": "^1.0.1",
50
+ "@nativescript/types": "~8.9.1",
51
+ "@nativescript/webpack": "~5.0.24",
52
+ "svelte": "~4.2.20",
53
+ "svelte-loader": "^3.2.4",
54
+ "svelte-preprocess": "^6.0.3",
55
+ "typescript": "~5.9.2"
57
56
  }
58
57
  }
package/svelte.config.js CHANGED
@@ -1,9 +1,33 @@
1
1
  const sveltePreprocess = require('svelte-preprocess')
2
- const svelteNativePreprocessor = require('svelte-native-preprocessor')
2
+ const svelteNativePreprocessor = require('@nativescript-community/svelte-native-preprocessor')
3
3
 
4
+ // this can be called either through svelte-loader where we want either __ANDROID__ or __IOS__ to be defined but not both
5
+ // or through svelte-check where we want both so everything is checked
6
+ const webpack_env = process.env['NATIVESCRIPT_WEBPACK_ENV']
7
+ ? JSON.parse(process.env['NATIVESCRIPT_WEBPACK_ENV'])
8
+ : {
9
+ android: true,
10
+ ios: true,
11
+ }
4
12
  module.exports = {
5
13
  compilerOptions: {
6
- namespace: "foreign"
14
+ namespace: 'foreign',
7
15
  },
8
- preprocess: [ sveltePreprocess(), svelteNativePreprocessor() ]
9
- }
16
+ preprocess: [
17
+ sveltePreprocess({
18
+ replace: [
19
+ [/__ANDROID__/g, !!webpack_env.android],
20
+ [/__IOS__/g, !!webpack_env.ios],
21
+ ],
22
+ typescript: {
23
+ compilerOptions: {
24
+ verbatimModuleSyntax: true,
25
+ target: 'es2020',
26
+ },
27
+ },
28
+ }),
29
+ // if you want bind:text="{email}" to be transformed to text="{email}" on:textChanged="{e => email = e.value}"
30
+ // enable svelteNativePreprocessor. Keep in mind that it is pretty slow
31
+ /* svelteNativePreprocessor() */
32
+ ],
33
+ }