lincd-cli 0.2.32 → 0.2.36
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/defaults/app-static/capacitor.config.ts +89 -1
- package/defaults/app-with-backend/src/layout/Header.tsx +4 -2
- package/defaults/app-with-backend/src/routes.tsx +2 -0
- package/lib/cli-methods.js +891 -1093
- package/lib/cli.js +28 -28
- package/lib/config-grunt.js +47 -65
- package/lib/config-webpack.js +87 -146
- package/lib/index.js +9 -6
- package/lib/interfaces.js +1 -1
- package/lib/plugins/declaration-plugin.js +40 -51
- package/lib/plugins/externalise-modules.js +15 -40
- package/lib/plugins/watch-run.js +10 -13
- package/lib/utils.js +77 -127
- package/package.json +1 -1
|
@@ -4,7 +4,95 @@ const config: CapacitorConfig = {
|
|
|
4
4
|
appId: 'com.mydomain.FILL_IN_YOUR_OWN',
|
|
5
5
|
appName: 'FILL_IN_YOUR_OWN',
|
|
6
6
|
webDir: 'frontend/web',
|
|
7
|
-
|
|
7
|
+
server: {
|
|
8
|
+
allowNavigation: ['DOMAIN', 'APP_DOMAIN'],
|
|
9
|
+
},
|
|
10
|
+
bundledWebRuntime: false,
|
|
11
|
+
//Add or remove plugins that you need. Here is a starter list
|
|
12
|
+
plugins: {
|
|
13
|
+
CapacitorHttp: {
|
|
14
|
+
enabled: true,
|
|
15
|
+
},
|
|
16
|
+
FirebaseMessaging: {
|
|
17
|
+
presentationOptions: ['badge', 'sound', 'alert'],
|
|
18
|
+
},
|
|
19
|
+
GoogleAuth: {
|
|
20
|
+
scopes: ['profile', 'email'],
|
|
21
|
+
//self created production web client
|
|
22
|
+
clientId: '734627482469-37q563qta2jt6bmhksemmvco8si0pmai.apps.googleusercontent.com',
|
|
23
|
+
//For these lines use the auto generated web client "Web client (auto created by Google Service)"
|
|
24
|
+
serverClientId: '580968717451-68kpj51ulab8q7drbd3sr7imodai81lp.apps.googleusercontent.com',
|
|
25
|
+
androidClientId: '580968717451-68kpj51ulab8q7drbd3sr7imodai81lp.apps.googleusercontent.com',
|
|
26
|
+
iosClientId: '580968717451-aoj80o3e8qfjlmbrgabf916mfk4t3ntr.apps.googleusercontent.com',
|
|
27
|
+
forceCodeForRefreshToken: true,
|
|
28
|
+
},
|
|
29
|
+
SplashScreen: {
|
|
30
|
+
launchShowDuration: 400,
|
|
31
|
+
launchAutoHide: true,
|
|
32
|
+
// launchFadeOutDuration: 500,
|
|
33
|
+
backgroundColor: '#F7E5FF',
|
|
34
|
+
androidSplashResourceName: 'splash',
|
|
35
|
+
// androidScaleType: 'CENTER',
|
|
36
|
+
showSpinner: false,
|
|
37
|
+
// androidSpinnerStyle: 'large',
|
|
38
|
+
// iosSpinnerStyle: 'small',
|
|
39
|
+
// spinnerColor: '#999999',
|
|
40
|
+
splashFullScreen: true,
|
|
41
|
+
splashImmersive: true,
|
|
42
|
+
// layoutName: 'launch_screen',
|
|
43
|
+
// useDialog: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default config;
|
|
49
|
+
|
|
50
|
+
import {CapacitorConfig} from '@capacitor/cli';
|
|
51
|
+
|
|
52
|
+
const config: CapacitorConfig = {
|
|
53
|
+
appId: 'com.spiritualplaymates.app',
|
|
54
|
+
appName: 'Spiritual Playmates',
|
|
55
|
+
webDir: 'frontend/web',
|
|
56
|
+
server: {
|
|
57
|
+
allowNavigation: ['spiritualplaymates.com', 'app.spiritualplaymates.com', 'http://reborn-pro.local:4000'],
|
|
58
|
+
},
|
|
59
|
+
cordova: {},
|
|
60
|
+
plugins: {
|
|
61
|
+
FirebaseMessaging: {
|
|
62
|
+
presentationOptions: ['badge', 'sound', 'alert'],
|
|
63
|
+
},
|
|
64
|
+
GoogleAuth: {
|
|
65
|
+
scopes: ['profile', 'email'],
|
|
66
|
+
//self created production web client
|
|
67
|
+
clientId: '734627482469-37q563qta2jt6bmhksemmvco8si0pmai.apps.googleusercontent.com',
|
|
68
|
+
serverClientId: '580968717451-68kpj51ulab8q7drbd3sr7imodai81lp.apps.googleusercontent.com',
|
|
69
|
+
//auto generated web client
|
|
70
|
+
//clientId: '580968717451-68kpj51ulab8q7drbd3sr7imodai81lp.apps.googleusercontent.com ',
|
|
71
|
+
androidClientId: '580968717451-68kpj51ulab8q7drbd3sr7imodai81lp.apps.googleusercontent.com',
|
|
72
|
+
|
|
73
|
+
iosClientId: '580968717451-aoj80o3e8qfjlmbrgabf916mfk4t3ntr.apps.googleusercontent.com',
|
|
74
|
+
forceCodeForRefreshToken: true,
|
|
75
|
+
},
|
|
76
|
+
CapacitorHttp: {
|
|
77
|
+
enabled: true,
|
|
78
|
+
},
|
|
79
|
+
SplashScreen: {
|
|
80
|
+
launchShowDuration: 400,
|
|
81
|
+
launchAutoHide: true,
|
|
82
|
+
// launchFadeOutDuration: 500,
|
|
83
|
+
backgroundColor: '#F7E5FF',
|
|
84
|
+
androidSplashResourceName: 'splash',
|
|
85
|
+
// androidScaleType: 'CENTER',
|
|
86
|
+
showSpinner: false,
|
|
87
|
+
// androidSpinnerStyle: 'large',
|
|
88
|
+
// iosSpinnerStyle: 'small',
|
|
89
|
+
// spinnerColor: '#999999',
|
|
90
|
+
splashFullScreen: true,
|
|
91
|
+
splashImmersive: true,
|
|
92
|
+
// layoutName: 'launch_screen',
|
|
93
|
+
// useDialog: true,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
8
96
|
};
|
|
9
97
|
|
|
10
98
|
export default config;
|
|
@@ -2,14 +2,16 @@ import {Link} from 'react-router-dom';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import style from './Header.scss.json';
|
|
4
4
|
import './Header.scss';
|
|
5
|
+
import {ROUTES} from '../routes';
|
|
5
6
|
|
|
6
7
|
export function Header() {
|
|
7
8
|
return (
|
|
8
9
|
<header className={style.header}>
|
|
9
10
|
<h1>${name}</h1>
|
|
10
11
|
<nav className={style.menu}>
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
{Object.keys(ROUTES).map(key => {
|
|
13
|
+
return <Link key={key} to={ROUTES[key].path}>{ROUTES[key].label || key}</Link>
|
|
14
|
+
})}
|
|
13
15
|
</nav>
|
|
14
16
|
</header>
|
|
15
17
|
);
|
|
@@ -10,10 +10,12 @@ export const ROUTES = {
|
|
|
10
10
|
path: '/',
|
|
11
11
|
component: lazy(() => import('./pages/Home' /* webpackPrefetch: true */)),
|
|
12
12
|
requireAuth: true,
|
|
13
|
+
label:"Home",
|
|
13
14
|
},
|
|
14
15
|
page1: {
|
|
15
16
|
path: '/page1',
|
|
16
17
|
component: lazy(() => import('./pages/Page1' /* webpackPrefetch: true */)),
|
|
18
|
+
label:"Page 1",
|
|
17
19
|
},
|
|
18
20
|
};
|
|
19
21
|
|