@nativescript/template-blank-svelte 8.9.1 → 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.
- package/App_Resources/Android/app.gradle +1 -1
- package/App_Resources/iOS/build.xcconfig +1 -0
- package/app/app.css +1 -5
- package/package.json +10 -11
- package/svelte.config.js +28 -4
package/app/app.css
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
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/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.
|
|
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/
|
|
46
|
-
"@nativescript/
|
|
47
|
-
"@nativescript-community/svelte-native": "~1.0.29"
|
|
45
|
+
"@nativescript-community/svelte-native": "~1.0.29",
|
|
46
|
+
"@nativescript/core": "8.9.7"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@nativescript/
|
|
51
|
-
"@nativescript/
|
|
52
|
-
"
|
|
53
|
-
"svelte
|
|
54
|
-
"svelte-
|
|
55
|
-
"svelte-preprocess": "^
|
|
56
|
-
"typescript": "~5.
|
|
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:
|
|
14
|
+
namespace: 'foreign',
|
|
7
15
|
},
|
|
8
|
-
preprocess: [
|
|
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
|
+
}
|