lincd-cli 0.2.34 → 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.
@@ -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
- bundledWebRuntime: false
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
- <Link to="/">Home</Link>
12
- <Link to="/page1">Page 1</Link>
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
 
@@ -1440,6 +1440,18 @@ var executeCommandForEachPackage = function (packages, command, filterMethod, fi
1440
1440
  return p;
1441
1441
  };
1442
1442
  exports.executeCommandForEachPackage = executeCommandForEachPackage;
1443
+ var gitIgnore = function (...entries) {
1444
+ //add each entry to the .gitignore file
1445
+ let gitIgnorePath = path_1.default.resolve(process.cwd(), '.gitignore');
1446
+ addLinesToFile(gitIgnorePath, entries);
1447
+ };
1448
+ var addLinesToFile = function (filePath, entries) {
1449
+ let fileContents = fs_extra_1.default.readFileSync(filePath, { encoding: 'utf8' });
1450
+ entries.forEach(entry => {
1451
+ fileContents += '\n' + entry;
1452
+ });
1453
+ fs_extra_1.default.writeFileSync(filePath, fileContents);
1454
+ };
1443
1455
  var addCapacitor = function (basePath = process.cwd()) {
1444
1456
  return __awaiter(this, void 0, void 0, function* () {
1445
1457
  let targetFolder = ensureFolderExists(basePath);
@@ -1458,6 +1470,7 @@ var addCapacitor = function (basePath = process.cwd()) {
1458
1470
  };
1459
1471
  fs_extra_1.default.writeFile(envCmdPath, JSON.stringify(envCmd, null, 2));
1460
1472
  log('Edited .env-cmdrc.json');
1473
+ gitIgnore('android/app/build', 'android/**/capacitor.build.gradle', 'ios/App/App/public', 'ios/App/Podfile');
1461
1474
  //update package.json scripts
1462
1475
  let pack = (0, utils_1.getPackageJSON)(basePath);
1463
1476
  pack.scripts['build-static'] = 'env-cmd -e static-dev node frontend/scripts/build.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lincd-cli",
3
- "version": "0.2.34",
3
+ "version": "0.2.36",
4
4
  "description": "Command line tools for the lincd.js library",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {