@sentry/wizard 3.25.0 → 3.25.2
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/CHANGELOG.md +8 -0
- package/bin.ts +10 -2
- package/dist/bin.js +12 -3
- package/dist/bin.js.map +1 -1
- package/dist/lib/Helper/Env.js +1 -0
- package/dist/lib/Helper/Env.js.map +1 -1
- package/dist/lib/Setup.d.ts +6 -0
- package/dist/lib/Setup.js +6 -0
- package/dist/lib/Setup.js.map +1 -1
- package/dist/lib/Steps/ChooseIntegration.js +0 -29
- package/dist/lib/Steps/ChooseIntegration.js.map +1 -1
- package/dist/package.json +2 -1
- package/dist/src/remix/codemods/handle-error.js +35 -33
- package/dist/src/remix/codemods/handle-error.js.map +1 -1
- package/dist/src/remix/templates.d.ts +1 -1
- package/dist/src/remix/templates.js +1 -1
- package/dist/src/remix/templates.js.map +1 -1
- package/dist/src/run.d.ts +16 -0
- package/dist/src/run.js +195 -0
- package/dist/src/run.js.map +1 -0
- package/dist/src/utils/clack-utils.js +1 -1
- package/dist/src/utils/clack-utils.js.map +1 -1
- package/dist/src/utils/package-json.d.ts +1 -0
- package/dist/src/utils/package-json.js.map +1 -1
- package/lib/Helper/Env.ts +1 -0
- package/lib/Setup.ts +6 -0
- package/lib/Steps/ChooseIntegration.ts +0 -29
- package/package.json +2 -1
- package/src/remix/codemods/handle-error.ts +57 -37
- package/src/remix/templates.ts +3 -3
- package/src/run.ts +142 -0
- package/src/utils/clack-utils.ts +1 -1
- package/src/utils/package-json.ts +1 -0
- package/dist/lib/Steps/Integrations/Android.d.ts +0 -9
- package/dist/lib/Steps/Integrations/Android.js +0 -86
- package/dist/lib/Steps/Integrations/Android.js.map +0 -1
- package/dist/lib/Steps/Integrations/Apple.d.ts +0 -10
- package/dist/lib/Steps/Integrations/Apple.js +0 -92
- package/dist/lib/Steps/Integrations/Apple.js.map +0 -1
- package/dist/lib/Steps/Integrations/NextJsShim.d.ts +0 -13
- package/dist/lib/Steps/Integrations/NextJsShim.js +0 -99
- package/dist/lib/Steps/Integrations/NextJsShim.js.map +0 -1
- package/dist/lib/Steps/Integrations/ReactNative.d.ts +0 -10
- package/dist/lib/Steps/Integrations/ReactNative.js +0 -93
- package/dist/lib/Steps/Integrations/ReactNative.js.map +0 -1
- package/dist/lib/Steps/Integrations/Remix.d.ts +0 -12
- package/dist/lib/Steps/Integrations/Remix.js +0 -98
- package/dist/lib/Steps/Integrations/Remix.js.map +0 -1
- package/dist/lib/Steps/Integrations/SourceMapsShim.d.ts +0 -13
- package/dist/lib/Steps/Integrations/SourceMapsShim.js +0 -94
- package/dist/lib/Steps/Integrations/SourceMapsShim.js.map +0 -1
- package/dist/lib/Steps/Integrations/SvelteKitShim.d.ts +0 -13
- package/dist/lib/Steps/Integrations/SvelteKitShim.js +0 -99
- package/dist/lib/Steps/Integrations/SvelteKitShim.js.map +0 -1
- package/lib/Steps/Integrations/Android.ts +0 -23
- package/lib/Steps/Integrations/Apple.ts +0 -27
- package/lib/Steps/Integrations/NextJsShim.ts +0 -33
- package/lib/Steps/Integrations/ReactNative.ts +0 -28
- package/lib/Steps/Integrations/Remix.ts +0 -32
- package/lib/Steps/Integrations/SourceMapsShim.ts +0 -28
- package/lib/Steps/Integrations/SvelteKitShim.ts +0 -33
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.ReactNative = void 0;
|
|
55
|
-
var BaseIntegration_1 = require("./BaseIntegration");
|
|
56
|
-
var react_native_wizard_1 = require("../../../src/react-native/react-native-wizard");
|
|
57
|
-
var ReactNative = /** @class */ (function (_super) {
|
|
58
|
-
__extends(ReactNative, _super);
|
|
59
|
-
function ReactNative(_argv) {
|
|
60
|
-
var _this = _super.call(this, _argv) || this;
|
|
61
|
-
_this._argv = _argv;
|
|
62
|
-
_this.argv = _argv;
|
|
63
|
-
return _this;
|
|
64
|
-
}
|
|
65
|
-
ReactNative.prototype.emit = function (_answers) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
-
return __generator(this, function (_a) {
|
|
68
|
-
switch (_a.label) {
|
|
69
|
-
case 0: return [4 /*yield*/, (0, react_native_wizard_1.runReactNativeWizard)({
|
|
70
|
-
promoCode: this._argv.promoCode,
|
|
71
|
-
url: this._argv.url,
|
|
72
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
73
|
-
uninstall: this._argv.uninstall,
|
|
74
|
-
// eslint-disable-next-line no-console
|
|
75
|
-
}).catch(console.error)];
|
|
76
|
-
case 1:
|
|
77
|
-
_a.sent();
|
|
78
|
-
return [2 /*return*/, {}];
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
ReactNative.prototype.shouldConfigure = function (_answers) {
|
|
84
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
return [2 /*return*/, this._shouldConfigure];
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
return ReactNative;
|
|
91
|
-
}(BaseIntegration_1.BaseIntegration));
|
|
92
|
-
exports.ReactNative = ReactNative;
|
|
93
|
-
//# sourceMappingURL=ReactNative.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactNative.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/ReactNative.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAoD;AACpD,qFAAqF;AAErF;IAAiC,+BAAe;IAE9C,qBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SAEb;QAH4B,WAAK,GAAL,KAAK,CAAM;QAEtC,KAAI,CAAC,IAAI,GAAG,KAAK,CAAC;;IACpB,CAAC;IAEY,0BAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,0CAAoB,EAAC;4BACzB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;4BAC9C,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,sCAAsC;yBACvC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAA;;wBANvB,SAMuB,CAAC;wBAExB,sBAAO,EAAE,EAAC;;;;KACX;IAEY,qCAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,sBAAO,IAAI,CAAC,gBAAgB,EAAC;;;KAC9B;IACH,kBAAC;AAAD,CAAC,AAtBD,CAAiC,iCAAe,GAsB/C;AAtBY,kCAAW","sourcesContent":["import { Answers } from 'inquirer';\nimport { type Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\nimport { runReactNativeWizard } from '../../../src/react-native/react-native-wizard';\n\nexport class ReactNative extends BaseIntegration {\n argv: Args;\n public constructor(protected _argv: Args) {\n super(_argv);\n this.argv = _argv;\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runReactNativeWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n uninstall: this._argv.uninstall,\n // eslint-disable-next-line no-console\n }).catch(console.error);\n\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n return this._shouldConfigure;\n }\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
import type { Args } from '../../Constants';
|
|
3
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
4
|
-
/**
|
|
5
|
-
* This class just redirects to the new `remix-wizard.ts` flow.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Remix extends BaseIntegration {
|
|
8
|
-
protected _argv: Args;
|
|
9
|
-
constructor(_argv: Args);
|
|
10
|
-
emit(_answers: Answers): Promise<Answers>;
|
|
11
|
-
shouldConfigure(_answers: Answers): Promise<Answers>;
|
|
12
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.Remix = void 0;
|
|
55
|
-
var BaseIntegration_1 = require("./BaseIntegration");
|
|
56
|
-
var remix_wizard_1 = require("../../../src/remix/remix-wizard");
|
|
57
|
-
/**
|
|
58
|
-
* This class just redirects to the new `remix-wizard.ts` flow.
|
|
59
|
-
*/
|
|
60
|
-
var Remix = /** @class */ (function (_super) {
|
|
61
|
-
__extends(Remix, _super);
|
|
62
|
-
function Remix(_argv) {
|
|
63
|
-
var _this = _super.call(this, _argv) || this;
|
|
64
|
-
_this._argv = _argv;
|
|
65
|
-
return _this;
|
|
66
|
-
}
|
|
67
|
-
Remix.prototype.emit = function (_answers) {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
69
|
-
return __generator(this, function (_a) {
|
|
70
|
-
switch (_a.label) {
|
|
71
|
-
case 0: return [4 /*yield*/, (0, remix_wizard_1.runRemixWizard)({
|
|
72
|
-
promoCode: this._argv.promoCode,
|
|
73
|
-
url: this._argv.url,
|
|
74
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
75
|
-
})];
|
|
76
|
-
case 1:
|
|
77
|
-
_a.sent();
|
|
78
|
-
return [2 /*return*/, {}];
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
Remix.prototype.shouldConfigure = function (_answers) {
|
|
84
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
87
|
-
if (this._shouldConfigure) {
|
|
88
|
-
return [2 /*return*/, this._shouldConfigure];
|
|
89
|
-
}
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
91
|
-
return [2 /*return*/, this.shouldConfigure];
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
return Remix;
|
|
96
|
-
}(BaseIntegration_1.BaseIntegration));
|
|
97
|
-
exports.Remix = Remix;
|
|
98
|
-
//# sourceMappingURL=Remix.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Remix.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/Remix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qDAAoD;AACpD,gEAAiE;AAEjE;;GAEG;AACH;IAA2B,yBAAe;IACxC,eAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SACb;QAF4B,WAAK,GAAL,KAAK,CAAM;;IAExC,CAAC;IAEY,oBAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,6BAAc,EAAC;4BACnB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;yBAC/C,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBACH,sBAAO,EAAE,EAAC;;;;KACX;IAEY,+BAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,kEAAkE;gBAClE,IAAI,IAAI,CAAC,gBAAgB,EAAE;oBACzB,sBAAO,IAAI,CAAC,gBAAgB,EAAC;iBAC9B;gBACD,6DAA6D;gBAC7D,sBAAO,IAAI,CAAC,eAAe,EAAC;;;KAC7B;IACH,YAAC;AAAD,CAAC,AAtBD,CAA2B,iCAAe,GAsBzC;AAtBY,sBAAK","sourcesContent":["import type { Answers } from 'inquirer';\n\nimport type { Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\nimport { runRemixWizard } from '../../../src/remix/remix-wizard';\n\n/**\n * This class just redirects to the new `remix-wizard.ts` flow.\n */\nexport class Remix extends BaseIntegration {\n public constructor(protected _argv: Args) {\n super(_argv);\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runRemixWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n });\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n if (this._shouldConfigure) {\n return this._shouldConfigure;\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n return this.shouldConfigure;\n }\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
import type { Args } from '../../Constants';
|
|
3
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
4
|
-
/**
|
|
5
|
-
* This class just redirects to the `sourcemaps-wizard.ts` flow
|
|
6
|
-
* for anyone calling the wizard without the '-i sourcemaps' flag.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SourceMapsShim extends BaseIntegration {
|
|
9
|
-
protected _argv: Args;
|
|
10
|
-
constructor(_argv: Args);
|
|
11
|
-
emit(_answers: Answers): Promise<Answers>;
|
|
12
|
-
shouldConfigure(_answers: Answers): Promise<Answers>;
|
|
13
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.SourceMapsShim = void 0;
|
|
55
|
-
var sourcemaps_wizard_1 = require("../../../src/sourcemaps/sourcemaps-wizard");
|
|
56
|
-
var BaseIntegration_1 = require("./BaseIntegration");
|
|
57
|
-
/**
|
|
58
|
-
* This class just redirects to the `sourcemaps-wizard.ts` flow
|
|
59
|
-
* for anyone calling the wizard without the '-i sourcemaps' flag.
|
|
60
|
-
*/
|
|
61
|
-
var SourceMapsShim = /** @class */ (function (_super) {
|
|
62
|
-
__extends(SourceMapsShim, _super);
|
|
63
|
-
function SourceMapsShim(_argv) {
|
|
64
|
-
var _this = _super.call(this, _argv) || this;
|
|
65
|
-
_this._argv = _argv;
|
|
66
|
-
return _this;
|
|
67
|
-
}
|
|
68
|
-
SourceMapsShim.prototype.emit = function (_answers) {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
-
return __generator(this, function (_a) {
|
|
71
|
-
switch (_a.label) {
|
|
72
|
-
case 0: return [4 /*yield*/, (0, sourcemaps_wizard_1.runSourcemapsWizard)({
|
|
73
|
-
promoCode: this._argv.promoCode,
|
|
74
|
-
url: this._argv.url,
|
|
75
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
76
|
-
})];
|
|
77
|
-
case 1:
|
|
78
|
-
_a.sent();
|
|
79
|
-
return [2 /*return*/, {}];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
SourceMapsShim.prototype.shouldConfigure = function (_answers) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
-
return __generator(this, function (_a) {
|
|
87
|
-
return [2 /*return*/, this._shouldConfigure];
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
return SourceMapsShim;
|
|
92
|
-
}(BaseIntegration_1.BaseIntegration));
|
|
93
|
-
exports.SourceMapsShim = SourceMapsShim;
|
|
94
|
-
//# sourceMappingURL=SourceMapsShim.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SourceMapsShim.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/SourceMapsShim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+EAAgF;AAGhF,qDAAoD;AAEpD;;;GAGG;AACH;IAAoC,kCAAe;IACjD,wBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SACb;QAF4B,WAAK,GAAL,KAAK,CAAM;;IAExC,CAAC;IAEY,6BAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,uCAAmB,EAAC;4BACxB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;yBAC/C,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBACH,sBAAO,EAAE,EAAC;;;;KACX;IAEY,wCAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,sBAAO,IAAI,CAAC,gBAAgB,EAAC;;;KAC9B;IACH,qBAAC;AAAD,CAAC,AAjBD,CAAoC,iCAAe,GAiBlD;AAjBY,wCAAc","sourcesContent":["import type { Answers } from 'inquirer';\nimport { runSourcemapsWizard } from '../../../src/sourcemaps/sourcemaps-wizard';\n\nimport type { Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\n\n/**\n * This class just redirects to the `sourcemaps-wizard.ts` flow\n * for anyone calling the wizard without the '-i sourcemaps' flag.\n */\nexport class SourceMapsShim extends BaseIntegration {\n public constructor(protected _argv: Args) {\n super(_argv);\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runSourcemapsWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n });\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n return this._shouldConfigure;\n }\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
import type { Args } from '../../Constants';
|
|
3
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
4
|
-
/**
|
|
5
|
-
* This class just redirects to the new `sveltekit-wizard.ts` flow
|
|
6
|
-
* for anyone calling the wizard without the '-i sveltekit' flag.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SvelteKitShim extends BaseIntegration {
|
|
9
|
-
protected _argv: Args;
|
|
10
|
-
constructor(_argv: Args);
|
|
11
|
-
emit(_answers: Answers): Promise<Answers>;
|
|
12
|
-
shouldConfigure(_answers: Answers): Promise<Answers>;
|
|
13
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.SvelteKitShim = void 0;
|
|
55
|
-
var sveltekit_wizard_1 = require("../../../src/sveltekit/sveltekit-wizard");
|
|
56
|
-
var BaseIntegration_1 = require("./BaseIntegration");
|
|
57
|
-
/**
|
|
58
|
-
* This class just redirects to the new `sveltekit-wizard.ts` flow
|
|
59
|
-
* for anyone calling the wizard without the '-i sveltekit' flag.
|
|
60
|
-
*/
|
|
61
|
-
var SvelteKitShim = /** @class */ (function (_super) {
|
|
62
|
-
__extends(SvelteKitShim, _super);
|
|
63
|
-
function SvelteKitShim(_argv) {
|
|
64
|
-
var _this = _super.call(this, _argv) || this;
|
|
65
|
-
_this._argv = _argv;
|
|
66
|
-
return _this;
|
|
67
|
-
}
|
|
68
|
-
SvelteKitShim.prototype.emit = function (_answers) {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
-
return __generator(this, function (_a) {
|
|
71
|
-
switch (_a.label) {
|
|
72
|
-
case 0: return [4 /*yield*/, (0, sveltekit_wizard_1.runSvelteKitWizard)({
|
|
73
|
-
promoCode: this._argv.promoCode,
|
|
74
|
-
url: this._argv.url,
|
|
75
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
76
|
-
})];
|
|
77
|
-
case 1:
|
|
78
|
-
_a.sent();
|
|
79
|
-
return [2 /*return*/, {}];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
SvelteKitShim.prototype.shouldConfigure = function (_answers) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
-
return __generator(this, function (_a) {
|
|
87
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
88
|
-
if (this._shouldConfigure) {
|
|
89
|
-
return [2 /*return*/, this._shouldConfigure];
|
|
90
|
-
}
|
|
91
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
92
|
-
return [2 /*return*/, this.shouldConfigure];
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
return SvelteKitShim;
|
|
97
|
-
}(BaseIntegration_1.BaseIntegration));
|
|
98
|
-
exports.SvelteKitShim = SvelteKitShim;
|
|
99
|
-
//# sourceMappingURL=SvelteKitShim.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SvelteKitShim.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/SvelteKitShim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4EAA6E;AAG7E,qDAAoD;AAEpD;;;GAGG;AACH;IAAmC,iCAAe;IAChD,uBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SACb;QAF4B,WAAK,GAAL,KAAK,CAAM;;IAExC,CAAC;IAEY,4BAAI,GAAjB,UAAkB,QAAiB;;;;4BACjC,qBAAM,IAAA,qCAAkB,EAAC;4BACvB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;4BAC/B,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG;4BACnB,gBAAgB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB;yBAC/C,CAAC,EAAA;;wBAJF,SAIE,CAAC;wBACH,sBAAO,EAAE,EAAC;;;;KACX;IAEY,uCAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,kEAAkE;gBAClE,IAAI,IAAI,CAAC,gBAAgB,EAAE;oBACzB,sBAAO,IAAI,CAAC,gBAAgB,EAAC;iBAC9B;gBACD,6DAA6D;gBAC7D,sBAAO,IAAI,CAAC,eAAe,EAAC;;;KAC7B;IACH,oBAAC;AAAD,CAAC,AAtBD,CAAmC,iCAAe,GAsBjD;AAtBY,sCAAa","sourcesContent":["import type { Answers } from 'inquirer';\nimport { runSvelteKitWizard } from '../../../src/sveltekit/sveltekit-wizard';\n\nimport type { Args } from '../../Constants';\nimport { BaseIntegration } from './BaseIntegration';\n\n/**\n * This class just redirects to the new `sveltekit-wizard.ts` flow\n * for anyone calling the wizard without the '-i sveltekit' flag.\n */\nexport class SvelteKitShim extends BaseIntegration {\n public constructor(protected _argv: Args) {\n super(_argv);\n }\n\n public async emit(_answers: Answers): Promise<Answers> {\n await runSvelteKitWizard({\n promoCode: this._argv.promoCode,\n url: this._argv.url,\n telemetryEnabled: !this._argv.disableTelemetry,\n });\n return {};\n }\n\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n if (this._shouldConfigure) {\n return this._shouldConfigure;\n }\n // eslint-disable-next-line @typescript-eslint/unbound-method\n return this.shouldConfigure;\n }\n}\n"]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Answers } from 'inquirer';
|
|
2
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
3
|
-
import { Args } from '../../Constants';
|
|
4
|
-
import { runAndroidWizard } from '../../../src/android/android-wizard';
|
|
5
|
-
|
|
6
|
-
export class Android extends BaseIntegration {
|
|
7
|
-
public constructor(protected _argv: Args) {
|
|
8
|
-
super(_argv);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
12
|
-
await runAndroidWizard({
|
|
13
|
-
promoCode: this._argv.promoCode,
|
|
14
|
-
url: this._argv.url,
|
|
15
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
16
|
-
});
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
21
|
-
return this._shouldConfigure;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Answers } from 'inquirer';
|
|
2
|
-
import type { Args } from '../../Constants';
|
|
3
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
4
|
-
import { runAppleWizard } from '../../../src/apple/apple-wizard';
|
|
5
|
-
|
|
6
|
-
export class Apple extends BaseIntegration {
|
|
7
|
-
argv: Args;
|
|
8
|
-
public constructor(protected _argv: Args) {
|
|
9
|
-
super(_argv);
|
|
10
|
-
this.argv = _argv;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
14
|
-
await runAppleWizard({
|
|
15
|
-
promoCode: this._argv.promoCode,
|
|
16
|
-
url: this._argv.url,
|
|
17
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
18
|
-
// eslint-disable-next-line no-console
|
|
19
|
-
}).catch(console.error);
|
|
20
|
-
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
public async shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
25
|
-
return this._shouldConfigure;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
import { runNextjsWizard } from '../../../src/nextjs/nextjs-wizard';
|
|
3
|
-
|
|
4
|
-
import type { Args } from '../../Constants';
|
|
5
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This class just redirects to the new `nextjs-wizard.ts` flow
|
|
9
|
-
* for anyone calling the wizard without the '-i nextjs' flag.
|
|
10
|
-
*/
|
|
11
|
-
export class NextJsShim extends BaseIntegration {
|
|
12
|
-
public constructor(protected _argv: Args) {
|
|
13
|
-
super(_argv);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
17
|
-
await runNextjsWizard({
|
|
18
|
-
promoCode: this._argv.promoCode,
|
|
19
|
-
url: this._argv.url,
|
|
20
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
21
|
-
});
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public async shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
26
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
27
|
-
if (this._shouldConfigure) {
|
|
28
|
-
return this._shouldConfigure;
|
|
29
|
-
}
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
31
|
-
return this.shouldConfigure;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Answers } from 'inquirer';
|
|
2
|
-
import { type Args } from '../../Constants';
|
|
3
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
4
|
-
import { runReactNativeWizard } from '../../../src/react-native/react-native-wizard';
|
|
5
|
-
|
|
6
|
-
export class ReactNative extends BaseIntegration {
|
|
7
|
-
argv: Args;
|
|
8
|
-
public constructor(protected _argv: Args) {
|
|
9
|
-
super(_argv);
|
|
10
|
-
this.argv = _argv;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
14
|
-
await runReactNativeWizard({
|
|
15
|
-
promoCode: this._argv.promoCode,
|
|
16
|
-
url: this._argv.url,
|
|
17
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
18
|
-
uninstall: this._argv.uninstall,
|
|
19
|
-
// eslint-disable-next-line no-console
|
|
20
|
-
}).catch(console.error);
|
|
21
|
-
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public async shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
26
|
-
return this._shouldConfigure;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
|
|
3
|
-
import type { Args } from '../../Constants';
|
|
4
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
5
|
-
import { runRemixWizard } from '../../../src/remix/remix-wizard';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This class just redirects to the new `remix-wizard.ts` flow.
|
|
9
|
-
*/
|
|
10
|
-
export class Remix extends BaseIntegration {
|
|
11
|
-
public constructor(protected _argv: Args) {
|
|
12
|
-
super(_argv);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
16
|
-
await runRemixWizard({
|
|
17
|
-
promoCode: this._argv.promoCode,
|
|
18
|
-
url: this._argv.url,
|
|
19
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
20
|
-
});
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
public async shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
26
|
-
if (this._shouldConfigure) {
|
|
27
|
-
return this._shouldConfigure;
|
|
28
|
-
}
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
30
|
-
return this.shouldConfigure;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Answers } from 'inquirer';
|
|
2
|
-
import { runSourcemapsWizard } from '../../../src/sourcemaps/sourcemaps-wizard';
|
|
3
|
-
|
|
4
|
-
import type { Args } from '../../Constants';
|
|
5
|
-
import { BaseIntegration } from './BaseIntegration';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This class just redirects to the `sourcemaps-wizard.ts` flow
|
|
9
|
-
* for anyone calling the wizard without the '-i sourcemaps' flag.
|
|
10
|
-
*/
|
|
11
|
-
export class SourceMapsShim extends BaseIntegration {
|
|
12
|
-
public constructor(protected _argv: Args) {
|
|
13
|
-
super(_argv);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public async emit(_answers: Answers): Promise<Answers> {
|
|
17
|
-
await runSourcemapsWizard({
|
|
18
|
-
promoCode: this._argv.promoCode,
|
|
19
|
-
url: this._argv.url,
|
|
20
|
-
telemetryEnabled: !this._argv.disableTelemetry,
|
|
21
|
-
});
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public async shouldConfigure(_answers: Answers): Promise<Answers> {
|
|
26
|
-
return this._shouldConfigure;
|
|
27
|
-
}
|
|
28
|
-
}
|