hotstaq 0.5.3
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/.dockerignore +123 -0
- package/.eslintignore +17 -0
- package/.eslintrc.js +11 -0
- package/.vscode/launch.json +201 -0
- package/.vscode/settings.json +2 -0
- package/.vscode/tasks.json +88 -0
- package/CONTRIBUTING.md +157 -0
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/bin/hotstaq +3 -0
- package/bin/hotstaq.cmd +1 -0
- package/build/src/Hot.d.ts +167 -0
- package/build/src/Hot.d.ts.map +1 -0
- package/build/src/Hot.js +365 -0
- package/build/src/Hot.js.map +1 -0
- package/build/src/HotAPI.d.ts +137 -0
- package/build/src/HotAPI.d.ts.map +1 -0
- package/build/src/HotAPI.js +353 -0
- package/build/src/HotAPI.js.map +1 -0
- package/build/src/HotAgentAPI.d.ts +22 -0
- package/build/src/HotAgentAPI.d.ts.map +1 -0
- package/build/src/HotAgentAPI.js +85 -0
- package/build/src/HotAgentAPI.js.map +1 -0
- package/build/src/HotAgentRoute.d.ts +17 -0
- package/build/src/HotAgentRoute.d.ts.map +1 -0
- package/build/src/HotAgentRoute.js +109 -0
- package/build/src/HotAgentRoute.js.map +1 -0
- package/build/src/HotBuilder.d.ts +52 -0
- package/build/src/HotBuilder.d.ts.map +1 -0
- package/build/src/HotBuilder.js +242 -0
- package/build/src/HotBuilder.js.map +1 -0
- package/build/src/HotClient.d.ts +31 -0
- package/build/src/HotClient.d.ts.map +1 -0
- package/build/src/HotClient.js +19 -0
- package/build/src/HotClient.js.map +1 -0
- package/build/src/HotComponent.d.ts +118 -0
- package/build/src/HotComponent.d.ts.map +1 -0
- package/build/src/HotComponent.js +89 -0
- package/build/src/HotComponent.js.map +1 -0
- package/build/src/HotCreator.d.ts +88 -0
- package/build/src/HotCreator.d.ts.map +1 -0
- package/build/src/HotCreator.js +445 -0
- package/build/src/HotCreator.js.map +1 -0
- package/build/src/HotDB.d.ts +69 -0
- package/build/src/HotDB.d.ts.map +1 -0
- package/build/src/HotDB.js +29 -0
- package/build/src/HotDB.js.map +1 -0
- package/build/src/HotDBConnectionInterface.d.ts +40 -0
- package/build/src/HotDBConnectionInterface.d.ts.map +1 -0
- package/build/src/HotDBConnectionInterface.js +3 -0
- package/build/src/HotDBConnectionInterface.js.map +1 -0
- package/build/src/HotFile.d.ts +134 -0
- package/build/src/HotFile.d.ts.map +1 -0
- package/build/src/HotFile.js +454 -0
- package/build/src/HotFile.js.map +1 -0
- package/build/src/HotGenerator.d.ts +80 -0
- package/build/src/HotGenerator.d.ts.map +1 -0
- package/build/src/HotGenerator.js +342 -0
- package/build/src/HotGenerator.js.map +1 -0
- package/build/src/HotHTTPServer.d.ts +162 -0
- package/build/src/HotHTTPServer.d.ts.map +1 -0
- package/build/src/HotHTTPServer.js +863 -0
- package/build/src/HotHTTPServer.js.map +1 -0
- package/build/src/HotIO.d.ts +47 -0
- package/build/src/HotIO.d.ts.map +1 -0
- package/build/src/HotIO.js +232 -0
- package/build/src/HotIO.js.map +1 -0
- package/build/src/HotLog.d.ts +60 -0
- package/build/src/HotLog.d.ts.map +1 -0
- package/build/src/HotLog.js +126 -0
- package/build/src/HotLog.js.map +1 -0
- package/build/src/HotPage.d.ts +125 -0
- package/build/src/HotPage.d.ts.map +1 -0
- package/build/src/HotPage.js +178 -0
- package/build/src/HotPage.js.map +1 -0
- package/build/src/HotRoute.d.ts +82 -0
- package/build/src/HotRoute.d.ts.map +1 -0
- package/build/src/HotRoute.js +83 -0
- package/build/src/HotRoute.js.map +1 -0
- package/build/src/HotRouteMethod.d.ts +129 -0
- package/build/src/HotRouteMethod.d.ts.map +1 -0
- package/build/src/HotRouteMethod.js +84 -0
- package/build/src/HotRouteMethod.js.map +1 -0
- package/build/src/HotServer.d.ts +152 -0
- package/build/src/HotServer.d.ts.map +1 -0
- package/build/src/HotServer.js +109 -0
- package/build/src/HotServer.js.map +1 -0
- package/build/src/HotSetAsWeb.d.ts +2 -0
- package/build/src/HotSetAsWeb.d.ts.map +1 -0
- package/build/src/HotSetAsWeb.js +5 -0
- package/build/src/HotSetAsWeb.js.map +1 -0
- package/build/src/HotStaq.d.ts +603 -0
- package/build/src/HotStaq.d.ts.map +1 -0
- package/build/src/HotStaq.js +1260 -0
- package/build/src/HotStaq.js.map +1 -0
- package/build/src/HotStaqWeb.d.ts +18 -0
- package/build/src/HotStaqWeb.d.ts.map +1 -0
- package/build/src/HotStaqWeb.js +44 -0
- package/build/src/HotStaqWeb.js.map +1 -0
- package/build/src/HotTestDriver.d.ts +63 -0
- package/build/src/HotTestDriver.d.ts.map +1 -0
- package/build/src/HotTestDriver.js +187 -0
- package/build/src/HotTestDriver.js.map +1 -0
- package/build/src/HotTestElement.d.ts +71 -0
- package/build/src/HotTestElement.d.ts.map +1 -0
- package/build/src/HotTestElement.js +37 -0
- package/build/src/HotTestElement.js.map +1 -0
- package/build/src/HotTestMap.d.ts +83 -0
- package/build/src/HotTestMap.d.ts.map +1 -0
- package/build/src/HotTestMap.js +58 -0
- package/build/src/HotTestMap.js.map +1 -0
- package/build/src/HotTestSeleniumDriver.d.ts +86 -0
- package/build/src/HotTestSeleniumDriver.d.ts.map +1 -0
- package/build/src/HotTestSeleniumDriver.js +400 -0
- package/build/src/HotTestSeleniumDriver.js.map +1 -0
- package/build/src/HotTester.d.ts +188 -0
- package/build/src/HotTester.d.ts.map +1 -0
- package/build/src/HotTester.js +622 -0
- package/build/src/HotTester.js.map +1 -0
- package/build/src/HotTesterAPI.d.ts +15 -0
- package/build/src/HotTesterAPI.d.ts.map +1 -0
- package/build/src/HotTesterAPI.js +161 -0
- package/build/src/HotTesterAPI.js.map +1 -0
- package/build/src/HotTesterMocha.d.ts +50 -0
- package/build/src/HotTesterMocha.d.ts.map +1 -0
- package/build/src/HotTesterMocha.js +205 -0
- package/build/src/HotTesterMocha.js.map +1 -0
- package/build/src/HotTesterMochaSelenium.d.ts +70 -0
- package/build/src/HotTesterMochaSelenium.d.ts.map +1 -0
- package/build/src/HotTesterMochaSelenium.js +257 -0
- package/build/src/HotTesterMochaSelenium.js.map +1 -0
- package/build/src/HotTesterServer.d.ts +114 -0
- package/build/src/HotTesterServer.d.ts.map +1 -0
- package/build/src/HotTesterServer.js +575 -0
- package/build/src/HotTesterServer.js.map +1 -0
- package/build/src/api copy.d.ts +2 -0
- package/build/src/api copy.d.ts.map +1 -0
- package/build/src/api copy.js +153 -0
- package/build/src/api copy.js.map +1 -0
- package/build/src/api-web.d.ts +2 -0
- package/build/src/api-web.d.ts.map +1 -0
- package/build/src/api-web.js +45 -0
- package/build/src/api-web.js.map +1 -0
- package/build/src/api.d.ts +33 -0
- package/build/src/api.d.ts.map +1 -0
- package/build/src/api.js +78 -0
- package/build/src/api.js.map +1 -0
- package/build/src/cli.d.ts +2 -0
- package/build/src/cli.d.ts.map +1 -0
- package/build/src/cli.js +1040 -0
- package/build/src/cli.js.map +1 -0
- package/build/src/schemas/HotDBInflux.d.ts +63 -0
- package/build/src/schemas/HotDBInflux.d.ts.map +1 -0
- package/build/src/schemas/HotDBInflux.js +239 -0
- package/build/src/schemas/HotDBInflux.js.map +1 -0
- package/build/src/schemas/HotDBMigration.d.ts +19 -0
- package/build/src/schemas/HotDBMigration.d.ts.map +1 -0
- package/build/src/schemas/HotDBMigration.js +15 -0
- package/build/src/schemas/HotDBMigration.js.map +1 -0
- package/build/src/schemas/HotDBMySQL.d.ts +65 -0
- package/build/src/schemas/HotDBMySQL.d.ts.map +1 -0
- package/build/src/schemas/HotDBMySQL.js +387 -0
- package/build/src/schemas/HotDBMySQL.js.map +1 -0
- package/build/src/schemas/HotDBSchema.d.ts +15 -0
- package/build/src/schemas/HotDBSchema.d.ts.map +1 -0
- package/build/src/schemas/HotDBSchema.js +19 -0
- package/build/src/schemas/HotDBSchema.js.map +1 -0
- package/build/src/schemas/influx/InfluxSchema.d.ts +14 -0
- package/build/src/schemas/influx/InfluxSchema.d.ts.map +1 -0
- package/build/src/schemas/influx/InfluxSchema.js +33 -0
- package/build/src/schemas/influx/InfluxSchema.js.map +1 -0
- package/build/src/schemas/mysql/MySQLSchema.d.ts +39 -0
- package/build/src/schemas/mysql/MySQLSchema.d.ts.map +1 -0
- package/build/src/schemas/mysql/MySQLSchema.js +151 -0
- package/build/src/schemas/mysql/MySQLSchema.js.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaField.d.ts +168 -0
- package/build/src/schemas/mysql/MySQLSchemaField.d.ts.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaField.js +260 -0
- package/build/src/schemas/mysql/MySQLSchemaField.js.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.d.ts +49 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.d.ts.map +1 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.js +310 -0
- package/build/src/schemas/mysql/MySQLSchemaTable.js.map +1 -0
- package/build-web/HotStaq.js +2 -0
- package/build-web/HotStaq.min.js +119 -0
- package/build-web/HotStaqTests_HelloWorldAPI.js +133 -0
- package/builder/docker/Dockerfile.linux.gen +42 -0
- package/builder/docker/README.md +36 -0
- package/builder/docker/app/start.sh +8 -0
- package/builder/docker/dockerignore +3 -0
- package/builder/docker/scripts/build.bat +11 -0
- package/builder/docker/scripts/build.sh +11 -0
- package/builder/docker/scripts/start-app.bat +7 -0
- package/builder/docker/scripts/start-app.sh +7 -0
- package/builder/docker/scripts/stop-app.bat +5 -0
- package/builder/docker/scripts/stop-app.sh +5 -0
- package/builder/docker-compose/docker-compose.gen.yaml +41 -0
- package/builder/docker-compose/env-skeleton +4 -0
- package/creator/project/.vscode/launch.json +59 -0
- package/creator/project/README.md +20 -0
- package/creator/project/gitignore +118 -0
- package/creator/project/npmignore +118 -0
- package/creator/public/api-test.hott +28 -0
- package/creator/public/index.hott +12 -0
- package/creator/ts/src/AppAPI.ts +30 -0
- package/creator/ts/src/HelloWorld.ts +39 -0
- package/creator/ts/src/WebExport.ts +7 -0
- package/creator/ts/tsconfig-web.json +73 -0
- package/creator/ts/tsconfig.json +73 -0
- package/creator/ts/webpack-api.config.js +57 -0
- package/dbstart.sh +19 -0
- package/dbstop.sh +4 -0
- package/docs/.nojekyll +1 -0
- package/docs/README.md +130 -0
- package/docs/classes/Hot.md +477 -0
- package/docs/classes/HotAPI.md +369 -0
- package/docs/classes/HotClient.md +95 -0
- package/docs/classes/HotComponent.md +279 -0
- package/docs/classes/HotDB.md +247 -0
- package/docs/classes/HotDBInflux.md +404 -0
- package/docs/classes/HotDBMigration.md +80 -0
- package/docs/classes/HotDBMySQL.md +310 -0
- package/docs/classes/HotDBSchema.md +51 -0
- package/docs/classes/HotFile.md +353 -0
- package/docs/classes/HotHTTPServer.md +700 -0
- package/docs/classes/HotLog.md +162 -0
- package/docs/classes/HotPage.md +357 -0
- package/docs/classes/HotRoute.md +312 -0
- package/docs/classes/HotRouteMethod.md +271 -0
- package/docs/classes/HotServer.md +311 -0
- package/docs/classes/HotStaq.md +1155 -0
- package/docs/classes/HotTestDestination.md +58 -0
- package/docs/classes/HotTestDriver.md +332 -0
- package/docs/classes/HotTestElement.md +88 -0
- package/docs/classes/HotTestElementOptions.md +71 -0
- package/docs/classes/HotTestMap.md +92 -0
- package/docs/classes/HotTestSeleniumDriver.md +542 -0
- package/docs/classes/HotTester.md +653 -0
- package/docs/classes/HotTesterAPI.md +493 -0
- package/docs/classes/HotTesterMocha.md +843 -0
- package/docs/classes/HotTesterMochaSelenium.md +896 -0
- package/docs/classes/HotTesterServer.md +633 -0
- package/docs/classes/InfluxSchema.md +74 -0
- package/docs/classes/MySQLSchema.md +199 -0
- package/docs/classes/MySQLSchemaField.md +330 -0
- package/docs/classes/MySQLSchemaTable.md +176 -0
- package/docs/enums/ConnectionStatus.md +43 -0
- package/docs/enums/DeveloperMode.md +38 -0
- package/docs/enums/EventExecutionType.md +43 -0
- package/docs/enums/HTTPMethod.md +32 -0
- package/docs/enums/HotDBGenerationType.md +30 -0
- package/docs/enums/HotLogLevel.md +88 -0
- package/docs/interfaces/HotDBConnectionInterface.md +116 -0
- package/docs/interfaces/HotDestination.md +62 -0
- package/docs/interfaces/HotSite.md +187 -0
- package/docs/interfaces/HotSiteMapPath.md +37 -0
- package/docs/interfaces/HotSiteRoute.md +79 -0
- package/docs/interfaces/HotStartOptions.md +115 -0
- package/docs/interfaces/HotTestPage.md +44 -0
- package/docs/interfaces/HotTestStop.md +62 -0
- package/docs/interfaces/IHotComponent.md +135 -0
- package/docs/interfaces/IHotStaq.md +118 -0
- package/docs/interfaces/IHotTestElement.md +54 -0
- package/docs/interfaces/IHotTestElementOptions.md +43 -0
- package/docs/interfaces/MySQLResults.md +43 -0
- package/docs/interfaces/MySQLSchemaFieldResult.md +75 -0
- package/docs/modules.md +182 -0
- package/package.json +65 -0
- package/selenium-start.sh +7 -0
- package/selenium-stop.sh +3 -0
- package/src/Hot.ts +319 -0
- package/src/HotAPI.ts +386 -0
- package/src/HotAgentAPI.ts +43 -0
- package/src/HotAgentRoute.ts +44 -0
- package/src/HotBuilder.ts +221 -0
- package/src/HotClient.ts +40 -0
- package/src/HotComponent.ts +158 -0
- package/src/HotCreator.ts +470 -0
- package/src/HotDB.ts +79 -0
- package/src/HotDBConnectionInterface.ts +40 -0
- package/src/HotFile.ts +617 -0
- package/src/HotGenerator.ts +446 -0
- package/src/HotHTTPServer.ts +954 -0
- package/src/HotIO.ts +160 -0
- package/src/HotLog.ts +158 -0
- package/src/HotPage.ts +206 -0
- package/src/HotRoute.ts +137 -0
- package/src/HotRouteMethod.ts +216 -0
- package/src/HotServer.ts +211 -0
- package/src/HotSetAsWeb.ts +3 -0
- package/src/HotStaq.ts +1881 -0
- package/src/HotTestDriver.ts +171 -0
- package/src/HotTestElement.ts +97 -0
- package/src/HotTestMap.ts +130 -0
- package/src/HotTestSeleniumDriver.ts +381 -0
- package/src/HotTester.ts +696 -0
- package/src/HotTesterAPI.ts +126 -0
- package/src/HotTesterMocha.ts +133 -0
- package/src/HotTesterMochaSelenium.ts +189 -0
- package/src/HotTesterServer.ts +551 -0
- package/src/api-web.ts +48 -0
- package/src/api.ts +103 -0
- package/src/cli.ts +1225 -0
- package/src/schemas/HotDBInflux.ts +211 -0
- package/src/schemas/HotDBMigration.ts +24 -0
- package/src/schemas/HotDBMySQL.ts +312 -0
- package/src/schemas/HotDBSchema.ts +21 -0
- package/src/schemas/influx/InfluxSchema.ts +19 -0
- package/src/schemas/mysql/MySQLSchema.ts +90 -0
- package/src/schemas/mysql/MySQLSchemaField.ts +408 -0
- package/src/schemas/mysql/MySQLSchemaTable.ts +353 -0
- package/temp/HotStaqWeb.ts +59 -0
- package/tsconfig-generator.json +17 -0
- package/tsconfig-web.json +74 -0
- package/tsconfig.json +73 -0
- package/webpack.config.generator.js +41 -0
- package/webpack.config.js +53 -0
- package/webpack.config.tests.js +56 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
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;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.HotComponent = void 0;
|
|
40
|
+
var HotStaq_1 = require("./HotStaq");
|
|
41
|
+
/**
|
|
42
|
+
* A component to preprocess.
|
|
43
|
+
*/
|
|
44
|
+
var HotComponent = /** @class */ (function () {
|
|
45
|
+
function HotComponent(copy, api) {
|
|
46
|
+
if (api === void 0) { api = null; }
|
|
47
|
+
if (copy instanceof HotStaq_1.HotStaq) {
|
|
48
|
+
this.processor = copy;
|
|
49
|
+
this.htmlElement = null;
|
|
50
|
+
this.name = "";
|
|
51
|
+
this.tag = "";
|
|
52
|
+
this.api = null;
|
|
53
|
+
this.elementOptions = undefined;
|
|
54
|
+
this.type = "";
|
|
55
|
+
this.value = null;
|
|
56
|
+
this.events = {};
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
this.processor = copy.processor;
|
|
60
|
+
this.htmlElement = copy.htmlElement || null;
|
|
61
|
+
this.name = copy.name || "";
|
|
62
|
+
this.tag = copy.tag || this.name;
|
|
63
|
+
this.api = copy.api || null;
|
|
64
|
+
this.elementOptions = copy.elementOptions || undefined;
|
|
65
|
+
this.type = copy.type || "";
|
|
66
|
+
this.value = copy.value || null;
|
|
67
|
+
this.events = {};
|
|
68
|
+
}
|
|
69
|
+
if (api != null)
|
|
70
|
+
this.api = api;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Event that's called when this component is created. This is
|
|
74
|
+
* called before output is called. Right after this is called,
|
|
75
|
+
* the attributes from the HTMLElement will be processed. If
|
|
76
|
+
* the functionality of the attributes processing need to be
|
|
77
|
+
* overwritten, use the handleAttributes method to handle them.
|
|
78
|
+
*/
|
|
79
|
+
HotComponent.prototype.onCreated = function (element) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
return __generator(this, function (_a) {
|
|
82
|
+
return [2 /*return*/, (element)];
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
return HotComponent;
|
|
87
|
+
}());
|
|
88
|
+
exports.HotComponent = HotComponent;
|
|
89
|
+
//# sourceMappingURL=HotComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotComponent.js","sourceRoot":"","sources":["../../src/HotComponent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAoC;AAmDpC;;GAEG;AACH;IA6CC,sBAAa,IAA6B,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BF,mBAAC;AAAD,CAAC,AAtGD,IAsGC;AAtGqB,oCAAY"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { HotLog } from "./HotLog";
|
|
2
|
+
/**
|
|
3
|
+
* Creates stuff for the CLI.
|
|
4
|
+
*/
|
|
5
|
+
export declare class HotCreator {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the app to create.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The type of project to create. Can be:
|
|
12
|
+
* * web
|
|
13
|
+
* * web-api
|
|
14
|
+
* * api
|
|
15
|
+
*/
|
|
16
|
+
type: string;
|
|
17
|
+
/**
|
|
18
|
+
* The language to use when creating. Default is "ts". Can be:
|
|
19
|
+
* * ts
|
|
20
|
+
*/
|
|
21
|
+
language: string;
|
|
22
|
+
/**
|
|
23
|
+
* The output directory.
|
|
24
|
+
*/
|
|
25
|
+
outputDir: string;
|
|
26
|
+
/**
|
|
27
|
+
* The logger.
|
|
28
|
+
*/
|
|
29
|
+
logger: HotLog;
|
|
30
|
+
/**
|
|
31
|
+
* The commands used while creating the app.
|
|
32
|
+
*/
|
|
33
|
+
createCommands: {
|
|
34
|
+
/**
|
|
35
|
+
* The init command to use after the project has been created.
|
|
36
|
+
*/
|
|
37
|
+
init: string;
|
|
38
|
+
/**
|
|
39
|
+
* The transpile command to use after the project has been initialized.
|
|
40
|
+
*/
|
|
41
|
+
transpileTS: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The NPM commands used.
|
|
45
|
+
*/
|
|
46
|
+
npmCommands: {
|
|
47
|
+
/**
|
|
48
|
+
* The start command to use.
|
|
49
|
+
*/
|
|
50
|
+
start: string;
|
|
51
|
+
/**
|
|
52
|
+
* The dev start command to use.
|
|
53
|
+
*/
|
|
54
|
+
dev: string;
|
|
55
|
+
/**
|
|
56
|
+
* The test command to use.
|
|
57
|
+
*/
|
|
58
|
+
test: string;
|
|
59
|
+
/**
|
|
60
|
+
* The build command to use.
|
|
61
|
+
*/
|
|
62
|
+
build: string;
|
|
63
|
+
/**
|
|
64
|
+
* The web api build command to use.
|
|
65
|
+
*/
|
|
66
|
+
buildWebAPI: string;
|
|
67
|
+
/**
|
|
68
|
+
* The debug web api build command to use.
|
|
69
|
+
*/
|
|
70
|
+
buildWebAPIDebug: string;
|
|
71
|
+
};
|
|
72
|
+
constructor(logger: HotLog, name?: string);
|
|
73
|
+
/**
|
|
74
|
+
* Copy the libraries over to a new location.
|
|
75
|
+
*/
|
|
76
|
+
copyLibraries(location: string): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Create an app.
|
|
79
|
+
*/
|
|
80
|
+
create(): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Replace keys in a file.
|
|
83
|
+
*/
|
|
84
|
+
protected replaceKeysInFile(filepath: string, keys: {
|
|
85
|
+
[name: string]: string;
|
|
86
|
+
}): Promise<void>;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=HotCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotCreator.d.ts","sourceRoot":"","sources":["../../src/HotCreator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,qBAAa,UAAU;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IACH;;OAEG;IACH,WAAW,EAAE;QACX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QACpB;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KACzB,CAAC;gBAEU,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW;IAqB9C;;OAEG;IACG,aAAa,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrD;;OAEG;IACG,MAAM,IAAK,OAAO,CAAC,IAAI,CAAC;IAqV9B;;OAEG;cACa,iBAAiB,CAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAatG"}
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
31
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
32
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
33
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
34
|
+
function step(op) {
|
|
35
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
36
|
+
while (_) try {
|
|
37
|
+
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;
|
|
38
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
39
|
+
switch (op[0]) {
|
|
40
|
+
case 0: case 1: t = op; break;
|
|
41
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
42
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
43
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
44
|
+
default:
|
|
45
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
46
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
47
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
48
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
49
|
+
if (t[2]) _.ops.pop();
|
|
50
|
+
_.trys.pop(); continue;
|
|
51
|
+
}
|
|
52
|
+
op = body.call(thisArg, _);
|
|
53
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
54
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.HotCreator = void 0;
|
|
59
|
+
var ppath = __importStar(require("path"));
|
|
60
|
+
var HotIO_1 = require("./HotIO");
|
|
61
|
+
var HotStaq_1 = require("./HotStaq");
|
|
62
|
+
/**
|
|
63
|
+
* Creates stuff for the CLI.
|
|
64
|
+
*/
|
|
65
|
+
var HotCreator = /** @class */ (function () {
|
|
66
|
+
function HotCreator(logger, name) {
|
|
67
|
+
if (name === void 0) { name = ""; }
|
|
68
|
+
this.name = name;
|
|
69
|
+
this.type = "web-api";
|
|
70
|
+
this.language = "ts";
|
|
71
|
+
this.outputDir = "";
|
|
72
|
+
this.logger = logger;
|
|
73
|
+
this.createCommands = {
|
|
74
|
+
init: "git init && npm install",
|
|
75
|
+
transpileTS: "npm run build"
|
|
76
|
+
};
|
|
77
|
+
this.npmCommands = {
|
|
78
|
+
start: "",
|
|
79
|
+
dev: "",
|
|
80
|
+
test: "hotstaq test",
|
|
81
|
+
build: "",
|
|
82
|
+
buildWebAPI: "",
|
|
83
|
+
buildWebAPIDebug: ""
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Copy the libraries over to a new location.
|
|
88
|
+
*/
|
|
89
|
+
HotCreator.prototype.copyLibraries = function (location) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
+
var buildWebDir;
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
switch (_a.label) {
|
|
94
|
+
case 0:
|
|
95
|
+
buildWebDir = ppath.normalize("".concat(__dirname, "/../../build-web"));
|
|
96
|
+
return [4 /*yield*/, HotIO_1.HotIO.copyFiles(buildWebDir, ppath.normalize(location))];
|
|
97
|
+
case 1:
|
|
98
|
+
_a.sent();
|
|
99
|
+
return [2 /*return*/];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Create an app.
|
|
106
|
+
*/
|
|
107
|
+
HotCreator.prototype.create = function () {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
+
var readMeBuildSteps, packageJSON, packageJSONstr, hotSiteJSON, hotSiteJSONstr, projectDir, publicDir, filesDir, buildWebDir, launchJSON, launchJSONstr, tasksJSON, tasksJSONstr;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
this.logger.info("Creating \"".concat(this.name, "\" of type ").concat(this.type, " for language ").concat(this.language, "..."));
|
|
114
|
+
HotStaq_1.HotStaq.checkHotSiteName(this.name, true);
|
|
115
|
+
this.outputDir = ppath.normalize("".concat(this.outputDir));
|
|
116
|
+
return [4 /*yield*/, HotIO_1.HotIO.mkdir(ppath.join(this.outputDir, "/public/js/"))];
|
|
117
|
+
case 1:
|
|
118
|
+
_a.sent();
|
|
119
|
+
return [4 /*yield*/, HotIO_1.HotIO.mkdir(ppath.join(this.outputDir, "/.vscode/"))];
|
|
120
|
+
case 2:
|
|
121
|
+
_a.sent();
|
|
122
|
+
return [4 /*yield*/, HotIO_1.HotIO.mkdir(ppath.join(this.outputDir, "/src/"))];
|
|
123
|
+
case 3:
|
|
124
|
+
_a.sent();
|
|
125
|
+
readMeBuildSteps = "";
|
|
126
|
+
if (this.language === "ts") {
|
|
127
|
+
readMeBuildSteps = "\n\tnpm run build\n\nThis will transpile the TypeScript into ES6 JavaScript by default. After this is done building, enter: \n\t\t\t";
|
|
128
|
+
}
|
|
129
|
+
packageJSON = {
|
|
130
|
+
"name": this.name,
|
|
131
|
+
"description": "",
|
|
132
|
+
"version": "1.0.0",
|
|
133
|
+
"main": "index.js",
|
|
134
|
+
"scripts": {},
|
|
135
|
+
"keywords": [],
|
|
136
|
+
"author": "",
|
|
137
|
+
"license": "ISC",
|
|
138
|
+
"dependencies": {
|
|
139
|
+
"hotstaq": "^0.5.23",
|
|
140
|
+
"copy-webpack-plugin": "^6.0.3"
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
if (this.npmCommands.start === "")
|
|
144
|
+
this.npmCommands.start = "hotstaq --hotsite ./HotSite.json run --server-type ".concat(this.type);
|
|
145
|
+
if (this.npmCommands.start !== "")
|
|
146
|
+
packageJSON.scripts["start"] = this.npmCommands.start;
|
|
147
|
+
if (this.npmCommands.dev === "")
|
|
148
|
+
this.npmCommands.dev = "hotstaq --hotsite ./HotSite.json --development-mode run --server-type ".concat(this.type, " --web-http-port 8080");
|
|
149
|
+
if (this.npmCommands.dev !== "")
|
|
150
|
+
packageJSON.scripts["dev"] = this.npmCommands.dev;
|
|
151
|
+
if (this.npmCommands.test !== "")
|
|
152
|
+
packageJSON.scripts["test"] = this.npmCommands.test;
|
|
153
|
+
if (this.npmCommands.build === "") {
|
|
154
|
+
if (this.language === "ts")
|
|
155
|
+
this.npmCommands.build = "tsc --build ./tsconfig.json";
|
|
156
|
+
}
|
|
157
|
+
if (this.npmCommands.build !== "")
|
|
158
|
+
packageJSON.scripts["build"] = this.npmCommands.build;
|
|
159
|
+
if (this.npmCommands.buildWebAPI === "") {
|
|
160
|
+
if (this.language === "ts")
|
|
161
|
+
this.npmCommands.buildWebAPI = "webpack --mode=production --config ./webpack-api.config.js";
|
|
162
|
+
}
|
|
163
|
+
if (this.npmCommands.buildWebAPI !== "")
|
|
164
|
+
packageJSON.scripts["build-web"] = this.npmCommands.buildWebAPI;
|
|
165
|
+
if (this.npmCommands.buildWebAPIDebug === "") {
|
|
166
|
+
if (this.language === "ts")
|
|
167
|
+
this.npmCommands.buildWebAPIDebug = "webpack --mode=development --debug --config ./webpack-api.config.js";
|
|
168
|
+
}
|
|
169
|
+
if (this.npmCommands.buildWebAPIDebug !== "")
|
|
170
|
+
packageJSON.scripts["build-web-debug"] = this.npmCommands.buildWebAPIDebug;
|
|
171
|
+
// If this is a web only build, remove the build web scripts from packageJSON.
|
|
172
|
+
if (this.type === "web") {
|
|
173
|
+
if (packageJSON.scripts["build-web"] != null)
|
|
174
|
+
delete packageJSON.scripts["build-web"];
|
|
175
|
+
if (packageJSON.scripts["build-web-debug"] != null)
|
|
176
|
+
delete packageJSON.scripts["build-web-debug"];
|
|
177
|
+
}
|
|
178
|
+
if (this.language === "ts")
|
|
179
|
+
packageJSON.main = "build/AppAPI.js";
|
|
180
|
+
packageJSONstr = JSON.stringify(packageJSON, null, 2);
|
|
181
|
+
return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/package.json")), packageJSONstr)];
|
|
182
|
+
case 4:
|
|
183
|
+
_a.sent();
|
|
184
|
+
hotSiteJSON = {
|
|
185
|
+
name: this.name,
|
|
186
|
+
server: {
|
|
187
|
+
globalApi: "AppAPI",
|
|
188
|
+
serveDirectories: [{
|
|
189
|
+
route: "/",
|
|
190
|
+
localPath: "./public/"
|
|
191
|
+
}]
|
|
192
|
+
},
|
|
193
|
+
testing: {
|
|
194
|
+
web: {
|
|
195
|
+
tester: "HotTesterMochaSelenium",
|
|
196
|
+
testerAPIUrl: "http://127.0.0.1:8183"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
if (this.language === "ts") {
|
|
201
|
+
if ((this.type === "web-api") || (this.type === "api")) {
|
|
202
|
+
hotSiteJSON.apis = {};
|
|
203
|
+
hotSiteJSON.apis["AppAPI"] = {
|
|
204
|
+
"jsapi": "./js/".concat(this.name, ".js"),
|
|
205
|
+
"libraryName": "".concat(this.name, "Web"),
|
|
206
|
+
"apiName": "AppAPI",
|
|
207
|
+
"filepath": "./build/AppAPI.js"
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
hotSiteJSONstr = JSON.stringify(hotSiteJSON, null, "\t");
|
|
212
|
+
return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/HotSite.json")), hotSiteJSONstr)];
|
|
213
|
+
case 5:
|
|
214
|
+
_a.sent();
|
|
215
|
+
this.logger.info("Copying files...");
|
|
216
|
+
projectDir = ppath.normalize("".concat(__dirname, "/../../creator/project"));
|
|
217
|
+
return [4 /*yield*/, HotIO_1.HotIO.copyFiles(projectDir, ppath.normalize("".concat(this.outputDir, "/")))];
|
|
218
|
+
case 6:
|
|
219
|
+
_a.sent();
|
|
220
|
+
return [4 /*yield*/, HotIO_1.HotIO.moveFile("".concat(this.outputDir, "/gitignore"), "".concat(this.outputDir, "/.gitignore"))];
|
|
221
|
+
case 7:
|
|
222
|
+
_a.sent();
|
|
223
|
+
return [4 /*yield*/, HotIO_1.HotIO.moveFile("".concat(this.outputDir, "/npmignore"), "".concat(this.outputDir, "/.npmignore"))];
|
|
224
|
+
case 8:
|
|
225
|
+
_a.sent();
|
|
226
|
+
return [4 /*yield*/, this.replaceKeysInFile(ppath.normalize("".concat(this.outputDir, "/README.md")), {
|
|
227
|
+
"APPNAME": this.name,
|
|
228
|
+
"BUILDSTEPS": readMeBuildSteps
|
|
229
|
+
})];
|
|
230
|
+
case 9:
|
|
231
|
+
_a.sent();
|
|
232
|
+
if (!((this.type === "web") || (this.type === "web-api"))) return [3 /*break*/, 11];
|
|
233
|
+
publicDir = ppath.normalize("".concat(__dirname, "/../../creator/public"));
|
|
234
|
+
return [4 /*yield*/, HotIO_1.HotIO.copyFiles(publicDir, ppath.normalize("".concat(this.outputDir, "/public/")))];
|
|
235
|
+
case 10:
|
|
236
|
+
_a.sent();
|
|
237
|
+
_a.label = 11;
|
|
238
|
+
case 11:
|
|
239
|
+
if (!(this.language === "ts")) return [3 /*break*/, 14];
|
|
240
|
+
if (!((this.type === "web-api") || (this.type === "api"))) return [3 /*break*/, 14];
|
|
241
|
+
filesDir = ppath.normalize("".concat(__dirname, "/../../creator/ts"));
|
|
242
|
+
return [4 /*yield*/, HotIO_1.HotIO.copyFiles(filesDir, ppath.normalize("".concat(this.outputDir, "/")))];
|
|
243
|
+
case 12:
|
|
244
|
+
_a.sent();
|
|
245
|
+
return [4 /*yield*/, this.replaceKeysInFile(ppath.normalize("".concat(this.outputDir, "/webpack-api.config.js")), {
|
|
246
|
+
"APPNAME": this.name
|
|
247
|
+
})];
|
|
248
|
+
case 13:
|
|
249
|
+
_a.sent();
|
|
250
|
+
_a.label = 14;
|
|
251
|
+
case 14:
|
|
252
|
+
this.logger.info("Finished copying files...");
|
|
253
|
+
this.logger.info("Copying HotStaq JS files...");
|
|
254
|
+
buildWebDir = ppath.normalize("".concat(__dirname, "/../../build-web"));
|
|
255
|
+
return [4 /*yield*/, HotIO_1.HotIO.copyFiles(buildWebDir, ppath.normalize("".concat(this.outputDir, "/public/js/")))];
|
|
256
|
+
case 15:
|
|
257
|
+
_a.sent();
|
|
258
|
+
this.logger.info("Finished copying public files...");
|
|
259
|
+
this.logger.info("Creating VSCode files...");
|
|
260
|
+
launchJSON = {
|
|
261
|
+
"version": "0.2.0",
|
|
262
|
+
"configurations": [
|
|
263
|
+
{
|
|
264
|
+
"type": "node",
|
|
265
|
+
"request": "launch",
|
|
266
|
+
"name": "Debug Web Server",
|
|
267
|
+
"program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
|
|
268
|
+
"skipFiles": [
|
|
269
|
+
"<node_internals>/**"
|
|
270
|
+
],
|
|
271
|
+
"outputCapture": "std",
|
|
272
|
+
"args": [
|
|
273
|
+
"--development-mode",
|
|
274
|
+
"--hotsite",
|
|
275
|
+
"./HotSite.json",
|
|
276
|
+
"run",
|
|
277
|
+
"--web-http-port",
|
|
278
|
+
"8080"
|
|
279
|
+
],
|
|
280
|
+
"env": {}
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
};
|
|
284
|
+
if (this.language === "ts") {
|
|
285
|
+
if ((this.type === "web-api") || (this.type === "api")) {
|
|
286
|
+
launchJSON["configurations"].push({
|
|
287
|
+
"type": "node",
|
|
288
|
+
"request": "launch",
|
|
289
|
+
"name": "Debug Web/API Server",
|
|
290
|
+
"program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
|
|
291
|
+
"skipFiles": [
|
|
292
|
+
"<node_internals>/**"
|
|
293
|
+
],
|
|
294
|
+
"outputCapture": "std",
|
|
295
|
+
"args": [
|
|
296
|
+
"--development-mode",
|
|
297
|
+
"--hotsite",
|
|
298
|
+
"./HotSite.json",
|
|
299
|
+
"run",
|
|
300
|
+
"--server-type",
|
|
301
|
+
"web-api",
|
|
302
|
+
"--web-http-port",
|
|
303
|
+
"8080",
|
|
304
|
+
"--api-http-port",
|
|
305
|
+
"8081"
|
|
306
|
+
],
|
|
307
|
+
"env": {}
|
|
308
|
+
}, {
|
|
309
|
+
"type": "node",
|
|
310
|
+
"request": "launch",
|
|
311
|
+
"name": "Debug API Server",
|
|
312
|
+
"program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
|
|
313
|
+
"skipFiles": [
|
|
314
|
+
"<node_internals>/**"
|
|
315
|
+
],
|
|
316
|
+
"outputCapture": "std",
|
|
317
|
+
"args": [
|
|
318
|
+
"--development-mode",
|
|
319
|
+
"--hotsite",
|
|
320
|
+
"./HotSite.json",
|
|
321
|
+
"run",
|
|
322
|
+
"--server-type",
|
|
323
|
+
"api",
|
|
324
|
+
"--api-http-port",
|
|
325
|
+
"8081"
|
|
326
|
+
],
|
|
327
|
+
"env": {}
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
launchJSON["configurations"].push({
|
|
332
|
+
"type": "node",
|
|
333
|
+
"request": "launch",
|
|
334
|
+
"name": "Run Web Tests",
|
|
335
|
+
"skipFiles": [
|
|
336
|
+
"<node_internals>/**"
|
|
337
|
+
],
|
|
338
|
+
"program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
|
|
339
|
+
"args": [
|
|
340
|
+
"--development-mode",
|
|
341
|
+
"--hotsite",
|
|
342
|
+
"./HotSite.json",
|
|
343
|
+
"test",
|
|
344
|
+
"--web-http-port",
|
|
345
|
+
"8080"
|
|
346
|
+
],
|
|
347
|
+
"env": {}
|
|
348
|
+
});
|
|
349
|
+
launchJSON["configurations"].push({
|
|
350
|
+
"type": "pwa-node",
|
|
351
|
+
"request": "attach",
|
|
352
|
+
"name": "Remote Debugger",
|
|
353
|
+
"skipFiles": [
|
|
354
|
+
"<node_internals>/**"
|
|
355
|
+
],
|
|
356
|
+
"localRoot": "${workspaceFolder}",
|
|
357
|
+
"address": "127.0.0.1",
|
|
358
|
+
"port": 9229,
|
|
359
|
+
"remoteRoot": "/app/".concat(this.name)
|
|
360
|
+
});
|
|
361
|
+
launchJSONstr = JSON.stringify(launchJSON, null, "\t");
|
|
362
|
+
return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/.vscode/launch.json")), launchJSONstr)];
|
|
363
|
+
case 16:
|
|
364
|
+
_a.sent();
|
|
365
|
+
tasksJSON = {
|
|
366
|
+
"version": "2.0.0",
|
|
367
|
+
"tasks": []
|
|
368
|
+
};
|
|
369
|
+
if (this.language === "ts") {
|
|
370
|
+
if ((this.type === "web-api") || (this.type === "api")) {
|
|
371
|
+
tasksJSON["tasks"].push({
|
|
372
|
+
"type": "shell",
|
|
373
|
+
"group": "build",
|
|
374
|
+
"runOptions": {
|
|
375
|
+
"instanceLimit": 1
|
|
376
|
+
},
|
|
377
|
+
"problemMatcher": [],
|
|
378
|
+
"label": "Build Web API Debug",
|
|
379
|
+
"command": "npx webpack --mode=development --config=webpack-api.config.js --debug --watch"
|
|
380
|
+
}, {
|
|
381
|
+
"type": "typescript",
|
|
382
|
+
"tsconfig": "tsconfig.json",
|
|
383
|
+
"option": "watch",
|
|
384
|
+
"problemMatcher": [
|
|
385
|
+
"$tsc-watch"
|
|
386
|
+
],
|
|
387
|
+
"group": "build",
|
|
388
|
+
"runOptions": {
|
|
389
|
+
"instanceLimit": 1
|
|
390
|
+
},
|
|
391
|
+
"label": "Build Server"
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
tasksJSONstr = JSON.stringify(tasksJSON, null, "\t");
|
|
396
|
+
return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/.vscode/tasks.json")), tasksJSONstr)];
|
|
397
|
+
case 17:
|
|
398
|
+
_a.sent();
|
|
399
|
+
this.logger.info("Finished creating VSCode files...");
|
|
400
|
+
this.logger.info("Creating git repo and installing modules...");
|
|
401
|
+
return [4 /*yield*/, HotIO_1.HotIO.exec("cd ".concat(this.outputDir, " && ").concat(this.createCommands.init))];
|
|
402
|
+
case 18:
|
|
403
|
+
_a.sent();
|
|
404
|
+
this.logger.info("Finished creating git repo and installing modules...");
|
|
405
|
+
if (!(this.language === "ts")) return [3 /*break*/, 20];
|
|
406
|
+
this.logger.info("Transpiling TypeScript...");
|
|
407
|
+
return [4 /*yield*/, HotIO_1.HotIO.exec("cd ".concat(this.outputDir, " && ").concat(this.createCommands.transpileTS))];
|
|
408
|
+
case 19:
|
|
409
|
+
_a.sent();
|
|
410
|
+
this.logger.info("Finished transpiling TypeScript...");
|
|
411
|
+
_a.label = 20;
|
|
412
|
+
case 20:
|
|
413
|
+
this.logger.info("Finished creating \"".concat(this.name, "\"..."));
|
|
414
|
+
return [2 /*return*/];
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* Replace keys in a file.
|
|
421
|
+
*/
|
|
422
|
+
HotCreator.prototype.replaceKeysInFile = function (filepath, keys) {
|
|
423
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
424
|
+
var contents, key, value;
|
|
425
|
+
return __generator(this, function (_a) {
|
|
426
|
+
switch (_a.label) {
|
|
427
|
+
case 0: return [4 /*yield*/, HotIO_1.HotIO.readTextFile(filepath)];
|
|
428
|
+
case 1:
|
|
429
|
+
contents = _a.sent();
|
|
430
|
+
for (key in keys) {
|
|
431
|
+
value = keys[key];
|
|
432
|
+
contents = HotStaq_1.HotStaq.replaceKey(contents, key, value);
|
|
433
|
+
}
|
|
434
|
+
return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(filepath, contents)];
|
|
435
|
+
case 2:
|
|
436
|
+
_a.sent();
|
|
437
|
+
return [2 /*return*/];
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
});
|
|
441
|
+
};
|
|
442
|
+
return HotCreator;
|
|
443
|
+
}());
|
|
444
|
+
exports.HotCreator = HotCreator;
|
|
445
|
+
//# sourceMappingURL=HotCreator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HotCreator.js","sourceRoot":"","sources":["../../src/HotCreator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA8B;AAE9B,iCAAgC;AAChC,qCAA6C;AAG7C;;GAEG;AACH;IAqEC,oBAAa,MAAc,EAAE,IAAiB;QAAjB,qBAAA,EAAA,SAAiB;QAE7C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,c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