create-ts-vite-project 0.5.0 → 0.5.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/.gitignore +1 -1
- package/package.json +1 -1
- package/template/capacitor/capacitor.config.ts +11 -11
- package/template/common/eslint.config.js +3 -0
- package/template/common/tsconfig.json +0 -1
- package/template/electron-builder/electron-builder.config.js +1 -1
- package/template/electron-forge/forge.config.js +1 -1
package/.gitignore
CHANGED
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { CapacitorConfig } from '@capacitor/cli';
|
|
2
|
+
|
|
2
3
|
import packageJson from './package.json' with { type: 'json' };
|
|
3
4
|
|
|
4
5
|
const author = packageJson.author?.name || packageJson.author;
|
|
5
|
-
const name
|
|
6
|
-
const productName
|
|
7
|
-
const version = packageJson.version;
|
|
6
|
+
const name = packageJson.name.replaceAll('-', '_');
|
|
7
|
+
const productName = packageJson.productName;
|
|
8
8
|
|
|
9
9
|
const config: CapacitorConfig = {
|
|
10
10
|
appId: `com.${author}.${name}`,
|
|
11
11
|
appName: `${productName}`,
|
|
12
12
|
webDir: 'dist',
|
|
13
13
|
android: {
|
|
14
|
-
path:
|
|
14
|
+
path: 'build/capacitor/android',
|
|
15
15
|
},
|
|
16
16
|
ios: {
|
|
17
|
-
path:
|
|
17
|
+
path: 'build/capacitor/ios',
|
|
18
18
|
},
|
|
19
19
|
plugins: {
|
|
20
20
|
SplashScreen: {
|
|
21
21
|
launchShowDuration: 3000,
|
|
22
22
|
launchAutoHide: true,
|
|
23
|
-
backgroundColor:
|
|
24
|
-
androidSplashResourceName:
|
|
25
|
-
androidScaleType:
|
|
23
|
+
backgroundColor: '#ffffffff',
|
|
24
|
+
androidSplashResourceName: 'splash',
|
|
25
|
+
androidScaleType: 'CENTER_CROP',
|
|
26
26
|
showSpinner: false,
|
|
27
|
-
androidSpinnerStyle:
|
|
28
|
-
iosSpinnerStyle:
|
|
29
|
-
spinnerColor:
|
|
27
|
+
androidSpinnerStyle: 'large',
|
|
28
|
+
iosSpinnerStyle: 'small',
|
|
29
|
+
spinnerColor: '#999999',
|
|
30
30
|
splashFullScreen: true,
|
|
31
31
|
splashImmersive: true,
|
|
32
32
|
},
|
|
@@ -6,7 +6,7 @@ const author = packageJson.author?.name || packageJson.author;
|
|
|
6
6
|
const name = packageJson.name.replaceAll('-', '_');
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
outDir: 'build/electron-forge
|
|
9
|
+
outDir: 'build/electron-forge',
|
|
10
10
|
packagerConfig: {
|
|
11
11
|
appBundleId: `com.${author}.${name}`,
|
|
12
12
|
icon: 'public/app.ico',
|