arcadible 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/bin/arc-deploy.js +7 -7
- package/package.json +1 -1
package/bin/arc-deploy.js
CHANGED
|
@@ -50,10 +50,10 @@ const conf = {
|
|
|
50
50
|
|
|
51
51
|
// [function]
|
|
52
52
|
|
|
53
|
-
const handler = function ({
|
|
53
|
+
const handler = function ({ json, pb, quiet, sw }) {
|
|
54
54
|
return {
|
|
55
55
|
onAccountRefresh(refresh) {
|
|
56
|
-
sw.start(
|
|
56
|
+
sw.start(json || quiet);
|
|
57
57
|
return refresh(true);
|
|
58
58
|
},
|
|
59
59
|
onDeployBegin() {
|
|
@@ -73,7 +73,7 @@ const handler = function ({ git, json, pb, quiet, sw }) {
|
|
|
73
73
|
pb.stop();
|
|
74
74
|
}
|
|
75
75
|
log.pw(`⚠ ${message}`);
|
|
76
|
-
sw.start(
|
|
76
|
+
sw.start(json || quiet);
|
|
77
77
|
if (pb) {
|
|
78
78
|
pb.start();
|
|
79
79
|
}
|
|
@@ -82,7 +82,7 @@ const handler = function ({ git, json, pb, quiet, sw }) {
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
onPredeployBegin() {
|
|
85
|
-
sw.start(
|
|
85
|
+
sw.start(json || quiet);
|
|
86
86
|
},
|
|
87
87
|
onUploadProgress(step) {
|
|
88
88
|
if (!json && !quiet) {
|
|
@@ -111,7 +111,7 @@ const start = function (argv) {
|
|
|
111
111
|
}
|
|
112
112
|
sw.stop();
|
|
113
113
|
sw = new SpinnerWheel("Checking login... %s");
|
|
114
|
-
return whoami({ handler: handler({
|
|
114
|
+
return whoami({ handler: handler({ json, pb, quiet, sw }) });
|
|
115
115
|
})
|
|
116
116
|
.then((current) => {
|
|
117
117
|
const session = current?.session;
|
|
@@ -126,7 +126,7 @@ const start = function (argv) {
|
|
|
126
126
|
// predeploy
|
|
127
127
|
predeploy({
|
|
128
128
|
git,
|
|
129
|
-
handler: handler({
|
|
129
|
+
handler: handler({ json, pb, quiet, sw }),
|
|
130
130
|
root,
|
|
131
131
|
session,
|
|
132
132
|
}),
|
|
@@ -162,7 +162,7 @@ const start = function (argv) {
|
|
|
162
162
|
return deploy({
|
|
163
163
|
artifact,
|
|
164
164
|
git,
|
|
165
|
-
handler: handler({
|
|
165
|
+
handler: handler({ json, pb, quiet, sw }),
|
|
166
166
|
root,
|
|
167
167
|
session,
|
|
168
168
|
});
|
package/package.json
CHANGED