virmator 12.0.4 → 13.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +224 -129
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +21 -5
- package/dist/index.d.ts +1416 -1310
- package/dist/index.js +25 -63
- package/dist/tests/test-virmator.mock.d.ts +3 -0
- package/dist/tests/test-virmator.mock.js +5 -0
- package/package.json +25 -69
- package/src/cli.ts +29 -0
- package/src/index.ts +26 -0
- package/src/tests/test-virmator.mock.ts +13 -0
- package/base-configs/base-cspell.js +0 -272
- package/base-configs/base-mocharc.cjs +0 -20
- package/base-configs/base-nyc.js +0 -40
- package/base-configs/base-prettierrc.js +0 -32
- package/base-configs/base-web-test-runner.mjs +0 -137
- package/base-configs/test-files-glob.js +0 -13
- package/base-configs/tsconfig.base.json +0 -32
- package/configs/.gitattributes +0 -2
- package/configs/.github/workflows/build-for-gh-pages.yml +0 -24
- package/configs/.github/workflows/tagged-release.yml +0 -41
- package/configs/.github/workflows/tests.yml +0 -25
- package/configs/.nvmrc +0 -1
- package/configs/.prettierignore +0 -11
- package/configs/.prettierrc.js +0 -13
- package/configs/.vscode/settings.json +0 -50
- package/configs/LICENSE-CC0 +0 -121
- package/configs/LICENSE-MIT +0 -21
- package/configs/configs/dep-cruiser.config.ts +0 -22
- package/configs/configs/mocha.config.cjs +0 -8
- package/configs/configs/ncu.config.ts +0 -12
- package/configs/configs/nyc.config.js +0 -7
- package/configs/configs/typedoc.config.ts +0 -20
- package/configs/configs/vite.config.ts +0 -14
- package/configs/configs/web-test-runner.config.mjs +0 -21
- package/configs/cspell.config.cjs +0 -11
- package/configs/dep-cruiser.config.ts +0 -22
- package/configs/gitignore.txt +0 -13
- package/configs/ncu.config.ts +0 -13
- package/configs/npmignore.txt +0 -26
- package/configs/package.json +0 -23
- package/configs/src/index.html +0 -12
- package/configs/src/ui/elements/vir-app.element.ts +0 -10
- package/configs/tsconfig.json +0 -16
- package/configs/www-static/_redirects +0 -1
- package/configs/www-static/index.css +0 -7
- package/cspell.config.cjs +0 -13
- package/dist/api/command/command-configs.d.ts +0 -3
- package/dist/api/command/command-configs.js +0 -10
- package/dist/api/command/command-description.d.ts +0 -8
- package/dist/api/command/command-description.js +0 -2
- package/dist/api/command/command-executor.d.ts +0 -30
- package/dist/api/command/command-executor.js +0 -6
- package/dist/api/command/command-help.d.ts +0 -8
- package/dist/api/command/command-help.js +0 -2
- package/dist/api/command/command-logging.d.ts +0 -11
- package/dist/api/command/command-logging.js +0 -17
- package/dist/api/command/command-mapping.d.ts +0 -7
- package/dist/api/command/command-mapping.js +0 -9
- package/dist/api/command/command-messages.d.ts +0 -1
- package/dist/api/command/command-messages.js +0 -9
- package/dist/api/command/command-to-help-message.d.ts +0 -9
- package/dist/api/command/command-to-help-message.js +0 -175
- package/dist/api/command/define-command-inputs.d.ts +0 -22
- package/dist/api/command/define-command-inputs.js +0 -8
- package/dist/api/command/define-command.d.ts +0 -22
- package/dist/api/command/define-command.js +0 -41
- package/dist/api/config/config-file-definition.d.ts +0 -15
- package/dist/api/config/config-file-definition.js +0 -2
- package/dist/api/config/config-paths.d.ts +0 -7
- package/dist/api/config/config-paths.js +0 -7
- package/dist/api/config/copy-config.d.ts +0 -27
- package/dist/api/config/copy-config.js +0 -98
- package/dist/api/create-virmator.d.ts +0 -8
- package/dist/api/create-virmator.js +0 -67
- package/dist/api/run-command/check-npm-deps.d.ts +0 -8
- package/dist/api/run-command/check-npm-deps.js +0 -111
- package/dist/api/run-command/extract-arguments.d.ts +0 -6
- package/dist/api/run-command/extract-arguments.js +0 -36
- package/dist/api/run-command/run-command-executor.d.ts +0 -5
- package/dist/api/run-command/run-command-executor.js +0 -50
- package/dist/api/run-command/run-extended-virmator.d.ts +0 -10
- package/dist/api/run-command/run-extended-virmator.js +0 -53
- package/dist/api/run-command/run-shell-command.d.ts +0 -8
- package/dist/api/run-command/run-shell-command.js +0 -21
- package/dist/api/virmator-types.d.ts +0 -18
- package/dist/api/virmator-types.js +0 -2
- package/dist/augments/array.d.ts +0 -1
- package/dist/augments/array.js +0 -6
- package/dist/augments/console.d.ts +0 -9
- package/dist/augments/console.js +0 -43
- package/dist/augments/fs.d.ts +0 -11
- package/dist/augments/fs.js +0 -71
- package/dist/augments/git.d.ts +0 -1
- package/dist/augments/git.js +0 -12
- package/dist/augments/json.d.ts +0 -1
- package/dist/augments/json.js +0 -11
- package/dist/augments/npm.d.ts +0 -11
- package/dist/augments/npm.js +0 -52
- package/dist/augments/object.d.ts +0 -4
- package/dist/augments/object.js +0 -44
- package/dist/augments/path.d.ts +0 -1
- package/dist/augments/path.js +0 -12
- package/dist/augments/prettier.d.ts +0 -1
- package/dist/augments/prettier.js +0 -52
- package/dist/augments/regexp.d.ts +0 -1
- package/dist/augments/regexp.js +0 -6
- package/dist/augments/string.d.ts +0 -2
- package/dist/augments/string.js +0 -9
- package/dist/augments/type.d.ts +0 -1
- package/dist/augments/type.js +0 -2
- package/dist/augments/typescript-config-file.d.ts +0 -5
- package/dist/augments/typescript-config-file.js +0 -62
- package/dist/commands/compile.command.d.ts +0 -84
- package/dist/commands/compile.command.js +0 -58
- package/dist/commands/deps.command.d.ts +0 -144
- package/dist/commands/deps.command.js +0 -208
- package/dist/commands/docs.command.d.ts +0 -99
- package/dist/commands/docs.command.js +0 -192
- package/dist/commands/extra-configs/all-extra-configs.d.ts +0 -2
- package/dist/commands/extra-configs/all-extra-configs.js +0 -71
- package/dist/commands/extra-configs/combine-json-config.d.ts +0 -2
- package/dist/commands/extra-configs/combine-json-config.js +0 -21
- package/dist/commands/extra-configs/combine-text-config.d.ts +0 -2
- package/dist/commands/extra-configs/combine-text-config.js +0 -26
- package/dist/commands/extra-configs/create-default-package-json.d.ts +0 -1
- package/dist/commands/extra-configs/create-default-package-json.js +0 -86
- package/dist/commands/format.command.d.ts +0 -215
- package/dist/commands/format.command.js +0 -157
- package/dist/commands/frontend.command.d.ts +0 -149
- package/dist/commands/frontend.command.js +0 -140
- package/dist/commands/init.command.d.ts +0 -163
- package/dist/commands/init.command.js +0 -53
- package/dist/commands/publish.command.d.ts +0 -33
- package/dist/commands/publish.command.js +0 -193
- package/dist/commands/spellcheck.command.d.ts +0 -74
- package/dist/commands/spellcheck.command.js +0 -60
- package/dist/commands/test-web.command.d.ts +0 -189
- package/dist/commands/test-web.command.js +0 -125
- package/dist/commands/test.command.d.ts +0 -224
- package/dist/commands/test.command.js +0 -100
- package/dist/commands/update-configs.command.d.ts +0 -33
- package/dist/commands/update-configs.command.js +0 -35
- package/dist/compiled-base-configs/base-dep-cruiser.config.d.ts +0 -195
- package/dist/compiled-base-configs/base-dep-cruiser.config.js +0 -206
- package/dist/compiled-base-configs/base-ncu.d.ts +0 -6
- package/dist/compiled-base-configs/base-ncu.js +0 -16
- package/dist/compiled-base-configs/base-typedoc.d.ts +0 -3
- package/dist/compiled-base-configs/base-typedoc.js +0 -36
- package/dist/compiled-base-configs/base-vite.d.ts +0 -27
- package/dist/compiled-base-configs/base-vite.js +0 -74
- package/dist/compiled-base-configs/vite-always-reload-plugin.d.ts +0 -10
- package/dist/compiled-base-configs/vite-always-reload-plugin.js +0 -99
- package/dist/file-paths/package-paths.d.ts +0 -12
- package/dist/file-paths/package-paths.js +0 -46
- package/dist/scripts/save-help-message.d.ts +0 -1
- package/dist/scripts/save-help-message.js +0 -33
- package/mocha.config.cjs +0 -16
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
|
|
2
|
-
export declare const testCommandDefinition: {
|
|
3
|
-
commandName: "test";
|
|
4
|
-
subCommandDescriptions: {
|
|
5
|
-
readonly coverage: "run tests with code coverage calculations. This will often result in incorrect stack traces on errors, so this is only recommended after having first gotten all tests to pass without coverage calculations.";
|
|
6
|
-
};
|
|
7
|
-
configFiles: {
|
|
8
|
-
readonly mochaConfig: {
|
|
9
|
-
readonly copyFromInternalPath: string;
|
|
10
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
11
|
-
};
|
|
12
|
-
readonly nycConfig: {
|
|
13
|
-
readonly copyFromInternalPath: string;
|
|
14
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
npmDeps: readonly [{
|
|
18
|
-
readonly name: "@electrovir/nyc";
|
|
19
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
20
|
-
}, {
|
|
21
|
-
readonly name: "@istanbuljs/nyc-config-typescript";
|
|
22
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
23
|
-
}, {
|
|
24
|
-
readonly name: "@types/chai";
|
|
25
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
26
|
-
}, {
|
|
27
|
-
readonly name: "@types/mocha";
|
|
28
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "chai";
|
|
31
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
32
|
-
}, {
|
|
33
|
-
readonly name: "istanbul-smart-text-reporter";
|
|
34
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
35
|
-
}, {
|
|
36
|
-
readonly name: "mocha-spec-reporter-with-file-names";
|
|
37
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
38
|
-
}, {
|
|
39
|
-
readonly name: "mocha";
|
|
40
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "ts-node";
|
|
43
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
44
|
-
}];
|
|
45
|
-
} & {
|
|
46
|
-
allAvailableSubCommands: readonly "coverage"[];
|
|
47
|
-
subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
|
|
48
|
-
commandName: "test";
|
|
49
|
-
subCommandDescriptions: {
|
|
50
|
-
readonly coverage: "run tests with code coverage calculations. This will often result in incorrect stack traces on errors, so this is only recommended after having first gotten all tests to pass without coverage calculations.";
|
|
51
|
-
};
|
|
52
|
-
configFiles: {
|
|
53
|
-
readonly mochaConfig: {
|
|
54
|
-
readonly copyFromInternalPath: string;
|
|
55
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
56
|
-
};
|
|
57
|
-
readonly nycConfig: {
|
|
58
|
-
readonly copyFromInternalPath: string;
|
|
59
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
npmDeps: readonly [{
|
|
63
|
-
readonly name: "@electrovir/nyc";
|
|
64
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
65
|
-
}, {
|
|
66
|
-
readonly name: "@istanbuljs/nyc-config-typescript";
|
|
67
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
68
|
-
}, {
|
|
69
|
-
readonly name: "@types/chai";
|
|
70
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
71
|
-
}, {
|
|
72
|
-
readonly name: "@types/mocha";
|
|
73
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
74
|
-
}, {
|
|
75
|
-
readonly name: "chai";
|
|
76
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
77
|
-
}, {
|
|
78
|
-
readonly name: "istanbul-smart-text-reporter";
|
|
79
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
80
|
-
}, {
|
|
81
|
-
readonly name: "mocha-spec-reporter-with-file-names";
|
|
82
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "mocha";
|
|
85
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
86
|
-
}, {
|
|
87
|
-
readonly name: "ts-node";
|
|
88
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
89
|
-
}];
|
|
90
|
-
}>;
|
|
91
|
-
} & {
|
|
92
|
-
executor: import("..").CommandExecutor<{
|
|
93
|
-
commandName: "test";
|
|
94
|
-
subCommandDescriptions: {
|
|
95
|
-
readonly coverage: "run tests with code coverage calculations. This will often result in incorrect stack traces on errors, so this is only recommended after having first gotten all tests to pass without coverage calculations.";
|
|
96
|
-
};
|
|
97
|
-
configFiles: {
|
|
98
|
-
readonly mochaConfig: {
|
|
99
|
-
readonly copyFromInternalPath: string;
|
|
100
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
101
|
-
};
|
|
102
|
-
readonly nycConfig: {
|
|
103
|
-
readonly copyFromInternalPath: string;
|
|
104
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
npmDeps: readonly [{
|
|
108
|
-
readonly name: "@electrovir/nyc";
|
|
109
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
110
|
-
}, {
|
|
111
|
-
readonly name: "@istanbuljs/nyc-config-typescript";
|
|
112
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
113
|
-
}, {
|
|
114
|
-
readonly name: "@types/chai";
|
|
115
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "@types/mocha";
|
|
118
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
119
|
-
}, {
|
|
120
|
-
readonly name: "chai";
|
|
121
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
122
|
-
}, {
|
|
123
|
-
readonly name: "istanbul-smart-text-reporter";
|
|
124
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
125
|
-
}, {
|
|
126
|
-
readonly name: "mocha-spec-reporter-with-file-names";
|
|
127
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
128
|
-
}, {
|
|
129
|
-
readonly name: "mocha";
|
|
130
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
131
|
-
}, {
|
|
132
|
-
readonly name: "ts-node";
|
|
133
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
134
|
-
}];
|
|
135
|
-
}>;
|
|
136
|
-
createDescription: import("..").CreateDescriptionsCallback<{
|
|
137
|
-
commandName: "test";
|
|
138
|
-
subCommandDescriptions: {
|
|
139
|
-
readonly coverage: "run tests with code coverage calculations. This will often result in incorrect stack traces on errors, so this is only recommended after having first gotten all tests to pass without coverage calculations.";
|
|
140
|
-
};
|
|
141
|
-
configFiles: {
|
|
142
|
-
readonly mochaConfig: {
|
|
143
|
-
readonly copyFromInternalPath: string;
|
|
144
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
145
|
-
};
|
|
146
|
-
readonly nycConfig: {
|
|
147
|
-
readonly copyFromInternalPath: string;
|
|
148
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
npmDeps: readonly [{
|
|
152
|
-
readonly name: "@electrovir/nyc";
|
|
153
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
154
|
-
}, {
|
|
155
|
-
readonly name: "@istanbuljs/nyc-config-typescript";
|
|
156
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
157
|
-
}, {
|
|
158
|
-
readonly name: "@types/chai";
|
|
159
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "@types/mocha";
|
|
162
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
163
|
-
}, {
|
|
164
|
-
readonly name: "chai";
|
|
165
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
166
|
-
}, {
|
|
167
|
-
readonly name: "istanbul-smart-text-reporter";
|
|
168
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
169
|
-
}, {
|
|
170
|
-
readonly name: "mocha-spec-reporter-with-file-names";
|
|
171
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
172
|
-
}, {
|
|
173
|
-
readonly name: "mocha";
|
|
174
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
175
|
-
}, {
|
|
176
|
-
readonly name: "ts-node";
|
|
177
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
178
|
-
}];
|
|
179
|
-
}>;
|
|
180
|
-
extend: import("../api/command/define-command").ExtendCallback<{
|
|
181
|
-
commandName: "test";
|
|
182
|
-
subCommandDescriptions: {
|
|
183
|
-
readonly coverage: "run tests with code coverage calculations. This will often result in incorrect stack traces on errors, so this is only recommended after having first gotten all tests to pass without coverage calculations.";
|
|
184
|
-
};
|
|
185
|
-
configFiles: {
|
|
186
|
-
readonly mochaConfig: {
|
|
187
|
-
readonly copyFromInternalPath: string;
|
|
188
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
189
|
-
};
|
|
190
|
-
readonly nycConfig: {
|
|
191
|
-
readonly copyFromInternalPath: string;
|
|
192
|
-
readonly copyToPathRelativeToRepoDir: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
npmDeps: readonly [{
|
|
196
|
-
readonly name: "@electrovir/nyc";
|
|
197
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
198
|
-
}, {
|
|
199
|
-
readonly name: "@istanbuljs/nyc-config-typescript";
|
|
200
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
201
|
-
}, {
|
|
202
|
-
readonly name: "@types/chai";
|
|
203
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
204
|
-
}, {
|
|
205
|
-
readonly name: "@types/mocha";
|
|
206
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
207
|
-
}, {
|
|
208
|
-
readonly name: "chai";
|
|
209
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
210
|
-
}, {
|
|
211
|
-
readonly name: "istanbul-smart-text-reporter";
|
|
212
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
213
|
-
}, {
|
|
214
|
-
readonly name: "mocha-spec-reporter-with-file-names";
|
|
215
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
216
|
-
}, {
|
|
217
|
-
readonly name: "mocha";
|
|
218
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
219
|
-
}, {
|
|
220
|
-
readonly name: "ts-node";
|
|
221
|
-
readonly type: NpmDepTypeEnum.Dev;
|
|
222
|
-
}];
|
|
223
|
-
}>;
|
|
224
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testCommandDefinition = void 0;
|
|
4
|
-
const path_1 = require("path");
|
|
5
|
-
const define_command_1 = require("../api/command/define-command");
|
|
6
|
-
const define_command_inputs_1 = require("../api/command/define-command-inputs");
|
|
7
|
-
const package_paths_1 = require("../file-paths/package-paths");
|
|
8
|
-
exports.testCommandDefinition = (0, define_command_1.defineCommand)({
|
|
9
|
-
commandName: 'test',
|
|
10
|
-
subCommandDescriptions: {
|
|
11
|
-
coverage: 'run tests with code coverage calculations. This will often result in incorrect stack traces on errors, so this is only recommended after having first gotten all tests to pass without coverage calculations.',
|
|
12
|
-
},
|
|
13
|
-
configFiles: {
|
|
14
|
-
mochaConfig: {
|
|
15
|
-
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'configs', 'mocha.config.cjs'),
|
|
16
|
-
copyToPathRelativeToRepoDir: (0, path_1.join)('configs', 'mocha.config.cjs'),
|
|
17
|
-
},
|
|
18
|
-
nycConfig: {
|
|
19
|
-
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'configs', 'nyc.config.js'),
|
|
20
|
-
copyToPathRelativeToRepoDir: (0, path_1.join)('configs', 'nyc.config.js'),
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
npmDeps: [
|
|
24
|
-
{ name: '@electrovir/nyc', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
25
|
-
{ name: '@istanbuljs/nyc-config-typescript', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
26
|
-
{ name: '@types/chai', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
27
|
-
{ name: '@types/mocha', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
28
|
-
{ name: 'chai', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
29
|
-
{ name: 'istanbul-smart-text-reporter', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
30
|
-
{ name: 'mocha-spec-reporter-with-file-names', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
31
|
-
{ name: 'mocha', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
32
|
-
{ name: 'ts-node', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
|
|
33
|
-
],
|
|
34
|
-
}, ({ commandName, packageBinName }) => {
|
|
35
|
-
return {
|
|
36
|
-
sections: [
|
|
37
|
-
{
|
|
38
|
-
title: '',
|
|
39
|
-
content: `Test all .test.ts files with Mocha and Chai. By default this command tests all ".test.ts" files in the current directory (recursively) that are not ".type.test.ts" files. To override this behavior, override the "spec" property in .mocharc.cjs.`,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
title: '',
|
|
43
|
-
content: `This command is meant to run Node.js tests. For running web-based testing, see the test-web command.`,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
title: '',
|
|
47
|
-
content: `Note that the below single file examples only work because the base Mocha config from ${packageBinName} is setup to handle them. (So if you don't use that config, the examples may not work properly.)`,
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
examples: [
|
|
51
|
-
{
|
|
52
|
-
title: 'Test all .test.ts and .test.tsx files',
|
|
53
|
-
content: `${packageBinName} ${commandName}`,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
title: 'Test a single file',
|
|
57
|
-
content: `${packageBinName} ${commandName} ./path/to/single/file.js`,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
title: 'Test multiple files',
|
|
61
|
-
content: `${packageBinName} ${commandName} "./**/single-file.js"`,
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
};
|
|
65
|
-
}, async (inputs) => {
|
|
66
|
-
const useDefaultConfigArgs = !inputs.filteredInputArgs.includes('--config');
|
|
67
|
-
const configString = useDefaultConfigArgs
|
|
68
|
-
? `--config '${inputs.configFiles.mochaConfig.copyToPathRelativeToRepoDir}'`
|
|
69
|
-
: '';
|
|
70
|
-
const includeCoverage = inputs.inputSubCommands.includes(inputs.subCommands.coverage);
|
|
71
|
-
const useDefaultNycConfigPath = !inputs.filteredInputArgs.includes('--nycrc-path');
|
|
72
|
-
const nycConfigFlag = useDefaultNycConfigPath
|
|
73
|
-
? `--nycrc-path '${inputs.configFiles.nycConfig.copyToPathRelativeToRepoDir}'`
|
|
74
|
-
: '';
|
|
75
|
-
return {
|
|
76
|
-
args: [
|
|
77
|
-
...(includeCoverage
|
|
78
|
-
? [
|
|
79
|
-
await (0, package_paths_1.getNpmBinPath)({
|
|
80
|
-
repoDir: inputs.repoDir,
|
|
81
|
-
command: 'electrovir-nyc',
|
|
82
|
-
packageDirPath: inputs.packageDir,
|
|
83
|
-
}),
|
|
84
|
-
// force colors in nyc
|
|
85
|
-
'--colors',
|
|
86
|
-
nycConfigFlag,
|
|
87
|
-
]
|
|
88
|
-
: []),
|
|
89
|
-
await (0, package_paths_1.getNpmBinPath)({
|
|
90
|
-
repoDir: inputs.repoDir,
|
|
91
|
-
command: 'mocha',
|
|
92
|
-
packageDirPath: inputs.packageDir,
|
|
93
|
-
}),
|
|
94
|
-
// force colors in mocha
|
|
95
|
-
'--colors',
|
|
96
|
-
configString,
|
|
97
|
-
...inputs.filteredInputArgs,
|
|
98
|
-
],
|
|
99
|
-
};
|
|
100
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const updateConfigsCommandDefinition: {
|
|
2
|
-
commandName: "update-configs";
|
|
3
|
-
subCommandDescriptions: {};
|
|
4
|
-
configFiles: {};
|
|
5
|
-
npmDeps: readonly [];
|
|
6
|
-
} & {
|
|
7
|
-
allAvailableSubCommands: readonly never[];
|
|
8
|
-
subCommands: import("..").SubCommandsMap<{
|
|
9
|
-
commandName: "update-configs";
|
|
10
|
-
subCommandDescriptions: {};
|
|
11
|
-
configFiles: {};
|
|
12
|
-
npmDeps: readonly [];
|
|
13
|
-
}>;
|
|
14
|
-
} & {
|
|
15
|
-
executor: import("..").CommandExecutor<{
|
|
16
|
-
commandName: "update-configs";
|
|
17
|
-
subCommandDescriptions: {};
|
|
18
|
-
configFiles: {};
|
|
19
|
-
npmDeps: readonly [];
|
|
20
|
-
}>;
|
|
21
|
-
createDescription: import("..").CreateDescriptionsCallback<{
|
|
22
|
-
commandName: "update-configs";
|
|
23
|
-
subCommandDescriptions: {};
|
|
24
|
-
configFiles: {};
|
|
25
|
-
npmDeps: readonly [];
|
|
26
|
-
}>;
|
|
27
|
-
extend: import("../api/command/define-command").ExtendCallback<{
|
|
28
|
-
commandName: "update-configs";
|
|
29
|
-
subCommandDescriptions: {};
|
|
30
|
-
configFiles: {};
|
|
31
|
-
npmDeps: readonly [];
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateConfigsCommandDefinition = void 0;
|
|
4
|
-
const command_logging_1 = require("../api/command/command-logging");
|
|
5
|
-
const define_command_1 = require("../api/command/define-command");
|
|
6
|
-
const copy_config_1 = require("../api/config/copy-config");
|
|
7
|
-
const all_extra_configs_1 = require("./extra-configs/all-extra-configs");
|
|
8
|
-
exports.updateConfigsCommandDefinition = (0, define_command_1.defineCommand)({
|
|
9
|
-
commandName: 'update-configs',
|
|
10
|
-
subCommandDescriptions: {},
|
|
11
|
-
configFiles: {},
|
|
12
|
-
npmDeps: [],
|
|
13
|
-
}, () => {
|
|
14
|
-
return {
|
|
15
|
-
sections: [
|
|
16
|
-
{
|
|
17
|
-
title: '',
|
|
18
|
-
content: `Update all existing configuration files that virmator is able to update. (Like base config files.)`,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
examples: [],
|
|
22
|
-
};
|
|
23
|
-
}, async (inputs) => {
|
|
24
|
-
const success = await (0, copy_config_1.copyAllConfigFiles)({
|
|
25
|
-
packageDir: inputs.packageDir,
|
|
26
|
-
configFiles: [
|
|
27
|
-
...inputs.allConfigs,
|
|
28
|
-
...all_extra_configs_1.nonCommandConfigs,
|
|
29
|
-
],
|
|
30
|
-
logging: command_logging_1.defaultConsoleLogging,
|
|
31
|
-
operation: copy_config_1.CopyConfigOperation.Update,
|
|
32
|
-
repoDir: inputs.repoDir,
|
|
33
|
-
});
|
|
34
|
-
return { success };
|
|
35
|
-
});
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
export declare function generateDepCruiserConfig({ fileExceptions, omitRules, }: {
|
|
2
|
-
fileExceptions: Readonly<Record<string, Readonly<Partial<{
|
|
3
|
-
to: ReadonlyArray<string> | undefined;
|
|
4
|
-
from: ReadonlyArray<string> | undefined;
|
|
5
|
-
}>>>>;
|
|
6
|
-
omitRules: ReadonlyArray<string>;
|
|
7
|
-
}): {
|
|
8
|
-
forbidden: ({
|
|
9
|
-
name: string;
|
|
10
|
-
severity: "error";
|
|
11
|
-
comment: string;
|
|
12
|
-
from: {
|
|
13
|
-
orphan?: never;
|
|
14
|
-
pathNot?: never;
|
|
15
|
-
path?: never;
|
|
16
|
-
};
|
|
17
|
-
to: {
|
|
18
|
-
circular: true;
|
|
19
|
-
dependencyTypes?: never;
|
|
20
|
-
path?: never;
|
|
21
|
-
pathNot?: never;
|
|
22
|
-
couldNotResolve?: never;
|
|
23
|
-
moreThanOneDependencyType?: never;
|
|
24
|
-
dependencyTypesNot?: never;
|
|
25
|
-
};
|
|
26
|
-
} | {
|
|
27
|
-
name: string;
|
|
28
|
-
comment: string;
|
|
29
|
-
severity: "error";
|
|
30
|
-
from: {
|
|
31
|
-
orphan: true;
|
|
32
|
-
pathNot: string[];
|
|
33
|
-
path?: never;
|
|
34
|
-
};
|
|
35
|
-
to: {
|
|
36
|
-
circular?: never;
|
|
37
|
-
dependencyTypes?: never;
|
|
38
|
-
path?: never;
|
|
39
|
-
pathNot?: never;
|
|
40
|
-
couldNotResolve?: never;
|
|
41
|
-
moreThanOneDependencyType?: never;
|
|
42
|
-
dependencyTypesNot?: never;
|
|
43
|
-
};
|
|
44
|
-
} | {
|
|
45
|
-
name: string;
|
|
46
|
-
comment: string;
|
|
47
|
-
severity: "error";
|
|
48
|
-
from: {
|
|
49
|
-
orphan?: never;
|
|
50
|
-
pathNot?: never;
|
|
51
|
-
path?: never;
|
|
52
|
-
};
|
|
53
|
-
to: {
|
|
54
|
-
dependencyTypes: "core"[];
|
|
55
|
-
path: string[];
|
|
56
|
-
circular?: never;
|
|
57
|
-
pathNot?: never;
|
|
58
|
-
couldNotResolve?: never;
|
|
59
|
-
moreThanOneDependencyType?: never;
|
|
60
|
-
dependencyTypesNot?: never;
|
|
61
|
-
};
|
|
62
|
-
} | {
|
|
63
|
-
name: string;
|
|
64
|
-
comment: string;
|
|
65
|
-
severity: "error";
|
|
66
|
-
from: {
|
|
67
|
-
orphan?: never;
|
|
68
|
-
pathNot?: never;
|
|
69
|
-
path?: never;
|
|
70
|
-
};
|
|
71
|
-
to: {
|
|
72
|
-
dependencyTypes: "deprecated"[];
|
|
73
|
-
circular?: never;
|
|
74
|
-
path?: never;
|
|
75
|
-
pathNot?: never;
|
|
76
|
-
couldNotResolve?: never;
|
|
77
|
-
moreThanOneDependencyType?: never;
|
|
78
|
-
dependencyTypesNot?: never;
|
|
79
|
-
};
|
|
80
|
-
} | {
|
|
81
|
-
name: string;
|
|
82
|
-
severity: "error";
|
|
83
|
-
comment: string;
|
|
84
|
-
from: {
|
|
85
|
-
orphan?: never;
|
|
86
|
-
pathNot?: never;
|
|
87
|
-
path?: never;
|
|
88
|
-
};
|
|
89
|
-
to: {
|
|
90
|
-
dependencyTypes: ("npm-no-pkg" | "npm-unknown")[];
|
|
91
|
-
pathNot: string[];
|
|
92
|
-
circular?: never;
|
|
93
|
-
path?: never;
|
|
94
|
-
couldNotResolve?: never;
|
|
95
|
-
moreThanOneDependencyType?: never;
|
|
96
|
-
dependencyTypesNot?: never;
|
|
97
|
-
};
|
|
98
|
-
} | {
|
|
99
|
-
name: string;
|
|
100
|
-
comment: string;
|
|
101
|
-
severity: "error";
|
|
102
|
-
from: {
|
|
103
|
-
orphan?: never;
|
|
104
|
-
pathNot?: never;
|
|
105
|
-
path?: never;
|
|
106
|
-
};
|
|
107
|
-
to: {
|
|
108
|
-
couldNotResolve: true;
|
|
109
|
-
circular?: never;
|
|
110
|
-
dependencyTypes?: never;
|
|
111
|
-
path?: never;
|
|
112
|
-
pathNot?: never;
|
|
113
|
-
moreThanOneDependencyType?: never;
|
|
114
|
-
dependencyTypesNot?: never;
|
|
115
|
-
};
|
|
116
|
-
} | {
|
|
117
|
-
name: string;
|
|
118
|
-
comment: string;
|
|
119
|
-
severity: "error";
|
|
120
|
-
from: {
|
|
121
|
-
orphan?: never;
|
|
122
|
-
pathNot?: never;
|
|
123
|
-
path?: never;
|
|
124
|
-
};
|
|
125
|
-
to: {
|
|
126
|
-
moreThanOneDependencyType: true;
|
|
127
|
-
dependencyTypesNot: "type-only"[];
|
|
128
|
-
pathNot: string[];
|
|
129
|
-
circular?: never;
|
|
130
|
-
dependencyTypes?: never;
|
|
131
|
-
path?: never;
|
|
132
|
-
couldNotResolve?: never;
|
|
133
|
-
};
|
|
134
|
-
} | {
|
|
135
|
-
name: string;
|
|
136
|
-
comment: string;
|
|
137
|
-
severity: "error";
|
|
138
|
-
from: {
|
|
139
|
-
orphan?: never;
|
|
140
|
-
pathNot?: never;
|
|
141
|
-
path?: never;
|
|
142
|
-
};
|
|
143
|
-
to: {
|
|
144
|
-
path: string;
|
|
145
|
-
circular?: never;
|
|
146
|
-
dependencyTypes?: never;
|
|
147
|
-
pathNot?: never;
|
|
148
|
-
couldNotResolve?: never;
|
|
149
|
-
moreThanOneDependencyType?: never;
|
|
150
|
-
dependencyTypesNot?: never;
|
|
151
|
-
};
|
|
152
|
-
} | {
|
|
153
|
-
name: string;
|
|
154
|
-
severity: "error";
|
|
155
|
-
comment: string;
|
|
156
|
-
from: {
|
|
157
|
-
path: string;
|
|
158
|
-
pathNot: string[];
|
|
159
|
-
orphan?: never;
|
|
160
|
-
};
|
|
161
|
-
to: {
|
|
162
|
-
dependencyTypes: "npm-dev"[];
|
|
163
|
-
circular?: never;
|
|
164
|
-
path?: never;
|
|
165
|
-
pathNot?: never;
|
|
166
|
-
couldNotResolve?: never;
|
|
167
|
-
moreThanOneDependencyType?: never;
|
|
168
|
-
dependencyTypesNot?: never;
|
|
169
|
-
};
|
|
170
|
-
} | {
|
|
171
|
-
name: string;
|
|
172
|
-
severity: "error";
|
|
173
|
-
comment: string;
|
|
174
|
-
from: {
|
|
175
|
-
orphan?: never;
|
|
176
|
-
pathNot?: never;
|
|
177
|
-
path?: never;
|
|
178
|
-
};
|
|
179
|
-
to: {
|
|
180
|
-
dependencyTypes: "npm-optional"[];
|
|
181
|
-
circular?: never;
|
|
182
|
-
path?: never;
|
|
183
|
-
pathNot?: never;
|
|
184
|
-
couldNotResolve?: never;
|
|
185
|
-
moreThanOneDependencyType?: never;
|
|
186
|
-
dependencyTypesNot?: never;
|
|
187
|
-
};
|
|
188
|
-
})[];
|
|
189
|
-
options: {
|
|
190
|
-
doNotFollow: {
|
|
191
|
-
dependencyTypes: ("npm" | "core" | "npm-bundled" | "npm-dev" | "npm-no-pkg" | "npm-optional" | "npm-peer" | "npm-unknown")[];
|
|
192
|
-
};
|
|
193
|
-
tsPreCompilationDeps: true;
|
|
194
|
-
};
|
|
195
|
-
};
|