arcadible 1.0.23 → 1.0.24
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 +1 -0
- package/bin/arc.js +1 -85
- package/dist/account.js +197 -0
- package/dist/action/build/tool.js +65 -0
- package/dist/action/delete/tool.js +46 -0
- package/dist/action/deploy/rebuilt.js +25 -0
- package/dist/action/deploy/result.js +36 -0
- package/dist/action/deploy/timeout.js +18 -0
- package/dist/action/deploy/tool-git.js +54 -0
- package/dist/action/deploy/tool.js +54 -0
- package/dist/action/deploy/wait.js +104 -0
- package/dist/action/function/tool.js +127 -0
- package/dist/action/game.js +61 -0
- package/dist/action/init/manifest.js +64 -0
- package/dist/action/init/tool-patch.js +15 -0
- package/dist/action/init/tool.js +64 -0
- package/dist/action/inspect/tool.js +13 -0
- package/dist/action/key/tool.js +87 -0
- package/dist/action/login/flow.js +69 -0
- package/dist/action/login/tool.js +8 -0
- package/dist/action/logout/tool.js +8 -0
- package/dist/action/open/tool.js +29 -0
- package/dist/action/pack/limits.js +46 -0
- package/dist/action/pack/tool.js +150 -0
- package/dist/action/pack/unsound.js +51 -0
- package/dist/action/play/tool.js +83 -0
- package/dist/action/predeploy/ac.js +75 -0
- package/dist/action/predeploy/game.js +12 -0
- package/dist/action/predeploy/git.js +151 -0
- package/dist/action/predeploy/pm.js +20 -0
- package/dist/action/predeploy/published.js +54 -0
- package/dist/action/predeploy/secrets.js +35 -0
- package/dist/action/predeploy/tool-git.js +108 -0
- package/dist/action/predeploy/tool.js +16 -0
- package/dist/action/secret/tool.js +91 -0
- package/dist/action/serve/tool.js +249 -0
- package/dist/action/validate/checked.js +28 -0
- package/dist/action/validate/tool.js +56 -0
- package/dist/action/validate/unknown.js +58 -0
- package/dist/action/validate/unsound.js +99 -0
- package/dist/action/whoami/tool.js +7 -0
- package/dist/api.js +160 -0
- package/dist/arc.js +41 -0
- package/dist/cli/argv.js +61 -0
- package/dist/cli/channel.js +29 -0
- package/dist/cli/command.js +163 -0
- package/dist/cli/confirm.js +39 -0
- package/dist/cli/options.js +62 -0
- package/dist/cli/rc.js +103 -0
- package/dist/cli/yargs.js +40 -0
- package/dist/command/build.js +68 -0
- package/dist/command/delete.js +66 -0
- package/dist/command/deploy.js +308 -0
- package/dist/command/function/index.js +17 -0
- package/dist/command/function/pause.js +18 -0
- package/dist/command/function/resume.js +18 -0
- package/dist/command/function/run.js +41 -0
- package/dist/command/function/secret/index.js +15 -0
- package/dist/command/function/secret/list.js +27 -0
- package/dist/command/function/secret/name.js +8 -0
- package/dist/command/function/secret/remove.js +26 -0
- package/dist/command/function/secret/run.js +52 -0
- package/dist/command/function/secret/set.js +48 -0
- package/dist/command/function/status.js +40 -0
- package/dist/command/init.js +128 -0
- package/dist/command/inspect.js +38 -0
- package/dist/command/login.js +108 -0
- package/dist/command/logout.js +24 -0
- package/dist/command/open.js +48 -0
- package/dist/command/pack.js +90 -0
- package/dist/command/play.js +80 -0
- package/dist/command/serve.js +176 -0
- package/dist/command/server/index.js +17 -0
- package/dist/command/server/key/create.js +36 -0
- package/dist/command/server/key/index.js +15 -0
- package/dist/command/server/key/list.js +34 -0
- package/dist/command/server/key/revoke.js +24 -0
- package/dist/command/server/key/run.js +54 -0
- package/dist/command/validate.js +47 -0
- package/dist/command/whoami.js +55 -0
- package/dist/commands.js +93 -0
- package/dist/config/ai.js +2 -0
- package/dist/config/art.js +13 -0
- package/dist/config/audience.js +2 -0
- package/dist/config/code.js +129 -0
- package/dist/config/file.js +13 -0
- package/dist/config/genre.js +19 -0
- package/{src → dist}/config/html.js +2 -7
- package/dist/config/image.js +5 -0
- package/dist/config/input.js +11 -0
- package/dist/config/json.js +23 -0
- package/dist/config/limit.js +14 -0
- package/dist/config/orientation.js +11 -0
- package/dist/config/package.js +8 -0
- package/dist/config/product.js +14 -0
- package/dist/config/template.js +37 -0
- package/dist/config/uri.js +18 -0
- package/dist/config/url.js +11 -0
- package/dist/config/video.js +5 -0
- package/dist/config/visibility.js +2 -0
- package/dist/config/workflow.js +7 -0
- package/dist/parser/env.js +61 -0
- package/dist/parser/given.js +8 -0
- package/dist/parser/manifest.js +45 -0
- package/dist/parser/media.js +57 -0
- package/dist/parser/project.js +129 -0
- package/dist/parser/readme-file.js +44 -0
- package/dist/parser/readme.js +70 -0
- package/dist/parser/sections.js +92 -0
- package/dist/parser/self.js +16 -0
- package/dist/phrase/account.js +35 -0
- package/dist/phrase/common.js +130 -0
- package/dist/phrase/deploy.js +184 -0
- package/dist/phrase/function.js +135 -0
- package/dist/phrase/game.js +27 -0
- package/dist/phrase/index.js +15 -0
- package/dist/phrase/init.js +53 -0
- package/dist/phrase/internal.js +61 -0
- package/dist/phrase/manifest.js +120 -0
- package/dist/phrase/media.js +90 -0
- package/dist/phrase/pack.js +69 -0
- package/dist/phrase/serve.js +84 -0
- package/dist/phrase/server.js +38 -0
- package/dist/runner/bundle.js +95 -0
- package/dist/runner/outbound.js +69 -0
- package/dist/schema/check/game.js +29 -0
- package/dist/schema/check/workflow.js +57 -0
- package/dist/schema/game.js +462 -0
- package/dist/schema/message.js +61 -0
- package/dist/schema/readme.js +27 -0
- package/dist/schema/runner.js +43 -0
- package/dist/schema/server.js +91 -0
- package/dist/schema/workflow.js +99 -0
- package/dist/serve/files.js +39 -0
- package/dist/serve/game.js +172 -0
- package/dist/serve/page.js +490 -0
- package/dist/serve/reload.js +55 -0
- package/dist/serve/remote.js +114 -0
- package/dist/serve/runner.js +296 -0
- package/dist/serve/server.js +163 -0
- package/dist/serve/ticket.js +232 -0
- package/dist/util/bytes.js +16 -0
- package/dist/util/chars.js +19 -0
- package/dist/util/command.js +11 -0
- package/dist/util/delay.js +36 -0
- package/dist/util/doc.js +59 -0
- package/dist/util/error.js +35 -0
- package/dist/util/http.js +13 -0
- package/dist/util/image.js +64 -0
- package/dist/util/links.js +45 -0
- package/dist/util/lockfile.js +17 -0
- package/dist/util/log.js +101 -0
- package/dist/util/md.js +37 -0
- package/dist/util/media.js +27 -0
- package/dist/util/objs.js +29 -0
- package/dist/util/os.js +13 -0
- package/dist/util/output.js +133 -0
- package/dist/util/paths.js +8 -0
- package/dist/util/progress.js +57 -0
- package/dist/util/promise.js +18 -0
- package/dist/util/request.js +91 -0
- package/dist/util/s3.js +67 -0
- package/dist/util/schema.js +151 -0
- package/dist/util/screenshot.js +24 -0
- package/dist/util/shell.js +64 -0
- package/dist/util/size.js +32 -0
- package/dist/util/spinner.js +35 -0
- package/dist/util/strs.js +46 -0
- package/dist/util/table.js +18 -0
- package/dist/util/term.js +21 -0
- package/dist/util/time.js +16 -0
- package/dist/util/toml.js +28 -0
- package/{src → dist}/util/uris.js +8 -14
- package/dist/util/video.js +113 -0
- package/dist/util/zip.js +62 -0
- package/npm-shrinkwrap.json +3256 -0
- package/package.json +41 -39
- package/bin/arc-build.js +0 -139
- package/bin/arc-default.js +0 -65
- package/bin/arc-deploy.js +0 -456
- package/bin/arc-init.js +0 -187
- package/bin/arc-inspect.js +0 -97
- package/bin/arc-login.js +0 -165
- package/bin/arc-logout.js +0 -75
- package/bin/arc-open.js +0 -104
- package/bin/arc-pack.js +0 -146
- package/bin/arc-play.js +0 -140
- package/bin/arc-serve.js +0 -214
- package/bin/arc-validate.js +0 -112
- package/bin/arc-whoami.js +0 -119
- package/src/account.js +0 -249
- package/src/action/build/tool.js +0 -80
- package/src/action/deploy/tool-git.js +0 -90
- package/src/action/deploy/tool.js +0 -88
- package/src/action/deploy/wait.js +0 -151
- package/src/action/init/manifest.js +0 -83
- package/src/action/init/tool-patch.js +0 -32
- package/src/action/init/tool.js +0 -97
- package/src/action/inspect/tool.js +0 -26
- package/src/action/login/flow.js +0 -101
- package/src/action/login/tool.js +0 -16
- package/src/action/logout/tool.js +0 -15
- package/src/action/open/tool.js +0 -38
- package/src/action/pack/limits.js +0 -51
- package/src/action/pack/tool.js +0 -171
- package/src/action/pack/unsound.js +0 -69
- package/src/action/play/tool.js +0 -109
- package/src/action/predeploy/ac.js +0 -112
- package/src/action/predeploy/git.js +0 -223
- package/src/action/predeploy/pm.js +0 -37
- package/src/action/predeploy/published.js +0 -82
- package/src/action/predeploy/tool-git.js +0 -154
- package/src/action/predeploy/tool.js +0 -29
- package/src/action/serve/tool.js +0 -209
- package/src/action/validate/checked.js +0 -37
- package/src/action/validate/tool.js +0 -67
- package/src/action/validate/unknown.js +0 -86
- package/src/action/validate/unsound.js +0 -138
- package/src/action/whoami/tool.js +0 -15
- package/src/api.js +0 -163
- package/src/cli/build.js +0 -15
- package/src/cli/deploy.js +0 -21
- package/src/cli/init.js +0 -17
- package/src/cli/inspect.js +0 -15
- package/src/cli/login.js +0 -15
- package/src/cli/logout.js +0 -15
- package/src/cli/open.js +0 -15
- package/src/cli/pack.js +0 -15
- package/src/cli/play.js +0 -15
- package/src/cli/predeploy.js +0 -21
- package/src/cli/serve.js +0 -15
- package/src/cli/validate.js +0 -15
- package/src/cli/whoami.js +0 -15
- package/src/config/ai.js +0 -5
- package/src/config/art.js +0 -16
- package/src/config/audience.js +0 -5
- package/src/config/code.js +0 -142
- package/src/config/file.js +0 -23
- package/src/config/genre.js +0 -22
- package/src/config/image.js +0 -7
- package/src/config/input.js +0 -14
- package/src/config/limit.js +0 -21
- package/src/config/orientation.js +0 -14
- package/src/config/package.js +0 -5
- package/src/config/product.js +0 -5
- package/src/config/template.js +0 -45
- package/src/config/uri.js +0 -27
- package/src/config/url.js +0 -20
- package/src/config/video.js +0 -7
- package/src/config/visibility.js +0 -5
- package/src/config/workflow.js +0 -18
- package/src/parser/env.js +0 -84
- package/src/parser/given.js +0 -17
- package/src/parser/manifest.js +0 -80
- package/src/parser/media.js +0 -90
- package/src/parser/project.js +0 -166
- package/src/parser/readme-file.js +0 -76
- package/src/parser/readme.js +0 -96
- package/src/parser/sections.js +0 -107
- package/src/parser/self.js +0 -27
- package/src/phrase.js +0 -1294
- package/src/schema/check/game.js +0 -61
- package/src/schema/check/workflow.js +0 -99
- package/src/schema/game.js +0 -649
- package/src/schema/message.js +0 -85
- package/src/schema/readme.js +0 -44
- package/src/schema/workflow.js +0 -150
- package/src/serve/files.js +0 -61
- package/src/serve/game.js +0 -191
- package/src/serve/page.js +0 -345
- package/src/serve/reload.js +0 -68
- package/src/serve/remote.js +0 -121
- package/src/serve/server.js +0 -128
- package/src/util/argv.js +0 -116
- package/src/util/bytes.js +0 -25
- package/src/util/chars.js +0 -30
- package/src/util/command.js +0 -18
- package/src/util/delay.js +0 -52
- package/src/util/doc.js +0 -72
- package/src/util/error.js +0 -50
- package/src/util/http.js +0 -25
- package/src/util/image.js +0 -93
- package/src/util/links.js +0 -78
- package/src/util/lockfile.js +0 -35
- package/src/util/log.js +0 -149
- package/src/util/md.js +0 -61
- package/src/util/media.js +0 -40
- package/src/util/objs.js +0 -45
- package/src/util/os.js +0 -27
- package/src/util/output.js +0 -174
- package/src/util/paths.js +0 -21
- package/src/util/progress.js +0 -85
- package/src/util/promise.js +0 -29
- package/src/util/rc.js +0 -144
- package/src/util/request.js +0 -89
- package/src/util/s3.js +0 -92
- package/src/util/schema.js +0 -189
- package/src/util/screenshot.js +0 -37
- package/src/util/shell.js +0 -84
- package/src/util/size.js +0 -53
- package/src/util/spinner.js +0 -52
- package/src/util/strs.js +0 -73
- package/src/util/term.js +0 -28
- package/src/util/time.js +0 -29
- package/src/util/toml.js +0 -14
- package/src/util/video.js +0 -157
- package/src/util/zip.js +0 -88
- /package/{src/serve → assets}/favicon.ico +0 -0
package/src/phrase.js
DELETED
|
@@ -1,1294 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
// [import]
|
|
4
|
-
|
|
5
|
-
const cfgfile = require("./config/file");
|
|
6
|
-
const cfgproduct = require("./config/product");
|
|
7
|
-
|
|
8
|
-
// [declare]
|
|
9
|
-
|
|
10
|
-
const HANDLE = cfgproduct.handle;
|
|
11
|
-
const TITLE = cfgproduct.title;
|
|
12
|
-
const TOOL = cfgproduct.tool;
|
|
13
|
-
|
|
14
|
-
// [declare]
|
|
15
|
-
|
|
16
|
-
const MANIFEST = cfgfile.MANIFEST;
|
|
17
|
-
const MEDIA = cfgfile.MEDIA;
|
|
18
|
-
|
|
19
|
-
// [declare]
|
|
20
|
-
|
|
21
|
-
const TAIL_LINES = 20;
|
|
22
|
-
|
|
23
|
-
// [function]
|
|
24
|
-
|
|
25
|
-
const artVideoUnpaired = function (art, png) {
|
|
26
|
-
return [
|
|
27
|
-
`Has no ${art} beside it.`,
|
|
28
|
-
`Add ${png} too, for places that don't show video.`,
|
|
29
|
-
];
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// [function]
|
|
33
|
-
|
|
34
|
-
// a message's reason, then each block of details after a blank line
|
|
35
|
-
// (OUTPUT.md). A block of several lines is an array.
|
|
36
|
-
const blocks = function (reason, ...details) {
|
|
37
|
-
return [reason, ...details.map((block) => [block].flat().join("\n"))].join(
|
|
38
|
-
"\n\n",
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// [function]
|
|
43
|
-
|
|
44
|
-
// a release's field left out, keyed by field: what leaving it out means,
|
|
45
|
-
// then what to set.
|
|
46
|
-
const fieldUnset = function (field) {
|
|
47
|
-
return {
|
|
48
|
-
inputs: [
|
|
49
|
-
"Not set, so this release lists no inputs.",
|
|
50
|
-
"Set inputs to how the game is played.",
|
|
51
|
-
],
|
|
52
|
-
title: [
|
|
53
|
-
"Not set, so this release has no title.",
|
|
54
|
-
"Start the README with a # title, or set title.",
|
|
55
|
-
],
|
|
56
|
-
visibility: [
|
|
57
|
-
"Not set, so this release is unlisted: it plays by link only.",
|
|
58
|
-
'Set visibility = "public" to list it, or "unlisted" to keep it so.',
|
|
59
|
-
],
|
|
60
|
-
}[field];
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// [function]
|
|
64
|
-
|
|
65
|
-
const packageFileDev = function (dir) {
|
|
66
|
-
return `Packing ${dir}, a project's installed packages.\nSet deploy_dir to the folder your build writes.`;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// [function]
|
|
70
|
-
|
|
71
|
-
const packageFilePrivate = function (file) {
|
|
72
|
-
return `Packing ${file}, which anyone can download.\nLeave it out of the package unless it's meant to be public.`;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
// [function]
|
|
76
|
-
|
|
77
|
-
const screenshotNameInvalid = function (name) {
|
|
78
|
-
return `Not a screenshot's name: ${name}.`;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
// [function]
|
|
82
|
-
|
|
83
|
-
const screenshotNumberRepeated = function (names) {
|
|
84
|
-
return [
|
|
85
|
-
`Screenshots share a number: ${names.join(", ")}.`,
|
|
86
|
-
"Give each screenshot its own number.",
|
|
87
|
-
];
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
// [function]
|
|
91
|
-
|
|
92
|
-
// the last lines a tool printed, stdout's then stderr's, since some, such as
|
|
93
|
-
// tsc, print their errors on stdout, or "" when it printed nothing. Lines
|
|
94
|
-
// left out are marked with "…".
|
|
95
|
-
const tail = function (...outputs) {
|
|
96
|
-
const lines = outputs
|
|
97
|
-
.map((output) => output?.trim())
|
|
98
|
-
.filter(Boolean)
|
|
99
|
-
.join("\n")
|
|
100
|
-
.split("\n");
|
|
101
|
-
return lines.length > TAIL_LINES
|
|
102
|
-
? ["…", ...lines.slice(-TAIL_LINES)].join("\n")
|
|
103
|
-
: lines.join("\n");
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
// [function]
|
|
107
|
-
|
|
108
|
-
// a wait, in words: "5 minutes", "90 seconds".
|
|
109
|
-
const waited = function (seconds) {
|
|
110
|
-
if (seconds % 60 === 0) {
|
|
111
|
-
const minutes = seconds / 60;
|
|
112
|
-
return `${minutes} minute${minutes === 1 ? "" : "s"}`;
|
|
113
|
-
}
|
|
114
|
-
return `${seconds} second${seconds === 1 ? "" : "s"}`;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
// [function]
|
|
118
|
-
|
|
119
|
-
// a command's heading when it fails: `Deploy aborted.`
|
|
120
|
-
const aborted = function (command) {
|
|
121
|
-
return `${command[0].toUpperCase()}${command.slice(1)} aborted.`;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// [function]
|
|
125
|
-
|
|
126
|
-
// a build that exited with `code`, or was stopped by `signal`, with the end
|
|
127
|
-
// of what it printed.
|
|
128
|
-
const buildFailed = function ({ code, signal, stderr, stdout }) {
|
|
129
|
-
const output = tail(stdout, stderr);
|
|
130
|
-
return blocks(
|
|
131
|
-
signal
|
|
132
|
-
? `Build stopped by ${signal}.`
|
|
133
|
-
: `Build failed with exit code ${code}.`,
|
|
134
|
-
...(output ? [output] : []),
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// [function]
|
|
139
|
-
|
|
140
|
-
const buildOutputMissing = function (dir) {
|
|
141
|
-
return `Build didn't create deploy_dir (${dir}).`;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
// [function]
|
|
145
|
-
|
|
146
|
-
const buildPublishing = function () {
|
|
147
|
-
return `${TITLE} publishes it once it's processed.`;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// [function]
|
|
151
|
-
|
|
152
|
-
const buildPublishingGit = function (channel) {
|
|
153
|
-
return `GitHub Actions builds it, then ${TITLE} publishes it to ${channel}.`;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
// [function]
|
|
157
|
-
|
|
158
|
-
// `built` when workflow.build ran first.
|
|
159
|
-
const buildSubmitted = function (version, channel, built) {
|
|
160
|
-
return `${built ? "Built and submitted" : "Submitted"} v${version} to ${channel}.`;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
// [function]
|
|
164
|
-
|
|
165
|
-
const buildSucceeded = function () {
|
|
166
|
-
return "Built.";
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
// [function]
|
|
170
|
-
|
|
171
|
-
const cmdBuild = function () {
|
|
172
|
-
return `\`${TOOL} build\``;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
// [function]
|
|
176
|
-
|
|
177
|
-
const cmdDeploy = function () {
|
|
178
|
-
return `\`${TOOL} deploy\``;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// [function]
|
|
182
|
-
|
|
183
|
-
const cmdDeployGit = function () {
|
|
184
|
-
return `\`${TOOL} deploy git\``;
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
// [function]
|
|
188
|
-
|
|
189
|
-
const cmdInit = function () {
|
|
190
|
-
return `\`${TOOL} init\``;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
// [function]
|
|
194
|
-
|
|
195
|
-
const cmdInspect = function () {
|
|
196
|
-
return `\`${TOOL} inspect\``;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
// [function]
|
|
200
|
-
|
|
201
|
-
const cmdLogin = function () {
|
|
202
|
-
return `\`${TOOL} login\``;
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
// [function]
|
|
206
|
-
|
|
207
|
-
const cmdValidate = function () {
|
|
208
|
-
return `\`${TOOL} validate\``;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
// [function]
|
|
212
|
-
|
|
213
|
-
const deployDirMissing = function (dir) {
|
|
214
|
-
return blocks(
|
|
215
|
-
`Unable to find deploy_dir: ${dir}`,
|
|
216
|
-
`Run ${cmdBuild()}, or set deploy_dir to the folder your build writes.`,
|
|
217
|
-
);
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
// [function]
|
|
221
|
-
|
|
222
|
-
const didYouMean = function (near) {
|
|
223
|
-
return `Did you mean: ${near}?`;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
// [function]
|
|
227
|
-
|
|
228
|
-
const docAttrInvalid = function (tag, attr, value) {
|
|
229
|
-
return `Value '${value}' isn't allowed for ${attr} on <${tag}>.`;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
// [function]
|
|
233
|
-
|
|
234
|
-
const docAttrUnallowed = function (tag, attr) {
|
|
235
|
-
return `Attribute ${attr} isn't allowed on <${tag}>.`;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
// [function]
|
|
239
|
-
|
|
240
|
-
const docCommentUnallowed = function () {
|
|
241
|
-
return "HTML comments aren't allowed.";
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
// [function]
|
|
245
|
-
|
|
246
|
-
const docMediaElement = function (src, tag) {
|
|
247
|
-
return `Must be ${tag === "video" ? "an MP4" : "a PNG"} file in <${tag}>: ${src}`;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
// [function]
|
|
251
|
-
|
|
252
|
-
const docMediaMissing = function (src) {
|
|
253
|
-
return `Unable to find: ${src}`;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
// [function]
|
|
257
|
-
|
|
258
|
-
// a description media src that isn't written as the gallery's path to it,
|
|
259
|
-
// such as `./.arcadible/gallery/x.png`: Arcadible matches it as written.
|
|
260
|
-
const docMediaPath = function (src, gallery) {
|
|
261
|
-
return `Must be written as ${gallery}/<file>: ${src}`;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
// [function]
|
|
265
|
-
|
|
266
|
-
const docMediaType = function (src) {
|
|
267
|
-
return `Must be a PNG or MP4 file: ${src}`;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
// [function]
|
|
271
|
-
|
|
272
|
-
const docTagUnallowed = function (tag) {
|
|
273
|
-
return `Tag <${tag}> isn't allowed.`;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
// [function]
|
|
277
|
-
|
|
278
|
-
// the code a failure reports, above the link to its entry on the Errors page.
|
|
279
|
-
const errorCode = function (code) {
|
|
280
|
-
return `Code: ${code}`;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
// [function]
|
|
284
|
-
|
|
285
|
-
const gameHandleTaken = function (handle) {
|
|
286
|
-
return blocks(
|
|
287
|
-
`Handle taken: ${handle}`,
|
|
288
|
-
`Choose another handle in ${MANIFEST}.`,
|
|
289
|
-
);
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
// [function]
|
|
293
|
-
|
|
294
|
-
// a git release that would change the game's handle, which only a direct
|
|
295
|
-
// deploy does.
|
|
296
|
-
const gameHandleChanged = function (handle, current) {
|
|
297
|
-
return blocks(
|
|
298
|
-
`The handle in ${MANIFEST} (${handle ?? "none"}) isn't the game's on ${TITLE} (${current ?? "none"}).`,
|
|
299
|
-
`Only ${cmdDeploy()} changes a handle: deploy with it, or set the handle back.`,
|
|
300
|
-
);
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
// [function]
|
|
304
|
-
|
|
305
|
-
const gameHandleLapsed = function (handle) {
|
|
306
|
-
return `Handle ${handle} lapsed, so deploying without it.\nA production release takes it back.`;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
// [function]
|
|
310
|
-
|
|
311
|
-
const gameHandleLimit = function (handle) {
|
|
312
|
-
return `Handle ${handle} not applied, so deploying without it.\nYour unreleased games already hold 5 handles.`;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
// [function]
|
|
316
|
-
|
|
317
|
-
const gameNotDeployed = function (game) {
|
|
318
|
-
return blocks(`${game} isn't on ${TITLE} yet.`, [
|
|
319
|
-
`Deploy it once with ${cmdDeploy()}.`,
|
|
320
|
-
`Then connect its repository in ${TITLE} Studio.`,
|
|
321
|
-
]);
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
// [function]
|
|
325
|
-
|
|
326
|
-
const initialized = function () {
|
|
327
|
-
return "Initialized.";
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
// [function]
|
|
331
|
-
|
|
332
|
-
// arc init's reason, when the folder exists: it gets only arcadible.toml,
|
|
333
|
-
// whatever -y or -t asked for.
|
|
334
|
-
const initializedNoStarter = function () {
|
|
335
|
-
return [
|
|
336
|
-
"No starter added: the folder exists.",
|
|
337
|
-
`To start from one, run \`${TOOL} init <name>\`.`,
|
|
338
|
-
];
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
// [function]
|
|
342
|
-
|
|
343
|
-
// the heading of arc validate's list of issues, warnings, or references:
|
|
344
|
-
// `2 issues:`
|
|
345
|
-
const listed = function (count, noun) {
|
|
346
|
-
return `${count} ${noun}${count === 1 ? "" : "s"}:`;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
// [function]
|
|
350
|
-
|
|
351
|
-
const loggedIn = function () {
|
|
352
|
-
return "Logged in.";
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
// [function]
|
|
356
|
-
|
|
357
|
-
const loggedOut = function () {
|
|
358
|
-
return "Logged out.";
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
// [function]
|
|
362
|
-
|
|
363
|
-
const loggingIn = function () {
|
|
364
|
-
return "Logging in…";
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
// [function]
|
|
368
|
-
|
|
369
|
-
const noAccount = function () {
|
|
370
|
-
return "Not logged in.";
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
// [function]
|
|
374
|
-
|
|
375
|
-
const noIssuesFound = function () {
|
|
376
|
-
return "No issues found.";
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
// [function]
|
|
380
|
-
|
|
381
|
-
const nothingToDo = function () {
|
|
382
|
-
return "Nothing to do.";
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
// [function]
|
|
386
|
-
|
|
387
|
-
const packed = function () {
|
|
388
|
-
return "Packed.";
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
// [function]
|
|
392
|
-
|
|
393
|
-
const portInvalid = function () {
|
|
394
|
-
return "`--port` must be a whole number from 1 to 65535.";
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
// [function]
|
|
398
|
-
|
|
399
|
-
const portInUse = function (port) {
|
|
400
|
-
return blocks(
|
|
401
|
-
`Port ${port} is in use.`,
|
|
402
|
-
"Stop what's using it, or pass another with --port.",
|
|
403
|
-
);
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
// [function]
|
|
407
|
-
|
|
408
|
-
// what one of Arcadible's files is, for arc serve's warnings: `host`, the play
|
|
409
|
-
// page's, or a path under /arcadible/, such as sdk/v1.js.
|
|
410
|
-
const remoteName = function (name) {
|
|
411
|
-
return name === "host" ? "the play page's host" : `/${HANDLE}/${name}`;
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
// [function]
|
|
415
|
-
|
|
416
|
-
// arc serve's copy of one of Arcadible's files, kept from `fetchedAt`.
|
|
417
|
-
const remoteKept = function (name, fetchedAt) {
|
|
418
|
-
return `Unable to reach ${TITLE}.\nServing ${remoteName(name)} saved on ${fetchedAt.slice(0, 10)}.`;
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
// [function]
|
|
422
|
-
|
|
423
|
-
const remoteUnreachable = function (name) {
|
|
424
|
-
return `Unable to reach ${TITLE}, and ${remoteName(name)} isn't saved.\nThe game runs without it until ${TITLE} is back.`;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
// [function]
|
|
428
|
-
|
|
429
|
-
const reloaded = function () {
|
|
430
|
-
return `Reloaded at ${new Date().toTimeString().slice(0, 8)}.`;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
// [function]
|
|
434
|
-
|
|
435
|
-
const serveAlone = function () {
|
|
436
|
-
return "Game only:";
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
// [function]
|
|
440
|
-
|
|
441
|
-
// the label before a play link in a result.
|
|
442
|
-
const playLabel = function () {
|
|
443
|
-
return "Play:";
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
// [function]
|
|
447
|
-
|
|
448
|
-
// the label before a store page's link in a result.
|
|
449
|
-
const storeLabel = function () {
|
|
450
|
-
return "Store:";
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
// [function]
|
|
454
|
-
|
|
455
|
-
const serveNext = function (dir) {
|
|
456
|
-
return `Reloads when ${dir}/ changes. Press Ctrl+C to stop.`;
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
// [function]
|
|
460
|
-
|
|
461
|
-
const served = function ({ built, url, version }) {
|
|
462
|
-
const what = version ? `v${version}` : "the game";
|
|
463
|
-
if (url) {
|
|
464
|
-
return `Serving ${what} locally, from ${url}`;
|
|
465
|
-
}
|
|
466
|
-
return built
|
|
467
|
-
? `Built and serving ${what} locally.`
|
|
468
|
-
: `Serving ${what} locally.`;
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
// [function]
|
|
472
|
-
|
|
473
|
-
const serveNextUrl = function () {
|
|
474
|
-
return "Your server reloads the game. Press Ctrl+C to stop.";
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
// [function]
|
|
478
|
-
|
|
479
|
-
const urlInvalid = function () {
|
|
480
|
-
return "`--url` must start with http:// or https://.";
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
// [function]
|
|
484
|
-
|
|
485
|
-
// --url's server sent no headers that let the play page frame it. `link`
|
|
486
|
-
// says how to add them.
|
|
487
|
-
const urlNotFrameable = function (url, link) {
|
|
488
|
-
return blocks(
|
|
489
|
-
`The play page can't frame ${url}.`,
|
|
490
|
-
[
|
|
491
|
-
"Its server doesn't send the headers the play page needs:",
|
|
492
|
-
"Cross-Origin-Embedder-Policy: require-corp",
|
|
493
|
-
"Cross-Origin-Resource-Policy: cross-origin",
|
|
494
|
-
],
|
|
495
|
-
["Add them to your server, as the starters' vite.config.js does:", link],
|
|
496
|
-
);
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
// [function]
|
|
500
|
-
|
|
501
|
-
const urlUnreachable = function (url) {
|
|
502
|
-
return `Nothing answers at ${url}.\nStart your server, then reload the play page.`;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
// [function]
|
|
506
|
-
|
|
507
|
-
const pressEnterToOpen = function () {
|
|
508
|
-
return "Press Enter to open the link.";
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
// [function]
|
|
512
|
-
|
|
513
|
-
const releaseFailedHeading = function () {
|
|
514
|
-
return "Release failed.";
|
|
515
|
-
};
|
|
516
|
-
|
|
517
|
-
// [function]
|
|
518
|
-
|
|
519
|
-
// origin isn't the game's connected repository: none is, or another is.
|
|
520
|
-
const repoNotConnected = function (game, repo, url) {
|
|
521
|
-
return blocks(
|
|
522
|
-
`${repo} isn't ${game}'s repository on ${TITLE}.`,
|
|
523
|
-
[`Connect it on the game's Repository tab in ${TITLE} Studio:`, url],
|
|
524
|
-
"If it was renamed on GitHub, connect it again.",
|
|
525
|
-
);
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
// [function]
|
|
529
|
-
|
|
530
|
-
const gameNotFound = function (idOrHandle) {
|
|
531
|
-
return `Game not found: ${idOrHandle}`;
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
// [function]
|
|
535
|
-
|
|
536
|
-
const gameUnavailable = function (id) {
|
|
537
|
-
return blocks(
|
|
538
|
-
`Game unavailable: ${id}\nIt was deleted, or belongs to another account.`,
|
|
539
|
-
"Give game.id a new UUID to deploy it as a new game.",
|
|
540
|
-
);
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
// [function]
|
|
544
|
-
|
|
545
|
-
const gitUncommitted = function () {
|
|
546
|
-
return blocks(
|
|
547
|
-
"Uncommitted changes found.",
|
|
548
|
-
"Commit, stash, or discard them first.",
|
|
549
|
-
);
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
// [function]
|
|
553
|
-
|
|
554
|
-
const gitRemoteMissing = function () {
|
|
555
|
-
return blocks(
|
|
556
|
-
"No Git remote origin.",
|
|
557
|
-
"Add the game's GitHub repository as origin.",
|
|
558
|
-
);
|
|
559
|
-
};
|
|
560
|
-
|
|
561
|
-
// [function]
|
|
562
|
-
|
|
563
|
-
const gitRemoteUnreachable = function () {
|
|
564
|
-
return blocks(
|
|
565
|
-
"Unable to reach Git remote origin.",
|
|
566
|
-
"Check your internet connection, and that you can access it.",
|
|
567
|
-
);
|
|
568
|
-
};
|
|
569
|
-
|
|
570
|
-
// [function]
|
|
571
|
-
|
|
572
|
-
const manifestMissing = function (file, dir, found) {
|
|
573
|
-
return blocks(
|
|
574
|
-
dir === "." ? `No ${file} in this directory.` : `No ${file} in ${dir}.`,
|
|
575
|
-
found
|
|
576
|
-
? [
|
|
577
|
-
`Found a project in ${found}.`,
|
|
578
|
-
`Run \`${TOOL}\` there, or pass \`-C ${found}\`.`,
|
|
579
|
-
]
|
|
580
|
-
: [
|
|
581
|
-
`Run \`${TOOL}\` in a project's directory, or pass \`-C <dir>\`.`,
|
|
582
|
-
`To start a project, run ${cmdInit()}.`,
|
|
583
|
-
],
|
|
584
|
-
);
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
// [function]
|
|
588
|
-
|
|
589
|
-
const projectNotRepoRoot = function (prefix) {
|
|
590
|
-
return blocks(
|
|
591
|
-
`Project is in ${prefix}, not the repository's root.\n${cmdDeployGit()} releases only a project at the root.`,
|
|
592
|
-
`Deploy it with ${cmdDeploy()}, or give it a repository of its own.`,
|
|
593
|
-
);
|
|
594
|
-
};
|
|
595
|
-
|
|
596
|
-
// [function]
|
|
597
|
-
|
|
598
|
-
const gitRepoMissing = function () {
|
|
599
|
-
return blocks(
|
|
600
|
-
"No Git repository found.",
|
|
601
|
-
"Deploy from inside one, or create one with `git init`.",
|
|
602
|
-
);
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
// [function]
|
|
606
|
-
|
|
607
|
-
// with the end of what git printed, such as a lock file it found.
|
|
608
|
-
const gitTagCreateFailed = function (version, stderr) {
|
|
609
|
-
const output = tail(stderr);
|
|
610
|
-
return blocks(
|
|
611
|
-
`Unable to create Git tag for v${version}.`,
|
|
612
|
-
...(output ? [output] : []),
|
|
613
|
-
[
|
|
614
|
-
"Check that the repository has a commit.",
|
|
615
|
-
"Check that your Git name and email are set.",
|
|
616
|
-
],
|
|
617
|
-
);
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
// [function]
|
|
621
|
-
|
|
622
|
-
// with the end of what git printed, such as a hook's refusal.
|
|
623
|
-
const gitTagPushFailed = function (version, stderr) {
|
|
624
|
-
const output = tail(stderr);
|
|
625
|
-
return blocks(
|
|
626
|
-
`Unable to push Git tag for v${version}.`,
|
|
627
|
-
...(output ? [output] : []),
|
|
628
|
-
"Check that you can push to origin.",
|
|
629
|
-
);
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
// [function]
|
|
633
|
-
|
|
634
|
-
const gitTagExists = function (version) {
|
|
635
|
-
return blocks(
|
|
636
|
-
`Git tag for v${version} already exists, here or on origin.`,
|
|
637
|
-
"Bump the version.",
|
|
638
|
-
);
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
// [function]
|
|
642
|
-
|
|
643
|
-
const httpError = function (name, status, detail) {
|
|
644
|
-
const head = `${name} (${status})`;
|
|
645
|
-
return detail ? `${head}: ${detail}` : `${head}.`;
|
|
646
|
-
};
|
|
647
|
-
|
|
648
|
-
// [function]
|
|
649
|
-
|
|
650
|
-
const imageAspect = function (aspect) {
|
|
651
|
-
return `Image must be ${aspect}.`;
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
// [function]
|
|
655
|
-
|
|
656
|
-
const imageFound = function (width, height) {
|
|
657
|
-
return `Image is ${width} × ${height}px.`;
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
// [function]
|
|
661
|
-
|
|
662
|
-
const imageHeightMax = function (height) {
|
|
663
|
-
return `Image must be at most ${height}px tall.`;
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
// [function]
|
|
667
|
-
|
|
668
|
-
const imageHeightMin = function (height) {
|
|
669
|
-
return `Image must be at least ${height}px tall.`;
|
|
670
|
-
};
|
|
671
|
-
|
|
672
|
-
// [function]
|
|
673
|
-
|
|
674
|
-
const imageInvalid = function () {
|
|
675
|
-
return "Image is an invalid file.";
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
// [function]
|
|
679
|
-
|
|
680
|
-
const imageSizeMax = function (size) {
|
|
681
|
-
return `Image must be at most ${size}.`;
|
|
682
|
-
};
|
|
683
|
-
|
|
684
|
-
// [function]
|
|
685
|
-
|
|
686
|
-
const imageUnsupported = function () {
|
|
687
|
-
return "Image has an unsupported file type.";
|
|
688
|
-
};
|
|
689
|
-
|
|
690
|
-
// [function]
|
|
691
|
-
|
|
692
|
-
const imageWidthMax = function (width) {
|
|
693
|
-
return `Image must be at most ${width}px wide.`;
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
// [function]
|
|
697
|
-
|
|
698
|
-
const imageWidthMin = function (width) {
|
|
699
|
-
return `Image must be at least ${width}px wide.`;
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
// [function]
|
|
703
|
-
|
|
704
|
-
const timeoutInvalid = function () {
|
|
705
|
-
return "`--timeout` must be a number of seconds above 0.";
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
// [function]
|
|
709
|
-
|
|
710
|
-
// issues in what the build wrote, such as its art, once arc deploy has
|
|
711
|
-
// parsed the project again.
|
|
712
|
-
const issuesAfterBuild = function (count) {
|
|
713
|
-
return blocks(
|
|
714
|
-
`${count} ${count === 1 ? "issue" : "issues"} found after the build.\nThe build writes files the manifest reads.`,
|
|
715
|
-
`Run ${cmdValidate()} for details.`,
|
|
716
|
-
);
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
// [function]
|
|
720
|
-
|
|
721
|
-
const issuesFound = function (count) {
|
|
722
|
-
return blocks(
|
|
723
|
-
`${count} ${count === 1 ? "issue" : "issues"} found.`,
|
|
724
|
-
`Run ${cmdValidate()} for details.`,
|
|
725
|
-
);
|
|
726
|
-
};
|
|
727
|
-
|
|
728
|
-
// [function]
|
|
729
|
-
|
|
730
|
-
const loginCodeExpired = function () {
|
|
731
|
-
return blocks("Login code expired.", `Run ${cmdLogin()} again.`);
|
|
732
|
-
};
|
|
733
|
-
|
|
734
|
-
// [function]
|
|
735
|
-
|
|
736
|
-
const loginFailed = function () {
|
|
737
|
-
return blocks("Login request failed.", `Run ${cmdLogin()} again.`);
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
// [function]
|
|
741
|
-
|
|
742
|
-
const gameIdMissing = function () {
|
|
743
|
-
return blocks(
|
|
744
|
-
"No game handle or ID.",
|
|
745
|
-
`Pass one, or run it in a project after ${cmdInit()} has added an ID.`,
|
|
746
|
-
);
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
// [function]
|
|
750
|
-
|
|
751
|
-
const lockfileMissing = function () {
|
|
752
|
-
return blocks(
|
|
753
|
-
"No lockfile found.",
|
|
754
|
-
"Install your dependencies to create one, and commit it.",
|
|
755
|
-
);
|
|
756
|
-
};
|
|
757
|
-
|
|
758
|
-
// [function]
|
|
759
|
-
|
|
760
|
-
const noProductionRelease = function () {
|
|
761
|
-
return "No production release yet, so opening staging.";
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
// [function]
|
|
765
|
-
|
|
766
|
-
const templateMissing = function () {
|
|
767
|
-
return blocks("No template chosen.", [
|
|
768
|
-
"Pass `--template <user/repo>`.",
|
|
769
|
-
"Or pass `--yes` for the blank starter.",
|
|
770
|
-
]);
|
|
771
|
-
};
|
|
772
|
-
|
|
773
|
-
// [function]
|
|
774
|
-
|
|
775
|
-
const notLoggedIn = function () {
|
|
776
|
-
return blocks(noAccount(), `Run ${cmdLogin()} to log in.`);
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
// [function]
|
|
780
|
-
|
|
781
|
-
const noVideoMetadata = function () {
|
|
782
|
-
return "No video metadata found.";
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
// [function]
|
|
786
|
-
|
|
787
|
-
const noVideoTrack = function () {
|
|
788
|
-
return "No video track found.";
|
|
789
|
-
};
|
|
790
|
-
|
|
791
|
-
// [function]
|
|
792
|
-
|
|
793
|
-
const opened = function (where) {
|
|
794
|
-
return `Opened in ${where === "app" ? `the ${TITLE} app` : "your browser"}.`;
|
|
795
|
-
};
|
|
796
|
-
|
|
797
|
-
// [function]
|
|
798
|
-
|
|
799
|
-
const openToContinue = function () {
|
|
800
|
-
return "Open the link to continue.";
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
// [function]
|
|
804
|
-
|
|
805
|
-
const packageIndexMissing = function (file) {
|
|
806
|
-
return `Package is missing '${file}'.`;
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
// [function]
|
|
810
|
-
|
|
811
|
-
const packageFileTooLarge = function (file, size) {
|
|
812
|
-
return `'${file}' is larger than ${size} MB.`;
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
// [function]
|
|
816
|
-
|
|
817
|
-
// `name` is a folder when it ends with "/": the reserved folder, which a
|
|
818
|
-
// build may load from, or the media folder. A file is the manifest.
|
|
819
|
-
const packagePathReserved = function (name) {
|
|
820
|
-
return blocks(
|
|
821
|
-
`'${name}' is reserved for ${TITLE}.`,
|
|
822
|
-
name.toLowerCase() === `${HANDLE}/`
|
|
823
|
-
? "Rename the folder, and the paths that load from it."
|
|
824
|
-
: `${TITLE} adds its own, so leave it out of the folder you pack.`,
|
|
825
|
-
);
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
// [function]
|
|
829
|
-
|
|
830
|
-
const packageTooLarge = function (size) {
|
|
831
|
-
return blocks(
|
|
832
|
-
`Package is larger than ${size} MB.`,
|
|
833
|
-
`${MEDIA}/ doesn't count toward it.`,
|
|
834
|
-
);
|
|
835
|
-
};
|
|
836
|
-
|
|
837
|
-
// [function]
|
|
838
|
-
|
|
839
|
-
const packageTooManyFiles = function (count) {
|
|
840
|
-
return `Package has more than ${count.toLocaleString("en-US")} files.`;
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
// [function]
|
|
844
|
-
|
|
845
|
-
const packageUncompressedTooLarge = function (size) {
|
|
846
|
-
return `Package is larger than ${size} MB uncompressed.`;
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
// [function]
|
|
850
|
-
|
|
851
|
-
// a failed release's message, a sentence to a line, then its reason code
|
|
852
|
-
// and where to see it.
|
|
853
|
-
// `studio` is the game's builds in Studio, which asks whoever opens it to
|
|
854
|
-
// log in.
|
|
855
|
-
const releaseFailed = function ({ message }, studio) {
|
|
856
|
-
return blocks(
|
|
857
|
-
(message ?? "No reason given.").split(/(?<=\.)\s+/u).join("\n"),
|
|
858
|
-
[`${TITLE} Studio:`, studio],
|
|
859
|
-
);
|
|
860
|
-
};
|
|
861
|
-
|
|
862
|
-
// [function]
|
|
863
|
-
|
|
864
|
-
// `built` when workflow.build ran first.
|
|
865
|
-
const releasePublished = function (version, channel, built) {
|
|
866
|
-
return `${built ? "Built and published" : "Published"} v${version} to ${channel}.`;
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
// [function]
|
|
870
|
-
|
|
871
|
-
// `--wait` ran out of time. `found` when the release exists: it may still
|
|
872
|
-
// finish, as may a direct one it couldn't read. A git release that never
|
|
873
|
-
// appeared was likely never built.
|
|
874
|
-
const releaseTimedOut = function (
|
|
875
|
-
version,
|
|
876
|
-
seconds,
|
|
877
|
-
{ actions, found, git, studio },
|
|
878
|
-
) {
|
|
879
|
-
const head = `Waited ${waited(seconds)} for v${version}.`;
|
|
880
|
-
if (found || !git) {
|
|
881
|
-
return blocks(head, [
|
|
882
|
-
`It may still finish. See it in ${TITLE} Studio:`,
|
|
883
|
-
studio,
|
|
884
|
-
]);
|
|
885
|
-
}
|
|
886
|
-
return blocks(
|
|
887
|
-
head,
|
|
888
|
-
[
|
|
889
|
-
"GitHub Actions hasn't released it yet, or its workflow failed:",
|
|
890
|
-
actions ?? "See the repository's Actions tab.",
|
|
891
|
-
],
|
|
892
|
-
`If the workflow passed, see the ${TITLE} check on the tagged commit.`,
|
|
893
|
-
);
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
// [function]
|
|
897
|
-
|
|
898
|
-
// the spinner while `--wait` waits: on GitHub Actions until the release
|
|
899
|
-
// exists, then on Arcadible.
|
|
900
|
-
const releaseWaiting = function (building) {
|
|
901
|
-
return building ? "Waiting for GitHub Actions… %s" : "Publishing… %s";
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
// [function]
|
|
905
|
-
|
|
906
|
-
const sessionExpired = function () {
|
|
907
|
-
return blocks("Session expired.", `Run ${cmdLogin()} to log in.`);
|
|
908
|
-
};
|
|
909
|
-
|
|
910
|
-
// [function]
|
|
911
|
-
|
|
912
|
-
const sizeB = function (size) {
|
|
913
|
-
return `${size} B`;
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
// [function]
|
|
917
|
-
|
|
918
|
-
const sizeGb = function (size) {
|
|
919
|
-
return `${size} GB`;
|
|
920
|
-
};
|
|
921
|
-
|
|
922
|
-
// [function]
|
|
923
|
-
|
|
924
|
-
const sizeKb = function (size) {
|
|
925
|
-
return `${size} KB`;
|
|
926
|
-
};
|
|
927
|
-
|
|
928
|
-
// [function]
|
|
929
|
-
|
|
930
|
-
const sizeMb = function (size) {
|
|
931
|
-
return `${size} MB`;
|
|
932
|
-
};
|
|
933
|
-
|
|
934
|
-
// [function]
|
|
935
|
-
|
|
936
|
-
const starterBabylonJs = function () {
|
|
937
|
-
return "Babylon.js starter.";
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
// [function]
|
|
941
|
-
|
|
942
|
-
const starterBlank = function () {
|
|
943
|
-
return "Blank JavaScript starter.";
|
|
944
|
-
};
|
|
945
|
-
|
|
946
|
-
// [function]
|
|
947
|
-
|
|
948
|
-
const starterPhaser = function () {
|
|
949
|
-
return "Phaser starter.";
|
|
950
|
-
};
|
|
951
|
-
|
|
952
|
-
// [function]
|
|
953
|
-
|
|
954
|
-
const starterPixiJs = function () {
|
|
955
|
-
return "PixiJS starter.";
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
// [function]
|
|
959
|
-
|
|
960
|
-
const starterThreeJs = function () {
|
|
961
|
-
return "Three.js starter.";
|
|
962
|
-
};
|
|
963
|
-
|
|
964
|
-
// [function]
|
|
965
|
-
|
|
966
|
-
const tagPushed = function (tag) {
|
|
967
|
-
return `Pushed ${tag} to origin.`;
|
|
968
|
-
};
|
|
969
|
-
|
|
970
|
-
// [function]
|
|
971
|
-
|
|
972
|
-
// `starter` is the starter its name suggests.
|
|
973
|
-
const templateUnavailable = function (template, starter) {
|
|
974
|
-
return blocks(
|
|
975
|
-
`Unable to download template ${template}.`,
|
|
976
|
-
starter
|
|
977
|
-
? `Did you mean: ${starter}?`
|
|
978
|
-
: "Check that it's a public GitHub repository, or a folder in one.",
|
|
979
|
-
);
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
// [function]
|
|
983
|
-
|
|
984
|
-
const unableToFind = function (file) {
|
|
985
|
-
return `Unable to find: ${file}`;
|
|
986
|
-
};
|
|
987
|
-
|
|
988
|
-
// [function]
|
|
989
|
-
|
|
990
|
-
const unableToOpen = function () {
|
|
991
|
-
return "Unable to open a browser.";
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
// [function]
|
|
995
|
-
|
|
996
|
-
const unableToParse = function (file, message) {
|
|
997
|
-
return blocks(`Unable to parse ${file}.`, message.trim());
|
|
998
|
-
};
|
|
999
|
-
|
|
1000
|
-
// [function]
|
|
1001
|
-
|
|
1002
|
-
const unableToReach = function () {
|
|
1003
|
-
return blocks(
|
|
1004
|
-
`Unable to reach ${TITLE}.`,
|
|
1005
|
-
"Check your internet connection, and try again.",
|
|
1006
|
-
);
|
|
1007
|
-
};
|
|
1008
|
-
|
|
1009
|
-
// [function]
|
|
1010
|
-
|
|
1011
|
-
const unknownField = function () {
|
|
1012
|
-
return "Unknown field.";
|
|
1013
|
-
};
|
|
1014
|
-
|
|
1015
|
-
// [function]
|
|
1016
|
-
|
|
1017
|
-
const unknownTable = function () {
|
|
1018
|
-
return "Unknown table.";
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
// [function]
|
|
1022
|
-
|
|
1023
|
-
const uploadFailed = function (status) {
|
|
1024
|
-
return `Upload failed with status ${status}.`;
|
|
1025
|
-
};
|
|
1026
|
-
|
|
1027
|
-
// [function]
|
|
1028
|
-
|
|
1029
|
-
const deployRateLimited = function (version) {
|
|
1030
|
-
return blocks(
|
|
1031
|
-
`v${version} was deployed in the last 5 minutes.`,
|
|
1032
|
-
"Wait, then deploy again.",
|
|
1033
|
-
);
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
// [function]
|
|
1037
|
-
|
|
1038
|
-
const waitTimedOut = function () {
|
|
1039
|
-
return "Wait timed out.";
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
// [function]
|
|
1043
|
-
|
|
1044
|
-
const workflowMissing = function (file) {
|
|
1045
|
-
return blocks(
|
|
1046
|
-
`No release workflow found: ${file}`,
|
|
1047
|
-
"Add it from your starter, and commit it.",
|
|
1048
|
-
);
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
// [function]
|
|
1052
|
-
|
|
1053
|
-
const versionPrerelease = function (version) {
|
|
1054
|
-
return `Prerelease v${version}`;
|
|
1055
|
-
};
|
|
1056
|
-
|
|
1057
|
-
// [function]
|
|
1058
|
-
|
|
1059
|
-
// a version that's already published, with what is, so the developer knows
|
|
1060
|
-
// what to bump to.
|
|
1061
|
-
const versionExists = function (version, { next, production, staging }) {
|
|
1062
|
-
const latest = [
|
|
1063
|
-
production ? `Production: ${production}` : null,
|
|
1064
|
-
staging ? `Staging: ${staging}` : null,
|
|
1065
|
-
].filter(Boolean);
|
|
1066
|
-
return blocks(
|
|
1067
|
-
`Version ${version} is already published.`,
|
|
1068
|
-
...(latest.length ? [latest] : []),
|
|
1069
|
-
`Bump the version, for example to ${next}.`,
|
|
1070
|
-
);
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
// [function]
|
|
1074
|
-
|
|
1075
|
-
const versionRelease = function (version) {
|
|
1076
|
-
return `Release v${version}`;
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
// [function]
|
|
1080
|
-
|
|
1081
|
-
const versionUnchecked = function (version) {
|
|
1082
|
-
return `Unable to reach ${TITLE} to check v${version}, so pushing anyway.`;
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
// [function]
|
|
1086
|
-
|
|
1087
|
-
const videoAspect = function (aspect) {
|
|
1088
|
-
return `Video must be ${aspect}.`;
|
|
1089
|
-
};
|
|
1090
|
-
|
|
1091
|
-
// [function]
|
|
1092
|
-
|
|
1093
|
-
const videoDurationMax = function (maxDuration) {
|
|
1094
|
-
return `Video must be at most ${maxDuration}s long.`;
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
// [function]
|
|
1098
|
-
|
|
1099
|
-
const videoDurationMin = function (duration) {
|
|
1100
|
-
return `Video must be at least ${duration}s long.`;
|
|
1101
|
-
};
|
|
1102
|
-
|
|
1103
|
-
// [function]
|
|
1104
|
-
|
|
1105
|
-
const videoFound = function (width, height, duration) {
|
|
1106
|
-
return `Video is ${width} × ${height}px, ${Number(duration.toFixed(1))}s.`;
|
|
1107
|
-
};
|
|
1108
|
-
|
|
1109
|
-
// [function]
|
|
1110
|
-
|
|
1111
|
-
const videoHeightMax = function (height) {
|
|
1112
|
-
return `Video must be at most ${height}px tall.`;
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
// [function]
|
|
1116
|
-
|
|
1117
|
-
const videoHeightMin = function (height) {
|
|
1118
|
-
return `Video must be at least ${height}px tall.`;
|
|
1119
|
-
};
|
|
1120
|
-
|
|
1121
|
-
// [function]
|
|
1122
|
-
|
|
1123
|
-
const videoInvalid = function () {
|
|
1124
|
-
return "Video is an invalid file.";
|
|
1125
|
-
};
|
|
1126
|
-
|
|
1127
|
-
// [function]
|
|
1128
|
-
|
|
1129
|
-
const videoSizeMax = function (size) {
|
|
1130
|
-
return `Video must be at most ${size}.`;
|
|
1131
|
-
};
|
|
1132
|
-
|
|
1133
|
-
// [function]
|
|
1134
|
-
|
|
1135
|
-
const videoUnsupported = function () {
|
|
1136
|
-
return "Video has an unsupported file type.";
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
// [function]
|
|
1140
|
-
|
|
1141
|
-
const videoWidthMax = function (width) {
|
|
1142
|
-
return `Video must be at most ${width}px wide.`;
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
// [function]
|
|
1146
|
-
|
|
1147
|
-
const videoWidthMin = function (width) {
|
|
1148
|
-
return `Video must be at least ${width}px wide.`;
|
|
1149
|
-
};
|
|
1150
|
-
|
|
1151
|
-
// [export]
|
|
1152
|
-
|
|
1153
|
-
module.exports = {
|
|
1154
|
-
aborted,
|
|
1155
|
-
artVideoUnpaired,
|
|
1156
|
-
buildFailed,
|
|
1157
|
-
buildOutputMissing,
|
|
1158
|
-
buildPublishing,
|
|
1159
|
-
buildPublishingGit,
|
|
1160
|
-
buildSubmitted,
|
|
1161
|
-
buildSucceeded,
|
|
1162
|
-
cmdInit,
|
|
1163
|
-
cmdInspect,
|
|
1164
|
-
deployDirMissing,
|
|
1165
|
-
deployRateLimited,
|
|
1166
|
-
didYouMean,
|
|
1167
|
-
docAttrInvalid,
|
|
1168
|
-
docAttrUnallowed,
|
|
1169
|
-
docCommentUnallowed,
|
|
1170
|
-
docMediaElement,
|
|
1171
|
-
docMediaMissing,
|
|
1172
|
-
docMediaPath,
|
|
1173
|
-
docMediaType,
|
|
1174
|
-
docTagUnallowed,
|
|
1175
|
-
errorCode,
|
|
1176
|
-
fieldUnset,
|
|
1177
|
-
gameHandleChanged,
|
|
1178
|
-
gameHandleLapsed,
|
|
1179
|
-
gameHandleLimit,
|
|
1180
|
-
gameHandleTaken,
|
|
1181
|
-
gameIdMissing,
|
|
1182
|
-
gameNotDeployed,
|
|
1183
|
-
gameNotFound,
|
|
1184
|
-
gameUnavailable,
|
|
1185
|
-
gitRemoteMissing,
|
|
1186
|
-
gitRemoteUnreachable,
|
|
1187
|
-
gitRepoMissing,
|
|
1188
|
-
gitTagCreateFailed,
|
|
1189
|
-
gitTagExists,
|
|
1190
|
-
gitTagPushFailed,
|
|
1191
|
-
gitUncommitted,
|
|
1192
|
-
httpError,
|
|
1193
|
-
imageAspect,
|
|
1194
|
-
imageFound,
|
|
1195
|
-
imageHeightMax,
|
|
1196
|
-
imageHeightMin,
|
|
1197
|
-
imageInvalid,
|
|
1198
|
-
imageSizeMax,
|
|
1199
|
-
imageUnsupported,
|
|
1200
|
-
imageWidthMax,
|
|
1201
|
-
imageWidthMin,
|
|
1202
|
-
initialized,
|
|
1203
|
-
initializedNoStarter,
|
|
1204
|
-
issuesAfterBuild,
|
|
1205
|
-
issuesFound,
|
|
1206
|
-
listed,
|
|
1207
|
-
lockfileMissing,
|
|
1208
|
-
loggedIn,
|
|
1209
|
-
loggedOut,
|
|
1210
|
-
loggingIn,
|
|
1211
|
-
loginCodeExpired,
|
|
1212
|
-
loginFailed,
|
|
1213
|
-
manifestMissing,
|
|
1214
|
-
noAccount,
|
|
1215
|
-
noIssuesFound,
|
|
1216
|
-
noProductionRelease,
|
|
1217
|
-
noVideoMetadata,
|
|
1218
|
-
noVideoTrack,
|
|
1219
|
-
notLoggedIn,
|
|
1220
|
-
nothingToDo,
|
|
1221
|
-
openToContinue,
|
|
1222
|
-
opened,
|
|
1223
|
-
packageFileDev,
|
|
1224
|
-
packageFilePrivate,
|
|
1225
|
-
packageFileTooLarge,
|
|
1226
|
-
packageIndexMissing,
|
|
1227
|
-
packagePathReserved,
|
|
1228
|
-
packageTooLarge,
|
|
1229
|
-
packageTooManyFiles,
|
|
1230
|
-
packageUncompressedTooLarge,
|
|
1231
|
-
packed,
|
|
1232
|
-
playLabel,
|
|
1233
|
-
portInUse,
|
|
1234
|
-
portInvalid,
|
|
1235
|
-
pressEnterToOpen,
|
|
1236
|
-
projectNotRepoRoot,
|
|
1237
|
-
releaseFailed,
|
|
1238
|
-
releaseFailedHeading,
|
|
1239
|
-
releasePublished,
|
|
1240
|
-
releaseTimedOut,
|
|
1241
|
-
releaseWaiting,
|
|
1242
|
-
reloaded,
|
|
1243
|
-
remoteKept,
|
|
1244
|
-
remoteUnreachable,
|
|
1245
|
-
repoNotConnected,
|
|
1246
|
-
screenshotNameInvalid,
|
|
1247
|
-
screenshotNumberRepeated,
|
|
1248
|
-
serveAlone,
|
|
1249
|
-
serveNext,
|
|
1250
|
-
serveNextUrl,
|
|
1251
|
-
served,
|
|
1252
|
-
sessionExpired,
|
|
1253
|
-
sizeB,
|
|
1254
|
-
sizeGb,
|
|
1255
|
-
sizeKb,
|
|
1256
|
-
sizeMb,
|
|
1257
|
-
starterBabylonJs,
|
|
1258
|
-
starterBlank,
|
|
1259
|
-
starterPhaser,
|
|
1260
|
-
starterPixiJs,
|
|
1261
|
-
starterThreeJs,
|
|
1262
|
-
storeLabel,
|
|
1263
|
-
tagPushed,
|
|
1264
|
-
templateMissing,
|
|
1265
|
-
templateUnavailable,
|
|
1266
|
-
timeoutInvalid,
|
|
1267
|
-
unableToFind,
|
|
1268
|
-
unableToOpen,
|
|
1269
|
-
unableToParse,
|
|
1270
|
-
unableToReach,
|
|
1271
|
-
unknownField,
|
|
1272
|
-
unknownTable,
|
|
1273
|
-
uploadFailed,
|
|
1274
|
-
urlInvalid,
|
|
1275
|
-
urlNotFrameable,
|
|
1276
|
-
urlUnreachable,
|
|
1277
|
-
versionExists,
|
|
1278
|
-
versionPrerelease,
|
|
1279
|
-
versionRelease,
|
|
1280
|
-
versionUnchecked,
|
|
1281
|
-
videoAspect,
|
|
1282
|
-
videoDurationMax,
|
|
1283
|
-
videoDurationMin,
|
|
1284
|
-
videoFound,
|
|
1285
|
-
videoHeightMax,
|
|
1286
|
-
videoHeightMin,
|
|
1287
|
-
videoInvalid,
|
|
1288
|
-
videoSizeMax,
|
|
1289
|
-
videoUnsupported,
|
|
1290
|
-
videoWidthMax,
|
|
1291
|
-
videoWidthMin,
|
|
1292
|
-
waitTimedOut,
|
|
1293
|
-
workflowMissing,
|
|
1294
|
-
};
|