authup 0.0.0 → 0.1.1
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/LICENSE +21 -0
- package/README.md +39 -4
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +27 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/info.d.ts +3 -0
- package/dist/commands/info.d.ts.map +1 -0
- package/dist/commands/info.js +41 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/server.d.ts +3 -0
- package/dist/commands/server.d.ts.map +1 -0
- package/dist/commands/server.js +55 -0
- package/dist/commands/server.js.map +1 -0
- package/dist/commands/start.d.ts +3 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +53 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/ui.d.ts +3 -0
- package/dist/commands/ui.d.ts.map +1 -0
- package/dist/commands/ui.js +51 -0
- package/dist/commands/ui.js.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +25 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/module.d.ts +3 -0
- package/dist/config/module.d.ts.map +1 -0
- package/dist/config/module.js +39 -0
- package/dist/config/module.js.map +1 -0
- package/dist/config/read.d.ts +3 -0
- package/dist/config/read.d.ts.map +1 -0
- package/dist/config/read.js +40 -0
- package/dist/config/read.js.map +1 -0
- package/dist/config/type.d.ts +11 -0
- package/dist/config/type.d.ts.map +1 -0
- package/dist/config/type.js +9 -0
- package/dist/config/type.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/packages/index.d.ts +4 -0
- package/dist/packages/index.d.ts.map +1 -0
- package/dist/packages/index.js +26 -0
- package/dist/packages/index.js.map +1 -0
- package/dist/packages/server/commands/index.d.ts +5 -0
- package/dist/packages/server/commands/index.d.ts.map +1 -0
- package/dist/packages/server/commands/index.js +27 -0
- package/dist/packages/server/commands/index.js.map +1 -0
- package/dist/packages/server/commands/module.d.ts +6 -0
- package/dist/packages/server/commands/module.d.ts.map +1 -0
- package/dist/packages/server/commands/module.js +56 -0
- package/dist/packages/server/commands/module.js.map +1 -0
- package/dist/packages/server/commands/reset.d.ts +5 -0
- package/dist/packages/server/commands/reset.d.ts.map +1 -0
- package/dist/packages/server/commands/reset.js +36 -0
- package/dist/packages/server/commands/reset.js.map +1 -0
- package/dist/packages/server/commands/start.d.ts +3 -0
- package/dist/packages/server/commands/start.d.ts.map +1 -0
- package/dist/packages/server/commands/start.js +35 -0
- package/dist/packages/server/commands/start.js.map +1 -0
- package/dist/packages/server/commands/utils.d.ts +4 -0
- package/dist/packages/server/commands/utils.d.ts.map +1 -0
- package/dist/packages/server/commands/utils.js +27 -0
- package/dist/packages/server/commands/utils.js.map +1 -0
- package/dist/packages/server/constants.d.ts +5 -0
- package/dist/packages/server/constants.d.ts.map +1 -0
- package/dist/packages/server/constants.js +15 -0
- package/dist/packages/server/constants.js.map +1 -0
- package/dist/packages/server/index.d.ts +3 -0
- package/dist/packages/server/index.d.ts.map +1 -0
- package/dist/packages/server/index.js +25 -0
- package/dist/packages/server/index.js.map +1 -0
- package/dist/packages/type.d.ts +5 -0
- package/dist/packages/type.d.ts.map +1 -0
- package/dist/packages/type.js +9 -0
- package/dist/packages/type.js.map +1 -0
- package/dist/packages/ui/commands/index.d.ts +3 -0
- package/dist/packages/ui/commands/index.d.ts.map +1 -0
- package/dist/packages/ui/commands/index.js +25 -0
- package/dist/packages/ui/commands/index.js.map +1 -0
- package/dist/packages/ui/commands/module.d.ts +6 -0
- package/dist/packages/ui/commands/module.d.ts.map +1 -0
- package/dist/packages/ui/commands/module.js +45 -0
- package/dist/packages/ui/commands/module.js.map +1 -0
- package/dist/packages/ui/commands/start.d.ts +11 -0
- package/dist/packages/ui/commands/start.d.ts.map +1 -0
- package/dist/packages/ui/commands/start.js +58 -0
- package/dist/packages/ui/commands/start.js.map +1 -0
- package/dist/packages/ui/config/index.d.ts +3 -0
- package/dist/packages/ui/config/index.d.ts.map +1 -0
- package/dist/packages/ui/config/index.js +25 -0
- package/dist/packages/ui/config/index.js.map +1 -0
- package/dist/packages/ui/config/module.d.ts +4 -0
- package/dist/packages/ui/config/module.d.ts.map +1 -0
- package/dist/packages/ui/config/module.js +22 -0
- package/dist/packages/ui/config/module.js.map +1 -0
- package/dist/packages/ui/config/validate.d.ts +3 -0
- package/dist/packages/ui/config/validate.d.ts.map +1 -0
- package/dist/packages/ui/config/validate.js +23 -0
- package/dist/packages/ui/config/validate.js.map +1 -0
- package/dist/packages/ui/constants.d.ts +4 -0
- package/dist/packages/ui/constants.d.ts.map +1 -0
- package/dist/packages/ui/constants.js +14 -0
- package/dist/packages/ui/constants.js.map +1 -0
- package/dist/packages/ui/index.d.ts +5 -0
- package/dist/packages/ui/index.d.ts.map +1 -0
- package/dist/packages/ui/index.js +27 -0
- package/dist/packages/ui/index.js.map +1 -0
- package/dist/packages/ui/type.d.ts +7 -0
- package/dist/packages/ui/type.d.ts.map +1 -0
- package/dist/packages/ui/type.js +9 -0
- package/dist/packages/ui/type.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +26 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/line-breaks.d.ts +2 -0
- package/dist/utils/line-breaks.d.ts.map +1 -0
- package/dist/utils/line-breaks.js +14 -0
- package/dist/utils/line-breaks.js.map +1 -0
- package/dist/utils/process-output.d.ts +2 -0
- package/dist/utils/process-output.d.ts.map +1 -0
- package/dist/utils/process-output.js +37 -0
- package/dist/utils/process-output.js.map +1 -0
- package/dist/utils/stringify-object-args.d.ts +2 -0
- package/dist/utils/stringify-object-args.d.ts.map +1 -0
- package/dist/utils/stringify-object-args.js +19 -0
- package/dist/utils/stringify-object-args.js.map +1 -0
- package/package.json +47 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-2022 Peter Placzek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,39 @@
|
|
|
1
|
-
# authup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
# authup 💎
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/authup)
|
|
4
|
+
[](https://github.com/Tada5hi/authup/actions/workflows/main.yml)
|
|
5
|
+
[](https://snyk.io/test/github/Tada5hi/authup)
|
|
6
|
+
|
|
7
|
+
This package contains the CLI for authup.
|
|
8
|
+
|
|
9
|
+
**Table of Contents**
|
|
10
|
+
|
|
11
|
+
- [Documentation](#documentation)
|
|
12
|
+
- [Usage](#usage)
|
|
13
|
+
- [License](#license)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Documentation
|
|
17
|
+
|
|
18
|
+
To read the docs, visit [https://authup.org](https://authup.org)
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
The easiest way to get the framework up and running, is by using the global CLI.
|
|
23
|
+
Therefore, execute the following shell command.
|
|
24
|
+
|
|
25
|
+
```shell
|
|
26
|
+
$ npx authup start
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This will lunch the following application with default settings:
|
|
30
|
+
- Frontend Application: `http://localhost:3000/`
|
|
31
|
+
- Backend Application: `http://localhost:3010/`
|
|
32
|
+
|
|
33
|
+
To customize the settings follow the [documentation](#documentation).
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
Made with 💚
|
|
38
|
+
|
|
39
|
+
Published under [MIT License](./LICENSE).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./info"), exports);
|
|
24
|
+
__exportStar(require("./server"), exports);
|
|
25
|
+
__exportStar(require("./start"), exports);
|
|
26
|
+
__exportStar(require("./ui"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,uCAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,QAgBxC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.buildInfoCommand = void 0;
|
|
22
|
+
const consola_1 = __importDefault(require("consola"));
|
|
23
|
+
const config_1 = require("../config");
|
|
24
|
+
function buildInfoCommand(cac) {
|
|
25
|
+
cac.command('info', 'Get information about the configuration.')
|
|
26
|
+
.action(() => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const config = yield (0, config_1.createConfig)();
|
|
28
|
+
consola_1.default.info(`Environment: ${config.server.base.env}`);
|
|
29
|
+
consola_1.default.info(`RootPath: ${config.server.base.rootPath}`);
|
|
30
|
+
consola_1.default.info(`WritableDirectoryPath: ${config.server.base.writableDirectoryPath}`);
|
|
31
|
+
consola_1.default.info(`UI Host: ${config.ui.host}`);
|
|
32
|
+
consola_1.default.info(`UI Port: ${config.ui.port}`);
|
|
33
|
+
consola_1.default.info(`Server Host: ${config.server.http.host}`);
|
|
34
|
+
consola_1.default.info(`Server Port: ${config.server.http.port}`);
|
|
35
|
+
consola_1.default.info('Report an issue: https://github.com/tada5hi/authup/issues/new');
|
|
36
|
+
consola_1.default.info('Suggest an improvement: https://github.com/tada5hi/authup/discussions/new');
|
|
37
|
+
consola_1.default.info('Read documentation: https://authup.org');
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
exports.buildInfoCommand = buildInfoCommand;
|
|
41
|
+
//# sourceMappingURL=info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAGH,sDAA8B;AAC9B,sCAAyC;AAEzC,SAAgB,gBAAgB,CAAC,GAAQ;IACrC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,0CAA0C,CAAC;SAC1D,MAAM,CAAC,GAAS,EAAE;QACf,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,GAAE,CAAC;QAEpC,iBAAO,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACvD,iBAAO,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzD,iBAAO,CAAC,IAAI,CAAC,0BAA0B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;QACnF,iBAAO,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3C,iBAAO,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QAC3C,iBAAO,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxD,iBAAO,CAAC,IAAI,CAAC,gBAAgB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxD,iBAAO,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;QAC9E,iBAAO,CAAC,IAAI,CAAC,2EAA2E,CAAC,CAAC;QAC1F,iBAAO,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IAC3D,CAAC,CAAA,CAAC,CAAC;AACX,CAAC;AAhBD,4CAgBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAQ1B,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,QA4B1C"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.buildServerCommand = void 0;
|
|
22
|
+
const consola_1 = __importDefault(require("consola"));
|
|
23
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
24
|
+
const process_1 = __importDefault(require("process"));
|
|
25
|
+
const packages_1 = require("../packages");
|
|
26
|
+
function buildServerCommand(cac) {
|
|
27
|
+
cac.command('server <cmd>', 'Run a specific command.')
|
|
28
|
+
.action((command) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const root = process_1.default.cwd();
|
|
30
|
+
switch (command) {
|
|
31
|
+
case packages_1.ServerCommand.START: {
|
|
32
|
+
yield (0, packages_1.startServer)({
|
|
33
|
+
args: {
|
|
34
|
+
root,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
case packages_1.ServerCommand.RESET: {
|
|
40
|
+
yield (0, packages_1.resetServer)({
|
|
41
|
+
args: {
|
|
42
|
+
root,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
default: {
|
|
48
|
+
consola_1.default.warn(`The command ${chalk_1.default.red(command)} was not recognized.`);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
exports.buildServerCommand = buildServerCommand;
|
|
55
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAGH,sDAA8B;AAC9B,kDAA0B;AAC1B,sDAA8B;AAC9B,0CAEqB;AAErB,SAAgB,kBAAkB,CAAC,GAAQ;IACvC,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,yBAAyB,CAAC;SACjD,MAAM,CAAC,CAAO,OAAe,EAAE,EAAE;QAC9B,MAAM,IAAI,GAAG,iBAAO,CAAC,GAAG,EAAE,CAAC;QAE3B,QAAQ,OAAO,EAAE;YACb,KAAK,wBAAa,CAAC,KAAK,CAAC,CAAC;gBACtB,MAAM,IAAA,sBAAW,EAAC;oBACd,IAAI,EAAE;wBACF,IAAI;qBACP;iBACJ,CAAC,CAAC;gBACH,MAAM;aACT;YACD,KAAK,wBAAa,CAAC,KAAK,CAAC,CAAC;gBACtB,MAAM,IAAA,sBAAW,EAAC;oBACd,IAAI,EAAE;wBACF,IAAI;qBACP;iBACJ,CAAC,CAAC;gBACH,MAAM;aACT;YACD,OAAO,CAAC,CAAC;gBACL,iBAAO,CAAC,IAAI,CAAC,eAAe,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;gBACtE,MAAM;aACT;SACJ;IACL,CAAC,CAAA,CAAC,CAAC;AACX,CAAC;AA5BD,gDA4BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAO1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,QA6BzC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.buildStartCommand = void 0;
|
|
22
|
+
const process_1 = __importDefault(require("process"));
|
|
23
|
+
const config_1 = require("../config");
|
|
24
|
+
const packages_1 = require("../packages");
|
|
25
|
+
function buildStartCommand(cac) {
|
|
26
|
+
cac
|
|
27
|
+
.command('start [...services]', 'Start one or many services.')
|
|
28
|
+
.action((services) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
if (services.length === 0) {
|
|
30
|
+
services = ['server', 'ui'];
|
|
31
|
+
}
|
|
32
|
+
const config = yield (0, config_1.createConfig)();
|
|
33
|
+
const root = process_1.default.cwd();
|
|
34
|
+
if (services.indexOf('server') !== -1) {
|
|
35
|
+
yield (0, packages_1.startServer)({
|
|
36
|
+
env: {
|
|
37
|
+
root,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
if (services.indexOf('ui') !== -1) {
|
|
42
|
+
yield (0, packages_1.startUI)({
|
|
43
|
+
env: {
|
|
44
|
+
port: config.ui.port,
|
|
45
|
+
host: config.ui.host,
|
|
46
|
+
apiUrl: config.server.http.publicUrl,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
exports.buildStartCommand = buildStartCommand;
|
|
53
|
+
//# sourceMappingURL=start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAGH,sDAA8B;AAC9B,sCAAyC;AACzC,0CAEqB;AAErB,SAAgB,iBAAiB,CAAC,GAAQ;IACtC,GAAG;SACE,OAAO,CAAC,qBAAqB,EAAE,6BAA6B,CAAC;SAC7D,MAAM,CAAC,CAAO,QAAkB,EAAE,EAAE;QACjC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YACvB,QAAQ,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;SAC/B;QAED,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,GAAE,CAAC;QACpC,MAAM,IAAI,GAAG,iBAAO,CAAC,GAAG,EAAE,CAAC;QAE3B,IAAI,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;YACnC,MAAM,IAAA,sBAAW,EAAC;gBACd,GAAG,EAAE;oBACD,IAAI;iBACP;aACJ,CAAC,CAAC;SACN;QAED,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YAC/B,MAAM,IAAA,kBAAO,EAAC;gBACV,GAAG,EAAE;oBACD,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI;oBACpB,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI;oBACpB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS;iBACvC;aACJ,CAAC,CAAC;SACN;IACL,CAAC,CAAA,CAAC,CAAC;AACX,CAAC;AA7BD,8CA6BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/commands/ui.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAM1B,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,QAwBtC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.buildUiCommand = void 0;
|
|
22
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
23
|
+
const consola_1 = __importDefault(require("consola"));
|
|
24
|
+
const config_1 = require("../config");
|
|
25
|
+
const packages_1 = require("../packages");
|
|
26
|
+
function buildUiCommand(cac) {
|
|
27
|
+
cac
|
|
28
|
+
.command('ui <cmd>', 'Run a specific command')
|
|
29
|
+
.option('-p, --port [port]', 'Specify the port for starting the application')
|
|
30
|
+
.option('-h, --host [host]', 'Specify the host for starting a specific application')
|
|
31
|
+
.action((command, ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
const config = yield (0, config_1.createConfig)();
|
|
33
|
+
switch (command) {
|
|
34
|
+
case packages_1.UICommand.START: {
|
|
35
|
+
yield (0, packages_1.startUI)({
|
|
36
|
+
env: {
|
|
37
|
+
port: ctx.port || config.ui.port,
|
|
38
|
+
host: ctx.host || config.ui.host,
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
default: {
|
|
44
|
+
consola_1.default.warn(`The command ${chalk_1.default.red(command)} was not recognized.`);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
exports.buildUiCommand = buildUiCommand;
|
|
51
|
+
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/commands/ui.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAGH,kDAA0B;AAC1B,sDAA8B;AAC9B,sCAAyC;AACzC,0CAAiD;AAEjD,SAAgB,cAAc,CAAC,GAAQ;IACnC,GAAG;SACE,OAAO,CAAC,UAAU,EAAE,wBAAwB,CAAC;SAC7C,MAAM,CAAC,mBAAmB,EAAE,+CAA+C,CAAC;SAC5E,MAAM,CAAC,mBAAmB,EAAE,sDAAsD,CAAC;SACnF,MAAM,CAAC,CAAO,OAAe,EAAE,GAAwB,EAAE,EAAE;QACxD,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAY,GAAE,CAAC;QAEpC,QAAQ,OAAO,EAAE;YACb,KAAK,oBAAS,CAAC,KAAK,CAAC,CAAC;gBAClB,MAAM,IAAA,kBAAO,EAAC;oBACV,GAAG,EAAE;wBACD,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,EAAE,CAAC,IAAI;wBAChC,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,EAAE,CAAC,IAAI;qBACnC;iBACJ,CAAC,CAAC;gBACH,MAAM;aACT;YACD,OAAO,CAAC,CAAC;gBACL,iBAAO,CAAC,IAAI,CAAC,eAAe,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;gBACtE,MAAM;aACT;SACJ;IACL,CAAC,CAAA,CAAC,CAAC;AACX,CAAC;AAxBD,wCAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./module"), exports);
|
|
24
|
+
__exportStar(require("./type"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/config/module.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,wBAAsB,YAAY,IAAK,OAAO,CAAC,OAAO,CAAC,CAiBtD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.createConfig = void 0;
|
|
19
|
+
const common_1 = require("@authup/common");
|
|
20
|
+
const server_1 = require("@authup/server");
|
|
21
|
+
const packages_1 = require("../packages");
|
|
22
|
+
const read_1 = require("./read");
|
|
23
|
+
function createConfig() {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const global = yield (0, read_1.readConfig)();
|
|
26
|
+
const server = (0, server_1.setOptions)(global.server);
|
|
27
|
+
const ui = (0, packages_1.validateUiConfig)(global.ui);
|
|
28
|
+
if (typeof ui.apiUrl === 'undefined' &&
|
|
29
|
+
server.http.publicUrl) {
|
|
30
|
+
ui.apiUrl = (0, common_1.makeURLPublicAccessible)(server.http.publicUrl);
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
server: (0, server_1.setOptions)(global.server),
|
|
34
|
+
ui: (0, packages_1.extendUiConfig)(ui),
|
|
35
|
+
};
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
exports.createConfig = createConfig;
|
|
39
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/config/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;AAEH,2CAAyD;AACzD,2CAA4C;AAC5C,0CAA+D;AAC/D,iCAAoC;AAGpC,SAAsB,YAAY;;QAC9B,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAU,GAAE,CAAC;QAElC,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACzC,MAAM,EAAE,GAAG,IAAA,2BAAgB,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAEvC,IACI,OAAO,EAAE,CAAC,MAAM,KAAK,WAAW;YAChC,MAAM,CAAC,IAAI,CAAC,SAAS,EACvB;YACE,EAAE,CAAC,MAAM,GAAG,IAAA,gCAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC9D;QAED,OAAO;YACH,MAAM,EAAE,IAAA,mBAAU,EAAC,MAAM,CAAC,MAAM,CAAC;YACjC,EAAE,EAAE,IAAA,yBAAc,EAAC,EAAE,CAAC;SACzB,CAAC;IACN,CAAC;CAAA;AAjBD,oCAiBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/config/read.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,wBAAsB,UAAU,CAC5B,aAAa,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,YAAY,CAAC,CAiBxB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.readConfig = void 0;
|
|
22
|
+
const fs_1 = __importDefault(require("fs"));
|
|
23
|
+
const path_1 = __importDefault(require("path"));
|
|
24
|
+
const rc9_1 = require("rc9");
|
|
25
|
+
function readConfig(directoryPath) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
directoryPath !== null && directoryPath !== void 0 ? directoryPath : (directoryPath = process.cwd());
|
|
28
|
+
const filePath = path_1.default.resolve(directoryPath, 'authup.conf');
|
|
29
|
+
try {
|
|
30
|
+
yield fs_1.default.promises.access(filePath);
|
|
31
|
+
}
|
|
32
|
+
catch (e) {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
const file = yield fs_1.default.promises.readFile(filePath, { encoding: 'utf-8' });
|
|
36
|
+
return (0, rc9_1.parse)(file);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
exports.readConfig = readConfig;
|
|
40
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/config/read.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;AAEH,4CAAoB;AACpB,gDAAwB;AACxB,6BAA4B;AAG5B,SAAsB,UAAU,CAC5B,aAAsB;;QAEtB,aAAa,aAAb,aAAa,cAAb,aAAa,IAAb,aAAa,GAAK,OAAO,CAAC,GAAG,EAAE,EAAC;QAEhC,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAE5D,IAAI;YACA,MAAM,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;SACtC;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,EAAE,CAAC;SACb;QAED,MAAM,IAAI,GAAG,MAAM,YAAE,CAAC,QAAQ,CAAC,QAAQ,CACnC,QAAQ,EACR,EAAE,QAAQ,EAAE,OAAO,EAAE,CACxB,CAAC;QAEF,OAAO,IAAA,WAAK,EAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CAAA;AAnBD,gCAmBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Options as ServerOptions, OptionsInput as ServerOptionsInput } from '@authup/server';
|
|
2
|
+
import { UIOptions, UIOptionsInput } from '../packages';
|
|
3
|
+
export type Options = {
|
|
4
|
+
server: ServerOptions;
|
|
5
|
+
ui: UIOptions;
|
|
6
|
+
};
|
|
7
|
+
export type OptionsInput = {
|
|
8
|
+
server?: ServerOptionsInput;
|
|
9
|
+
ui?: UIOptionsInput;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/config/type.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,OAAO,GAAG;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,EAAE,SAAS,CAAA;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B,EAAE,CAAC,EAAE,cAAc,CAAA;CACtB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../src/config/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const cac_1 = __importDefault(require("cac"));
|
|
13
|
+
const commands_1 = require("./commands");
|
|
14
|
+
const cli = (0, cac_1.default)();
|
|
15
|
+
(0, commands_1.buildInfoCommand)(cli);
|
|
16
|
+
(0, commands_1.buildStartCommand)(cli);
|
|
17
|
+
(0, commands_1.buildServerCommand)(cli);
|
|
18
|
+
(0, commands_1.buildUiCommand)(cli);
|
|
19
|
+
cli.help();
|
|
20
|
+
cli.parse();
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;AAEH,8CAAsB;AAEtB,yCAIoB;AAEpB,MAAM,GAAG,GAAG,IAAA,aAAG,GAAE,CAAC;AAElB,IAAA,2BAAgB,EAAC,GAAG,CAAC,CAAC;AACtB,IAAA,4BAAiB,EAAC,GAAG,CAAC,CAAC;AACvB,IAAA,6BAAkB,EAAC,GAAG,CAAC,CAAC;AACxB,IAAA,yBAAc,EAAC,GAAG,CAAC,CAAC;AAEpB,GAAG,CAAC,IAAI,EAAE,CAAC;AAEX,GAAG,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/packages/index.ts"],"names":[],"mappings":"AAOA,cAAc,MAAM,CAAC;AACrB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022.
|
|
4
|
+
* Author Peter Placzek (tada5hi)
|
|
5
|
+
* For the full copyright and license information,
|
|
6
|
+
* view the LICENSE file that was distributed with this source code.
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./ui"), exports);
|
|
24
|
+
__exportStar(require("./server"), exports);
|
|
25
|
+
__exportStar(require("./type"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/packages/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,uCAAqB;AACrB,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/server/commands/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|