virmator 6.7.0 → 7.0.0
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/configs/configs/vite.config.ts +2 -5
- package/configs/npmignore.txt +1 -1
- package/configs/{index.html → src/index.html} +1 -1
- package/configs/src/ui/elements/vir-app.element.ts +10 -0
- package/dist/api/command/define-command-inputs.d.ts +9 -1
- package/dist/api/command/define-command-inputs.js +6 -0
- package/dist/api/run-command/check-npm-deps.js +12 -21
- package/dist/commands/code-in-markdown.command.d.ts +22 -6
- package/dist/commands/code-in-markdown.command.js +4 -1
- package/dist/commands/compile.command.d.ts +22 -6
- package/dist/commands/compile.command.js +4 -1
- package/dist/commands/extra-configs/all-extra-configs.js +8 -4
- package/dist/commands/format.command.d.ts +127 -6
- package/dist/commands/format.command.js +9 -8
- package/dist/commands/frontend.command.d.ts +97 -6
- package/dist/commands/frontend.command.js +17 -9
- package/dist/commands/init.command.d.ts +125 -5
- package/dist/commands/spellcheck.command.d.ts +22 -6
- package/dist/commands/spellcheck.command.js +4 -1
- package/dist/commands/test-web.command.d.ts +127 -6
- package/dist/commands/test-web.command.js +9 -8
- package/dist/commands/test.command.d.ts +142 -6
- package/dist/commands/test.command.js +10 -9
- package/dist/commands/upgrade-deps.command.d.ts +37 -6
- package/dist/commands/upgrade-deps.command.js +3 -2
- package/dist/compiled-base-configs/base-vite.d.ts +14 -4
- package/dist/compiled-base-configs/base-vite.js +73 -10
- package/dist/index.d.ts +705 -45
- package/package.json +6 -5
- /package/configs/{public → www-static}/index.css +0 -0
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {defineConfig} from 'vite';
|
|
1
|
+
import {defineConfig} from 'virmator/dist/compiled-base-configs/base-vite';
|
|
3
2
|
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
...baseViteConfig,
|
|
6
|
-
});
|
|
3
|
+
export default defineConfig({forGitHubPages: true}, {});
|
package/configs/npmignore.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<title>Page Name</title>
|
|
5
|
-
<script type="module" src="
|
|
5
|
+
<script type="module" src="./ui/elements/vir-app.element.ts"></script>
|
|
6
6
|
<link rel="stylesheet" type="text/css" href="/index.css" />
|
|
7
7
|
</head>
|
|
8
8
|
<body>
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { ConfigFileDefinition } from '../config/config-file-definition';
|
|
2
|
+
export declare enum NpmDepTypeEnum {
|
|
3
|
+
Regular = "regular",
|
|
4
|
+
Dev = "dev"
|
|
5
|
+
}
|
|
6
|
+
export type NpmDep = {
|
|
7
|
+
name: string;
|
|
8
|
+
type: NpmDepTypeEnum;
|
|
9
|
+
};
|
|
2
10
|
export type DefineCommandInputs<CommandName extends string = string> = Readonly<{
|
|
3
11
|
commandName: CommandName;
|
|
4
12
|
subCommandDescriptions: Readonly<Record<string, string>> | Readonly<{}>;
|
|
5
13
|
configFiles: Readonly<Record<string, Readonly<ConfigFileDefinition>>> | Readonly<{}>;
|
|
6
|
-
npmDeps: ReadonlyArray<
|
|
14
|
+
npmDeps: ReadonlyArray<NpmDep>;
|
|
7
15
|
}>;
|
|
8
16
|
export type SharedExecutorInputsAndCommandDefinition<DefineCommandInputsGeneric extends DefineCommandInputs> = DefineCommandInputsGeneric & {
|
|
9
17
|
allAvailableSubCommands: ReadonlyArray<keyof DefineCommandInputsGeneric['subCommandDescriptions'] extends string ? keyof DefineCommandInputsGeneric['subCommandDescriptions'] : never>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NpmDepTypeEnum = void 0;
|
|
4
|
+
var NpmDepTypeEnum;
|
|
5
|
+
(function (NpmDepTypeEnum) {
|
|
6
|
+
NpmDepTypeEnum["Regular"] = "regular";
|
|
7
|
+
NpmDepTypeEnum["Dev"] = "dev";
|
|
8
|
+
})(NpmDepTypeEnum || (exports.NpmDepTypeEnum = NpmDepTypeEnum = {}));
|
|
@@ -31,27 +31,15 @@ const promises_1 = require("fs/promises");
|
|
|
31
31
|
const path_1 = require("path");
|
|
32
32
|
const semver = __importStar(require("semver"));
|
|
33
33
|
const fs_2 = require("../../augments/fs");
|
|
34
|
+
const define_command_inputs_1 = require("../command/define-command-inputs");
|
|
34
35
|
async function updateDepsAsNeeded(inputs) {
|
|
35
36
|
try {
|
|
36
37
|
const upgradeVersions = await getVersionsToUpgradeTo(inputs);
|
|
37
|
-
const depsToUpdate =
|
|
38
|
-
.map((npmDep, index) => {
|
|
39
|
-
const version = upgradeVersions[index];
|
|
40
|
-
if (version) {
|
|
41
|
-
return {
|
|
42
|
-
npmDep,
|
|
43
|
-
version,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
.filter(common_1.isTruthy);
|
|
38
|
+
const depsToUpdate = upgradeVersions.filter(common_1.isTruthy);
|
|
51
39
|
await (0, common_1.awaitedForEach)(depsToUpdate, async (depDetails) => {
|
|
52
|
-
const depToInstall = `${depDetails.
|
|
40
|
+
const depToInstall = `${depDetails.name}@${depDetails.version}`;
|
|
53
41
|
console.info(`${node_js_1.logColors.info}Installing ${depToInstall}...`);
|
|
54
|
-
await (0, node_js_1.runShellCommand)(`npm i -D ${depToInstall}`, {
|
|
42
|
+
await (0, node_js_1.runShellCommand)(`npm i ${depDetails.type === define_command_inputs_1.NpmDepTypeEnum.Dev ? '-D' : ''} ${depToInstall}`, {
|
|
55
43
|
cwd: inputs.repoDir,
|
|
56
44
|
rejectOnError: true,
|
|
57
45
|
});
|
|
@@ -80,17 +68,20 @@ async function getVersionsToUpgradeTo({ repoDir, packageDir, npmDeps: neededNpmD
|
|
|
80
68
|
...virmatorPackageJson.dependencies,
|
|
81
69
|
};
|
|
82
70
|
return neededNpmDeps.map((npmDep) => {
|
|
83
|
-
const currentRepoVersion = cleanDepVersion(currentRepoDepVersions[npmDep]);
|
|
84
|
-
const virmatorDepVersion = cleanDepVersion(packageDepVersions[npmDep]);
|
|
71
|
+
const currentRepoVersion = cleanDepVersion(currentRepoDepVersions[npmDep.name]);
|
|
72
|
+
const virmatorDepVersion = cleanDepVersion(packageDepVersions[npmDep.name]);
|
|
85
73
|
if (!virmatorDepVersion) {
|
|
86
|
-
throw new Error(`No npm dep version listed for "${npmDep}" in ${packageBinName}'s dependencies.`);
|
|
74
|
+
throw new Error(`No npm dep version listed for "${npmDep.name}" in ${packageBinName}'s dependencies.`);
|
|
87
75
|
}
|
|
88
76
|
if (currentRepoVersion !== '*' &&
|
|
89
77
|
(!currentRepoVersion ||
|
|
90
78
|
semver.gt(virmatorDepVersion, currentRepoVersion) ||
|
|
91
|
-
(packageDepVersions[npmDep].match(/^\d/) &&
|
|
79
|
+
(packageDepVersions[npmDep.name].match(/^\d/) &&
|
|
92
80
|
virmatorDepVersion !== currentRepoVersion))) {
|
|
93
|
-
return
|
|
81
|
+
return {
|
|
82
|
+
...npmDep,
|
|
83
|
+
version: virmatorDepVersion,
|
|
84
|
+
};
|
|
94
85
|
}
|
|
95
86
|
else {
|
|
96
87
|
return undefined;
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
+
import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
|
|
1
2
|
export declare const codeInMarkdownCommandDefinition: {
|
|
2
3
|
commandName: "code-in-markdown";
|
|
3
4
|
subCommandDescriptions: {
|
|
4
5
|
readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
|
|
5
6
|
};
|
|
6
7
|
configFiles: {};
|
|
7
|
-
npmDeps: readonly [
|
|
8
|
+
npmDeps: readonly [{
|
|
9
|
+
readonly name: "markdown-code-example-inserter";
|
|
10
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
11
|
+
}];
|
|
8
12
|
} & {
|
|
9
13
|
allAvailableSubCommands: readonly "check"[];
|
|
10
|
-
subCommands: import("
|
|
14
|
+
subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
|
|
11
15
|
commandName: "code-in-markdown";
|
|
12
16
|
subCommandDescriptions: {
|
|
13
17
|
readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
|
|
14
18
|
};
|
|
15
19
|
configFiles: {};
|
|
16
|
-
npmDeps: readonly [
|
|
20
|
+
npmDeps: readonly [{
|
|
21
|
+
readonly name: "markdown-code-example-inserter";
|
|
22
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
23
|
+
}];
|
|
17
24
|
}>;
|
|
18
25
|
} & {
|
|
19
26
|
executor: import("..").CommandExecutor<{
|
|
@@ -22,7 +29,10 @@ export declare const codeInMarkdownCommandDefinition: {
|
|
|
22
29
|
readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
|
|
23
30
|
};
|
|
24
31
|
configFiles: {};
|
|
25
|
-
npmDeps: readonly [
|
|
32
|
+
npmDeps: readonly [{
|
|
33
|
+
readonly name: "markdown-code-example-inserter";
|
|
34
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
35
|
+
}];
|
|
26
36
|
}>;
|
|
27
37
|
createDescription: import("..").CreateDescriptionsCallback<{
|
|
28
38
|
commandName: "code-in-markdown";
|
|
@@ -30,7 +40,10 @@ export declare const codeInMarkdownCommandDefinition: {
|
|
|
30
40
|
readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
|
|
31
41
|
};
|
|
32
42
|
configFiles: {};
|
|
33
|
-
npmDeps: readonly [
|
|
43
|
+
npmDeps: readonly [{
|
|
44
|
+
readonly name: "markdown-code-example-inserter";
|
|
45
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
46
|
+
}];
|
|
34
47
|
}>;
|
|
35
48
|
extend: import("../api/command/define-command").ExtendCallback<{
|
|
36
49
|
commandName: "code-in-markdown";
|
|
@@ -38,6 +51,9 @@ export declare const codeInMarkdownCommandDefinition: {
|
|
|
38
51
|
readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
|
|
39
52
|
};
|
|
40
53
|
configFiles: {};
|
|
41
|
-
npmDeps: readonly [
|
|
54
|
+
npmDeps: readonly [{
|
|
55
|
+
readonly name: "markdown-code-example-inserter";
|
|
56
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
57
|
+
}];
|
|
42
58
|
}>;
|
|
43
59
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.codeInMarkdownCommandDefinition = void 0;
|
|
4
4
|
const define_command_1 = require("../api/command/define-command");
|
|
5
|
+
const define_command_inputs_1 = require("../api/command/define-command-inputs");
|
|
5
6
|
const package_paths_1 = require("../file-paths/package-paths");
|
|
6
7
|
exports.codeInMarkdownCommandDefinition = (0, define_command_1.defineCommand)({
|
|
7
8
|
commandName: 'code-in-markdown',
|
|
@@ -9,7 +10,9 @@ exports.codeInMarkdownCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
9
10
|
check: 'Check that markdown files have their examples inserted and are up-to-date.',
|
|
10
11
|
},
|
|
11
12
|
configFiles: {},
|
|
12
|
-
npmDeps: [
|
|
13
|
+
npmDeps: [
|
|
14
|
+
{ name: 'markdown-code-example-inserter', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
15
|
+
],
|
|
13
16
|
}, ({ commandName, packageBinName }) => {
|
|
14
17
|
return {
|
|
15
18
|
sections: [
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
|
|
1
2
|
export declare const compileCommandDefinition: {
|
|
2
3
|
commandName: "compile";
|
|
3
4
|
subCommandDescriptions: {
|
|
@@ -9,10 +10,13 @@ export declare const compileCommandDefinition: {
|
|
|
9
10
|
readonly copyToPathRelativeToRepoDir: "tsconfig.json";
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
|
-
npmDeps: readonly [
|
|
13
|
+
npmDeps: readonly [{
|
|
14
|
+
readonly name: "typescript";
|
|
15
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
16
|
+
}];
|
|
13
17
|
} & {
|
|
14
18
|
allAvailableSubCommands: readonly "check"[];
|
|
15
|
-
subCommands: import("
|
|
19
|
+
subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
|
|
16
20
|
commandName: "compile";
|
|
17
21
|
subCommandDescriptions: {
|
|
18
22
|
readonly check: "Run type checking without emitting compiled files.";
|
|
@@ -23,7 +27,10 @@ export declare const compileCommandDefinition: {
|
|
|
23
27
|
readonly copyToPathRelativeToRepoDir: "tsconfig.json";
|
|
24
28
|
};
|
|
25
29
|
};
|
|
26
|
-
npmDeps: readonly [
|
|
30
|
+
npmDeps: readonly [{
|
|
31
|
+
readonly name: "typescript";
|
|
32
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
33
|
+
}];
|
|
27
34
|
}>;
|
|
28
35
|
} & {
|
|
29
36
|
executor: import("..").CommandExecutor<{
|
|
@@ -37,7 +44,10 @@ export declare const compileCommandDefinition: {
|
|
|
37
44
|
readonly copyToPathRelativeToRepoDir: "tsconfig.json";
|
|
38
45
|
};
|
|
39
46
|
};
|
|
40
|
-
npmDeps: readonly [
|
|
47
|
+
npmDeps: readonly [{
|
|
48
|
+
readonly name: "typescript";
|
|
49
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
50
|
+
}];
|
|
41
51
|
}>;
|
|
42
52
|
createDescription: import("..").CreateDescriptionsCallback<{
|
|
43
53
|
commandName: "compile";
|
|
@@ -50,7 +60,10 @@ export declare const compileCommandDefinition: {
|
|
|
50
60
|
readonly copyToPathRelativeToRepoDir: "tsconfig.json";
|
|
51
61
|
};
|
|
52
62
|
};
|
|
53
|
-
npmDeps: readonly [
|
|
63
|
+
npmDeps: readonly [{
|
|
64
|
+
readonly name: "typescript";
|
|
65
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
66
|
+
}];
|
|
54
67
|
}>;
|
|
55
68
|
extend: import("../api/command/define-command").ExtendCallback<{
|
|
56
69
|
commandName: "compile";
|
|
@@ -63,6 +76,9 @@ export declare const compileCommandDefinition: {
|
|
|
63
76
|
readonly copyToPathRelativeToRepoDir: "tsconfig.json";
|
|
64
77
|
};
|
|
65
78
|
};
|
|
66
|
-
npmDeps: readonly [
|
|
79
|
+
npmDeps: readonly [{
|
|
80
|
+
readonly name: "typescript";
|
|
81
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
82
|
+
}];
|
|
67
83
|
}>;
|
|
68
84
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.compileCommandDefinition = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const define_command_1 = require("../api/command/define-command");
|
|
6
|
+
const define_command_inputs_1 = require("../api/command/define-command-inputs");
|
|
6
7
|
const package_paths_1 = require("../file-paths/package-paths");
|
|
7
8
|
exports.compileCommandDefinition = (0, define_command_1.defineCommand)({
|
|
8
9
|
commandName: 'compile',
|
|
@@ -15,7 +16,9 @@ exports.compileCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
15
16
|
copyToPathRelativeToRepoDir: 'tsconfig.json',
|
|
16
17
|
},
|
|
17
18
|
},
|
|
18
|
-
npmDeps: [
|
|
19
|
+
npmDeps: [
|
|
20
|
+
{ name: 'typescript', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
21
|
+
],
|
|
19
22
|
}, ({ commandName, packageBinName }) => {
|
|
20
23
|
return {
|
|
21
24
|
sections: [
|
|
@@ -57,11 +57,15 @@ exports.nonCommandConfigs = [
|
|
|
57
57
|
copyToPathRelativeToRepoDir: (0, path_1.join)('.github', 'workflows', 'tests.yml'),
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '
|
|
61
|
-
copyToPathRelativeToRepoDir: (0, path_1.join)('
|
|
60
|
+
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'www-static', 'index.css'),
|
|
61
|
+
copyToPathRelativeToRepoDir: (0, path_1.join)('www-static', 'index.css'),
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'index.html'),
|
|
65
|
-
copyToPathRelativeToRepoDir: (0, path_1.join)('index.html'),
|
|
64
|
+
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'src', 'index.html'),
|
|
65
|
+
copyToPathRelativeToRepoDir: (0, path_1.join)('src', 'index.html'),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'src', 'ui', 'elements', 'vir-app.element.ts'),
|
|
69
|
+
copyToPathRelativeToRepoDir: (0, path_1.join)('src', 'ui', 'elements', 'vir-app.element.ts'),
|
|
66
70
|
},
|
|
67
71
|
];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
|
|
1
2
|
import { combineTextConfig } from './extra-configs/combine-text-config';
|
|
2
3
|
export declare const formatCommandDefinition: {
|
|
3
4
|
commandName: "format";
|
|
@@ -15,10 +16,34 @@ export declare const formatCommandDefinition: {
|
|
|
15
16
|
readonly updateExistingConfigFileCallback: typeof combineTextConfig;
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
|
-
npmDeps: readonly [
|
|
19
|
+
npmDeps: readonly [{
|
|
20
|
+
readonly name: "prettier";
|
|
21
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "prettier-plugin-jsdoc";
|
|
24
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "prettier-plugin-multiline-arrays";
|
|
27
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "prettier-plugin-organize-imports";
|
|
30
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "prettier-plugin-packagejson";
|
|
33
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "prettier-plugin-sort-json";
|
|
36
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "prettier-plugin-toml";
|
|
39
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "prettier-plugin-interpolated-html-tags";
|
|
42
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
43
|
+
}];
|
|
19
44
|
} & {
|
|
20
45
|
allAvailableSubCommands: readonly "check"[];
|
|
21
|
-
subCommands: import("
|
|
46
|
+
subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
|
|
22
47
|
commandName: "format";
|
|
23
48
|
subCommandDescriptions: {
|
|
24
49
|
readonly check: "check formatting without overwriting files.";
|
|
@@ -34,7 +59,31 @@ export declare const formatCommandDefinition: {
|
|
|
34
59
|
readonly updateExistingConfigFileCallback: typeof combineTextConfig;
|
|
35
60
|
};
|
|
36
61
|
};
|
|
37
|
-
npmDeps: readonly [
|
|
62
|
+
npmDeps: readonly [{
|
|
63
|
+
readonly name: "prettier";
|
|
64
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "prettier-plugin-jsdoc";
|
|
67
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "prettier-plugin-multiline-arrays";
|
|
70
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "prettier-plugin-organize-imports";
|
|
73
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "prettier-plugin-packagejson";
|
|
76
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "prettier-plugin-sort-json";
|
|
79
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "prettier-plugin-toml";
|
|
82
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "prettier-plugin-interpolated-html-tags";
|
|
85
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
86
|
+
}];
|
|
38
87
|
}>;
|
|
39
88
|
} & {
|
|
40
89
|
executor: import("..").CommandExecutor<{
|
|
@@ -53,7 +102,31 @@ export declare const formatCommandDefinition: {
|
|
|
53
102
|
readonly updateExistingConfigFileCallback: typeof combineTextConfig;
|
|
54
103
|
};
|
|
55
104
|
};
|
|
56
|
-
npmDeps: readonly [
|
|
105
|
+
npmDeps: readonly [{
|
|
106
|
+
readonly name: "prettier";
|
|
107
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "prettier-plugin-jsdoc";
|
|
110
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "prettier-plugin-multiline-arrays";
|
|
113
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "prettier-plugin-organize-imports";
|
|
116
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "prettier-plugin-packagejson";
|
|
119
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "prettier-plugin-sort-json";
|
|
122
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "prettier-plugin-toml";
|
|
125
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "prettier-plugin-interpolated-html-tags";
|
|
128
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
129
|
+
}];
|
|
57
130
|
}>;
|
|
58
131
|
createDescription: import("..").CreateDescriptionsCallback<{
|
|
59
132
|
commandName: "format";
|
|
@@ -71,7 +144,31 @@ export declare const formatCommandDefinition: {
|
|
|
71
144
|
readonly updateExistingConfigFileCallback: typeof combineTextConfig;
|
|
72
145
|
};
|
|
73
146
|
};
|
|
74
|
-
npmDeps: readonly [
|
|
147
|
+
npmDeps: readonly [{
|
|
148
|
+
readonly name: "prettier";
|
|
149
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "prettier-plugin-jsdoc";
|
|
152
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "prettier-plugin-multiline-arrays";
|
|
155
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "prettier-plugin-organize-imports";
|
|
158
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "prettier-plugin-packagejson";
|
|
161
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "prettier-plugin-sort-json";
|
|
164
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "prettier-plugin-toml";
|
|
167
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
168
|
+
}, {
|
|
169
|
+
readonly name: "prettier-plugin-interpolated-html-tags";
|
|
170
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
171
|
+
}];
|
|
75
172
|
}>;
|
|
76
173
|
extend: import("../api/command/define-command").ExtendCallback<{
|
|
77
174
|
commandName: "format";
|
|
@@ -89,6 +186,30 @@ export declare const formatCommandDefinition: {
|
|
|
89
186
|
readonly updateExistingConfigFileCallback: typeof combineTextConfig;
|
|
90
187
|
};
|
|
91
188
|
};
|
|
92
|
-
npmDeps: readonly [
|
|
189
|
+
npmDeps: readonly [{
|
|
190
|
+
readonly name: "prettier";
|
|
191
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "prettier-plugin-jsdoc";
|
|
194
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "prettier-plugin-multiline-arrays";
|
|
197
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "prettier-plugin-organize-imports";
|
|
200
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "prettier-plugin-packagejson";
|
|
203
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "prettier-plugin-sort-json";
|
|
206
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "prettier-plugin-toml";
|
|
209
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "prettier-plugin-interpolated-html-tags";
|
|
212
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
213
|
+
}];
|
|
93
214
|
}>;
|
|
94
215
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.formatCommandDefinition = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const define_command_1 = require("../api/command/define-command");
|
|
6
|
+
const define_command_inputs_1 = require("../api/command/define-command-inputs");
|
|
6
7
|
const package_paths_1 = require("../file-paths/package-paths");
|
|
7
8
|
const combine_text_config_1 = require("./extra-configs/combine-text-config");
|
|
8
9
|
const defaultFormatExtensions = [
|
|
@@ -41,14 +42,14 @@ exports.formatCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
41
42
|
},
|
|
42
43
|
},
|
|
43
44
|
npmDeps: [
|
|
44
|
-
'prettier',
|
|
45
|
-
'prettier-plugin-jsdoc',
|
|
46
|
-
'prettier-plugin-multiline-arrays',
|
|
47
|
-
'prettier-plugin-organize-imports',
|
|
48
|
-
'prettier-plugin-packagejson',
|
|
49
|
-
'prettier-plugin-sort-json',
|
|
50
|
-
'prettier-plugin-toml',
|
|
51
|
-
'prettier-plugin-interpolated-html-tags',
|
|
45
|
+
{ name: 'prettier', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
46
|
+
{ name: 'prettier-plugin-jsdoc', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
47
|
+
{ name: 'prettier-plugin-multiline-arrays', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
48
|
+
{ name: 'prettier-plugin-organize-imports', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
49
|
+
{ name: 'prettier-plugin-packagejson', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
50
|
+
{ name: 'prettier-plugin-sort-json', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
51
|
+
{ name: 'prettier-plugin-toml', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
52
|
+
{ name: 'prettier-plugin-interpolated-html-tags', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
52
53
|
],
|
|
53
54
|
}, ({ commandName, subCommands, packageBinName }) => {
|
|
54
55
|
return {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
|
|
1
2
|
export declare const frontendCommandDefinition: {
|
|
2
3
|
commandName: "frontend";
|
|
3
4
|
subCommandDescriptions: {
|
|
@@ -10,10 +11,28 @@ export declare const frontendCommandDefinition: {
|
|
|
10
11
|
readonly copyToPathRelativeToRepoDir: string;
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
|
-
npmDeps: readonly [
|
|
14
|
+
npmDeps: readonly [{
|
|
15
|
+
readonly name: "@augment-vir/node-js";
|
|
16
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "element-vir";
|
|
19
|
+
readonly type: NpmDepTypeEnum.Regular;
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "esbuild";
|
|
22
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "typescript";
|
|
25
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "vite-tsconfig-paths";
|
|
28
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "vite";
|
|
31
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
32
|
+
}];
|
|
14
33
|
} & {
|
|
15
34
|
allAvailableSubCommands: readonly ("build" | "preview")[];
|
|
16
|
-
subCommands: import("
|
|
35
|
+
subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
|
|
17
36
|
commandName: "frontend";
|
|
18
37
|
subCommandDescriptions: {
|
|
19
38
|
readonly build: "Builds and bundles the frontend for deployment.";
|
|
@@ -25,7 +44,25 @@ export declare const frontendCommandDefinition: {
|
|
|
25
44
|
readonly copyToPathRelativeToRepoDir: string;
|
|
26
45
|
};
|
|
27
46
|
};
|
|
28
|
-
npmDeps: readonly [
|
|
47
|
+
npmDeps: readonly [{
|
|
48
|
+
readonly name: "@augment-vir/node-js";
|
|
49
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "element-vir";
|
|
52
|
+
readonly type: NpmDepTypeEnum.Regular;
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "esbuild";
|
|
55
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "typescript";
|
|
58
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "vite-tsconfig-paths";
|
|
61
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
62
|
+
}, {
|
|
63
|
+
readonly name: "vite";
|
|
64
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
65
|
+
}];
|
|
29
66
|
}>;
|
|
30
67
|
} & {
|
|
31
68
|
executor: import("..").CommandExecutor<{
|
|
@@ -40,7 +77,25 @@ export declare const frontendCommandDefinition: {
|
|
|
40
77
|
readonly copyToPathRelativeToRepoDir: string;
|
|
41
78
|
};
|
|
42
79
|
};
|
|
43
|
-
npmDeps: readonly [
|
|
80
|
+
npmDeps: readonly [{
|
|
81
|
+
readonly name: "@augment-vir/node-js";
|
|
82
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "element-vir";
|
|
85
|
+
readonly type: NpmDepTypeEnum.Regular;
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "esbuild";
|
|
88
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "typescript";
|
|
91
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "vite-tsconfig-paths";
|
|
94
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "vite";
|
|
97
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
98
|
+
}];
|
|
44
99
|
}>;
|
|
45
100
|
createDescription: import("..").CreateDescriptionsCallback<{
|
|
46
101
|
commandName: "frontend";
|
|
@@ -54,7 +109,25 @@ export declare const frontendCommandDefinition: {
|
|
|
54
109
|
readonly copyToPathRelativeToRepoDir: string;
|
|
55
110
|
};
|
|
56
111
|
};
|
|
57
|
-
npmDeps: readonly [
|
|
112
|
+
npmDeps: readonly [{
|
|
113
|
+
readonly name: "@augment-vir/node-js";
|
|
114
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "element-vir";
|
|
117
|
+
readonly type: NpmDepTypeEnum.Regular;
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "esbuild";
|
|
120
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "typescript";
|
|
123
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "vite-tsconfig-paths";
|
|
126
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "vite";
|
|
129
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
130
|
+
}];
|
|
58
131
|
}>;
|
|
59
132
|
extend: import("../api/command/define-command").ExtendCallback<{
|
|
60
133
|
commandName: "frontend";
|
|
@@ -68,6 +141,24 @@ export declare const frontendCommandDefinition: {
|
|
|
68
141
|
readonly copyToPathRelativeToRepoDir: string;
|
|
69
142
|
};
|
|
70
143
|
};
|
|
71
|
-
npmDeps: readonly [
|
|
144
|
+
npmDeps: readonly [{
|
|
145
|
+
readonly name: "@augment-vir/node-js";
|
|
146
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "element-vir";
|
|
149
|
+
readonly type: NpmDepTypeEnum.Regular;
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "esbuild";
|
|
152
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "typescript";
|
|
155
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "vite-tsconfig-paths";
|
|
158
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "vite";
|
|
161
|
+
readonly type: NpmDepTypeEnum.Dev;
|
|
162
|
+
}];
|
|
72
163
|
}>;
|
|
73
164
|
};
|