shipthis 0.1.16 → 0.1.17
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/README.md +4 -1
- package/assets/markdown/create-or-import-keystore.md +1 -1
- package/dist/{AppleBundleIdDetails-DxWVnxa5.js → AppleBundleIdDetails-D41xptO8.js} +1 -1
- package/dist/{Command-zfJ7qIJI.js → Command-DdJBwDHu.js} +18 -5
- package/dist/{CommandGame-DVsNreSF.js → CommandGame-ClEQvI36.js} +1 -1
- package/dist/{Create-DdF29mIS.js → Create-C-7pvYVd.js} +1 -1
- package/dist/{Import-D8ik724M.js → Import-BfcHPxoi.js} +1 -1
- package/dist/{JobProgress-D1Pe4YJc.js → JobProgress-CICU69cf.js} +2 -2
- package/dist/{JobStatusTable-D-daiV-I.js → JobStatusTable-CpPlQBqR.js} +2 -2
- package/dist/commands/apple/apiKey/create.js +1 -1
- package/dist/commands/apple/apiKey/export.js +1 -1
- package/dist/commands/apple/apiKey/import.js +1 -1
- package/dist/commands/apple/apiKey/status.js +1 -1
- package/dist/commands/apple/certificate/create.js +1 -1
- package/dist/commands/apple/certificate/export.js +1 -1
- package/dist/commands/apple/certificate/import.js +1 -1
- package/dist/commands/apple/certificate/status.js +1 -1
- package/dist/commands/apple/status.js +1 -1
- package/dist/commands/game/android/apiKey/connect.js +3 -3
- package/dist/commands/game/android/apiKey/create.js +3 -3
- package/dist/commands/game/android/apiKey/export.js +1 -1
- package/dist/commands/game/android/apiKey/import.js +1 -1
- package/dist/commands/game/android/apiKey/status.js +1 -1
- package/dist/commands/game/android/keyStore/create.js +3 -3
- package/dist/commands/game/android/keyStore/export.js +1 -1
- package/dist/commands/game/android/keyStore/import.js +3 -3
- package/dist/commands/game/android/keyStore/status.js +1 -1
- package/dist/commands/game/android/status.js +1 -1
- package/dist/commands/game/build/download.js +1 -1
- package/dist/commands/game/build/list.js +2 -2
- package/dist/commands/game/details.js +1 -1
- package/dist/commands/game/ios/app/addTester.js +1 -1
- package/dist/commands/game/ios/app/create.js +1 -1
- package/dist/commands/game/ios/app/status.js +2 -2
- package/dist/commands/game/ios/app/sync.js +1 -1
- package/dist/commands/game/ios/profile/create.js +1 -1
- package/dist/commands/game/ios/profile/export.js +1 -1
- package/dist/commands/game/ios/profile/import.js +1 -1
- package/dist/commands/game/ios/profile/status.js +1 -1
- package/dist/commands/game/ios/status.js +2 -2
- package/dist/commands/game/job/list.js +1 -1
- package/dist/commands/game/job/status.js +3 -3
- package/dist/commands/game/list.js +1 -1
- package/dist/commands/game/ship.js +5 -5
- package/dist/commands/game/status.js +1 -1
- package/dist/commands/game/wizard.js +74 -11
- package/dist/commands/status.js +1 -1
- package/dist/{index-BVvcTBnj.js → index-DlvM24jQ.js} +1 -1
- package/dist/{index-Cx_2qTdS.js → index-_Lan5Hud.js} +1 -1
- package/dist/{useJobWatching-DS0qHqPA.js → useJobWatching-W6FYJEPP.js} +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +290 -290
- package/package.json +1 -1
- package/docs/assets/ship-output.gif +0 -0
- package/docs/assets/ship-outputx0.5.gif +0 -0
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { render } from 'ink';
|
|
3
3
|
import { Flags } from '@oclif/core';
|
|
4
4
|
import 'react';
|
|
5
|
-
import { C as Command } from '../../Command-
|
|
5
|
+
import { C as Command } from '../../Command-DdJBwDHu.js';
|
|
6
6
|
import { B as BaseAuthenticatedCommand, I as getProject, P as Platform, k as getProjectPlatformProgress, b as getShortDate } from '../../index-Dhx6FAHt.js';
|
|
7
7
|
import 'ink-spinner';
|
|
8
8
|
import '@inkjs/ui';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Args } from '@oclif/core';
|
|
3
|
-
import { Text, Box, useInput, render } from 'ink';
|
|
3
|
+
import { Text, Box, useInput, useFocus, measureElement, render } from 'ink';
|
|
4
4
|
import { p as getAuthedHeaders, q as API_URL, L as castArrayObjectDates, a1 as queryClient, a8 as updateProject, u as getGodotVersion, t as GameEngine, v as createProject, w as DEFAULT_IGNORED_FILES_GLOBS, x as DEFAULT_SHIPPED_FILES_GLOBS, P as Platform, J as JobStatus, Y as WEB_URL, I as getProject, C as CredentialsType, R as getGoogleStatus, B as BaseAuthenticatedCommand, j as isCWDGodotGame } from '../../index-Dhx6FAHt.js';
|
|
5
|
-
import React, { useState, useContext, useEffect, useRef } from 'react';
|
|
6
|
-
import { b as CommandContext, a as GameContext, M as Markdown, c as useBuilds, q as queryBuilds, G as GameProvider, e as CreateGooglePlayGame, C as Command } from '../../Command-
|
|
5
|
+
import React, { useState, useContext, useEffect, useRef, useReducer } from 'react';
|
|
6
|
+
import { b as CommandContext, a as GameContext, M as Markdown, c as useBuilds, q as queryBuilds, G as GameProvider, e as CreateGooglePlayGame, C as Command } from '../../Command-DdJBwDHu.js';
|
|
7
7
|
import Spinner from 'ink-spinner';
|
|
8
8
|
import { Alert, TextInput } from '@inkjs/ui';
|
|
9
9
|
import axios from 'axios';
|
|
@@ -25,12 +25,12 @@ import 'open';
|
|
|
25
25
|
import 'qrcode';
|
|
26
26
|
import 'string-length';
|
|
27
27
|
import 'strip-ansi';
|
|
28
|
-
import { C as CreateKeystore } from '../../Create-
|
|
29
|
-
import { I as ImportKeystore } from '../../Import-
|
|
30
|
-
import { C as ConnectGoogle } from '../../index-
|
|
31
|
-
import { C as CreateServiceAccountKey } from '../../index-
|
|
28
|
+
import { C as CreateKeystore } from '../../Create-C-7pvYVd.js';
|
|
29
|
+
import { I as ImportKeystore } from '../../Import-BfcHPxoi.js';
|
|
30
|
+
import { C as ConnectGoogle } from '../../index-DlvM24jQ.js';
|
|
31
|
+
import { C as CreateServiceAccountKey } from '../../index-_Lan5Hud.js';
|
|
32
32
|
import { c as cacheKeys, f as fetchKeyTestResult, K as KeyTestStatus, a as KeyTestError } from '../../useAndroidServiceAccountTestResult-L4oozjag.js';
|
|
33
|
-
import { u as useShip, J as JobProgress } from '../../JobProgress-
|
|
33
|
+
import { u as useShip, J as JobProgress } from '../../JobProgress-CICU69cf.js';
|
|
34
34
|
import { a as getProjectCredentials } from '../../index-B4v66AKo.js';
|
|
35
35
|
import { T as Title } from '../../Title-BCQtayg6.js';
|
|
36
36
|
import 'path';
|
|
@@ -46,7 +46,7 @@ import '../../useWebSocket-ZEZvtpT_.js';
|
|
|
46
46
|
import '../../useProjectCredentials-CI_AoXmH.js';
|
|
47
47
|
import '../../ProgressSpinner-6pw1T8Iw.js';
|
|
48
48
|
import '../../git-DREGq-jc.js';
|
|
49
|
-
import '../../useJobWatching-
|
|
49
|
+
import '../../useJobWatching-W6FYJEPP.js';
|
|
50
50
|
|
|
51
51
|
async function queryJobs({ projectId, ...pageAndSortParams }) {
|
|
52
52
|
try {
|
|
@@ -575,7 +575,7 @@ const AndroidWizard = (props) => {
|
|
|
575
575
|
iosSetupURL: new URL("/docs/ios", WEB_URL).toString(),
|
|
576
576
|
docsURL: new URL("/docs", WEB_URL).toString()
|
|
577
577
|
};
|
|
578
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ jsx(GameProvider, { children: /* @__PURE__ */ jsxs(ScrollArea, { height: process.stdout.rows || 24, children: [
|
|
579
579
|
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
580
580
|
/* @__PURE__ */ jsx(Box, { marginBottom: 1, children: /* @__PURE__ */ jsx(Title, { children: "ShipThis Android Wizard" }) }),
|
|
581
581
|
stepStatuses && /* @__PURE__ */ jsx(StepStatusTable, { stepStatuses })
|
|
@@ -591,8 +591,71 @@ const AndroidWizard = (props) => {
|
|
|
591
591
|
}
|
|
592
592
|
),
|
|
593
593
|
showSuccess && /* @__PURE__ */ jsx(Box, { marginTop: 1, children: /* @__PURE__ */ jsx(Markdown, { filename: "android-success.md", templateVars }) })
|
|
594
|
-
] });
|
|
594
|
+
] }) });
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
const reducer = (state, action) => {
|
|
598
|
+
switch (action.type) {
|
|
599
|
+
case "SET_INNER_HEIGHT":
|
|
600
|
+
return {
|
|
601
|
+
...state,
|
|
602
|
+
innerHeight: action.innerHeight
|
|
603
|
+
};
|
|
604
|
+
case "SET_HEIGHT":
|
|
605
|
+
return {
|
|
606
|
+
...state,
|
|
607
|
+
height: action.height
|
|
608
|
+
};
|
|
609
|
+
case "SCROLL_DOWN":
|
|
610
|
+
return {
|
|
611
|
+
...state,
|
|
612
|
+
scrollTop: Math.min(
|
|
613
|
+
state.innerHeight <= state.height ? 0 : state.innerHeight - state.height,
|
|
614
|
+
state.scrollTop + 1
|
|
615
|
+
)
|
|
616
|
+
};
|
|
617
|
+
case "SCROLL_UP":
|
|
618
|
+
return {
|
|
619
|
+
...state,
|
|
620
|
+
scrollTop: Math.max(0, state.scrollTop - 1)
|
|
621
|
+
};
|
|
622
|
+
default:
|
|
623
|
+
return state;
|
|
624
|
+
}
|
|
595
625
|
};
|
|
626
|
+
function ScrollArea({ height, children }) {
|
|
627
|
+
useFocus();
|
|
628
|
+
const [state, dispatch] = useReducer(reducer, {
|
|
629
|
+
height,
|
|
630
|
+
scrollTop: 0,
|
|
631
|
+
innerHeight: 0
|
|
632
|
+
});
|
|
633
|
+
const innerRef = useRef(null);
|
|
634
|
+
useEffect(() => {
|
|
635
|
+
dispatch({ type: "SET_HEIGHT", height });
|
|
636
|
+
}, [height]);
|
|
637
|
+
useEffect(() => {
|
|
638
|
+
if (!innerRef.current) return;
|
|
639
|
+
const dimensions = measureElement(innerRef.current);
|
|
640
|
+
dispatch({
|
|
641
|
+
type: "SET_INNER_HEIGHT",
|
|
642
|
+
innerHeight: dimensions.height
|
|
643
|
+
});
|
|
644
|
+
}, []);
|
|
645
|
+
useInput((_input, key) => {
|
|
646
|
+
if (key.downArrow) {
|
|
647
|
+
dispatch({
|
|
648
|
+
type: "SCROLL_DOWN"
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
if (key.upArrow) {
|
|
652
|
+
dispatch({
|
|
653
|
+
type: "SCROLL_UP"
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
return /* @__PURE__ */ jsx(Box, { height, flexDirection: "column", flexGrow: 1, overflow: "hidden", children: /* @__PURE__ */ jsx(Box, { ref: innerRef, flexShrink: 0, flexDirection: "column", marginTop: -state.scrollTop, children }) });
|
|
658
|
+
}
|
|
596
659
|
|
|
597
660
|
class GameWizard extends BaseAuthenticatedCommand {
|
|
598
661
|
static args = {
|
package/dist/commands/status.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { render } from 'ink';
|
|
3
3
|
import { V as BaseCommand, j as isCWDGodotGame } from '../index-Dhx6FAHt.js';
|
|
4
4
|
import 'react';
|
|
5
|
-
import { C as Command } from '../Command-
|
|
5
|
+
import { C as Command } from '../Command-DdJBwDHu.js';
|
|
6
6
|
import 'ink-spinner';
|
|
7
7
|
import 'axios';
|
|
8
8
|
import 'crypto-js';
|
|
@@ -21,7 +21,7 @@ import { u as useWebSocket } from './useWebSocket-ZEZvtpT_.js';
|
|
|
21
21
|
import { c as cacheKeys } from './useAndroidServiceAccountTestResult-L4oozjag.js';
|
|
22
22
|
import 'isomorphic-git';
|
|
23
23
|
import '@oclif/core';
|
|
24
|
-
import { a as GameContext, M as Markdown } from './Command-
|
|
24
|
+
import { a as GameContext, M as Markdown } from './Command-DdJBwDHu.js';
|
|
25
25
|
import 'ink-spinner';
|
|
26
26
|
import '@inkjs/ui';
|
|
27
27
|
import 'string-length';
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
3
|
import { useState, useRef, useEffect, useContext } from 'react';
|
|
4
4
|
import Spinner from 'ink-spinner';
|
|
5
|
-
import { a as GameContext } from './Command-
|
|
5
|
+
import { a as GameContext } from './Command-DdJBwDHu.js';
|
|
6
6
|
import { p as getAuthedHeaders, q as API_URL, H as castObjectDates, P as Platform, C as CredentialsType, R as getGoogleStatus } from './index-Dhx6FAHt.js';
|
|
7
7
|
import axios from 'axios';
|
|
8
8
|
import 'crypto-js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useJob } from './Command-
|
|
1
|
+
import { u as useJob } from './Command-DdJBwDHu.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import { u as useWebSocket } from './useWebSocket-ZEZvtpT_.js';
|
|
4
4
|
import { F as castJobDates, H as castObjectDates } from './index-Dhx6FAHt.js';
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shipthis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "shipthis",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.17",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@expo/apple-utils": "2.0.3",
|