virmator 11.1.5 → 11.3.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/base-configs/tsconfig.base.json +1 -0
- package/configs/npmignore.txt +1 -1
- package/dist/api/create-virmator.js +1 -1
- package/dist/commands/docs.command.js +9 -1
- package/dist/commands/frontend.command.js +1 -1
- package/dist/commands/spellcheck.command.d.ts +5 -5
- package/dist/commands/spellcheck.command.js +2 -2
- package/dist/compiled-base-configs/base-ncu.d.ts +1 -1
- package/dist/compiled-base-configs/base-ncu.js +2 -2
- package/dist/compiled-base-configs/base-vite.js +1 -1
- package/dist/index.d.ts +5 -5
- package/package.json +19 -18
- /package/configs/{cspell.config.js → cspell.config.cjs} +0 -0
- /package/{cspell.config.js → cspell.config.cjs} +0 -0
package/configs/npmignore.txt
CHANGED
|
@@ -14,7 +14,7 @@ function createVirmator(inputs) {
|
|
|
14
14
|
const commandDefinitions = inputs.commandDefinitions ?? [];
|
|
15
15
|
const commandMapping = (0, command_mapping_1.commandsToMapping)(commandDefinitions);
|
|
16
16
|
const allCommands = {
|
|
17
|
-
...{},
|
|
17
|
+
...{}, // todo: put the default commands here
|
|
18
18
|
...commandMapping,
|
|
19
19
|
};
|
|
20
20
|
const cliHelpMessage = (0, command_to_help_message_1.generateHelpMessage)(inputs.packageBinName, allCommands ?? {}, command_to_help_message_1.HelpMessageSyntax.Cli);
|
|
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.docsCommandDefinition = void 0;
|
|
27
|
+
const node_js_1 = require("@augment-vir/node-js");
|
|
27
28
|
const path_1 = require("path");
|
|
28
29
|
const define_command_1 = require("../api/command/define-command");
|
|
29
30
|
const define_command_inputs_1 = require("../api/command/define-command-inputs");
|
|
@@ -85,7 +86,14 @@ exports.docsCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
85
86
|
},
|
|
86
87
|
],
|
|
87
88
|
};
|
|
88
|
-
}, async ({ repoDir, packageDir, configFiles, filteredInputArgs, inputSubCommands, subCommands, packageBinName, }) => {
|
|
89
|
+
}, async ({ repoDir, packageDir, configFiles, filteredInputArgs, inputSubCommands, subCommands, packageBinName, logging, }) => {
|
|
90
|
+
const packageJson = await (0, node_js_1.readPackageJson)(repoDir);
|
|
91
|
+
if (packageJson.private) {
|
|
92
|
+
logging.stdout('Package is private. Skipping doc check.');
|
|
93
|
+
return {
|
|
94
|
+
success: true,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
89
97
|
const typeDocConfigPath = (0, path_1.join)(repoDir, configFiles.typeDocConfig.copyToPathRelativeToRepoDir);
|
|
90
98
|
return await (0, typescript_config_file_1.withTypescriptConfigFile)(typeDocConfigPath, async (loadedConfig) => {
|
|
91
99
|
const containsManualMarkdownArgs = filteredInputArgs.some((arg) => arg.match(/\.md['"]?$/));
|
|
@@ -67,7 +67,7 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
67
67
|
configFileDefinition: inputs.configFiles.vite,
|
|
68
68
|
packageDir: package_paths_1.virmatorPackageDir,
|
|
69
69
|
});
|
|
70
|
-
const tempFilePath = (0, path_1.join)((0, path_1.dirname)(viteConfigPath), `config
|
|
70
|
+
const tempFilePath = (0, path_1.join)((0, path_1.dirname)(viteConfigPath), `generated-config-${Date.now()}-${(0, common_1.randomString)()}.cjs`);
|
|
71
71
|
const oldWrite = process.stdout.write;
|
|
72
72
|
try {
|
|
73
73
|
const needToBuild = !!inputs.inputSubCommands.length;
|
|
@@ -5,7 +5,7 @@ export declare const spellcheckCommandDefinition: {
|
|
|
5
5
|
configFiles: {
|
|
6
6
|
readonly cspell: {
|
|
7
7
|
readonly copyFromInternalPath: string;
|
|
8
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
8
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
npmDeps: readonly [{
|
|
@@ -20,7 +20,7 @@ export declare const spellcheckCommandDefinition: {
|
|
|
20
20
|
configFiles: {
|
|
21
21
|
readonly cspell: {
|
|
22
22
|
readonly copyFromInternalPath: string;
|
|
23
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
23
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
npmDeps: readonly [{
|
|
@@ -35,7 +35,7 @@ export declare const spellcheckCommandDefinition: {
|
|
|
35
35
|
configFiles: {
|
|
36
36
|
readonly cspell: {
|
|
37
37
|
readonly copyFromInternalPath: string;
|
|
38
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
38
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
npmDeps: readonly [{
|
|
@@ -49,7 +49,7 @@ export declare const spellcheckCommandDefinition: {
|
|
|
49
49
|
configFiles: {
|
|
50
50
|
readonly cspell: {
|
|
51
51
|
readonly copyFromInternalPath: string;
|
|
52
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
52
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
npmDeps: readonly [{
|
|
@@ -63,7 +63,7 @@ export declare const spellcheckCommandDefinition: {
|
|
|
63
63
|
configFiles: {
|
|
64
64
|
readonly cspell: {
|
|
65
65
|
readonly copyFromInternalPath: string;
|
|
66
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
66
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
npmDeps: readonly [{
|
|
@@ -13,8 +13,8 @@ exports.spellcheckCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
13
13
|
subCommandDescriptions: {},
|
|
14
14
|
configFiles: {
|
|
15
15
|
cspell: {
|
|
16
|
-
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'cspell.config.
|
|
17
|
-
copyToPathRelativeToRepoDir: 'cspell.config.
|
|
16
|
+
copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'cspell.config.cjs'),
|
|
17
|
+
copyToPathRelativeToRepoDir: 'cspell.config.cjs',
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
npmDeps: [
|
|
@@ -7,8 +7,8 @@ exports.defineConfig = exports.combineConfigs = exports.createBaseConfig = expor
|
|
|
7
7
|
const node_js_1 = require("@augment-vir/node-js");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
const path_1 = require("path");
|
|
10
|
-
const vite_always_reload_plugin_1 = require("virmator/dist/compiled-base-configs/vite-always-reload-plugin");
|
|
11
10
|
const vite_tsconfig_paths_1 = __importDefault(require("vite-tsconfig-paths"));
|
|
11
|
+
const vite_always_reload_plugin_1 = require("./vite-always-reload-plugin");
|
|
12
12
|
exports.basePlugins = [
|
|
13
13
|
(0, vite_always_reload_plugin_1.alwaysReloadPlugin)(),
|
|
14
14
|
(0, vite_tsconfig_paths_1.default)(),
|
package/dist/index.d.ts
CHANGED
|
@@ -897,7 +897,7 @@ export declare const virmator: Readonly<{
|
|
|
897
897
|
configFiles: {
|
|
898
898
|
readonly cspell: {
|
|
899
899
|
readonly copyFromInternalPath: string;
|
|
900
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
900
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
901
901
|
};
|
|
902
902
|
};
|
|
903
903
|
npmDeps: readonly [{
|
|
@@ -912,7 +912,7 @@ export declare const virmator: Readonly<{
|
|
|
912
912
|
configFiles: {
|
|
913
913
|
readonly cspell: {
|
|
914
914
|
readonly copyFromInternalPath: string;
|
|
915
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
915
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
916
916
|
};
|
|
917
917
|
};
|
|
918
918
|
npmDeps: readonly [{
|
|
@@ -927,7 +927,7 @@ export declare const virmator: Readonly<{
|
|
|
927
927
|
configFiles: {
|
|
928
928
|
readonly cspell: {
|
|
929
929
|
readonly copyFromInternalPath: string;
|
|
930
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
930
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
931
931
|
};
|
|
932
932
|
};
|
|
933
933
|
npmDeps: readonly [{
|
|
@@ -941,7 +941,7 @@ export declare const virmator: Readonly<{
|
|
|
941
941
|
configFiles: {
|
|
942
942
|
readonly cspell: {
|
|
943
943
|
readonly copyFromInternalPath: string;
|
|
944
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
944
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
945
945
|
};
|
|
946
946
|
};
|
|
947
947
|
npmDeps: readonly [{
|
|
@@ -955,7 +955,7 @@ export declare const virmator: Readonly<{
|
|
|
955
955
|
configFiles: {
|
|
956
956
|
readonly cspell: {
|
|
957
957
|
readonly copyFromInternalPath: string;
|
|
958
|
-
readonly copyToPathRelativeToRepoDir: "cspell.config.
|
|
958
|
+
readonly copyToPathRelativeToRepoDir: "cspell.config.cjs";
|
|
959
959
|
};
|
|
960
960
|
};
|
|
961
961
|
npmDeps: readonly [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"description": "Handle common package configs, commands, and dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"test:types": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@augment-vir/common": "^22.
|
|
47
|
-
"@augment-vir/node-js": "^22.
|
|
46
|
+
"@augment-vir/common": "^22.4.0",
|
|
47
|
+
"@augment-vir/node-js": "^22.4.0",
|
|
48
48
|
"ansi-colors": "^4.1.3",
|
|
49
49
|
"concurrently": "^8.2.2",
|
|
50
50
|
"glob": "^8.1.0",
|
|
51
51
|
"glob-promise": "^6.0.5",
|
|
52
52
|
"mono-vir": "^0.1.7",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
|
-
"simple-git": "^3.
|
|
55
|
-
"type-fest": "^4.
|
|
54
|
+
"simple-git": "^3.22.0",
|
|
55
|
+
"type-fest": "^4.9.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@electrovir/nyc": "15.1.0-fix0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/fs-extra": "^11.0.4",
|
|
63
63
|
"@types/glob": "^8.1.0",
|
|
64
64
|
"@types/mocha": "^10.0.6",
|
|
65
|
-
"@types/node": "^20.
|
|
65
|
+
"@types/node": "^20.11.0",
|
|
66
66
|
"@types/semver": "^7.5.6",
|
|
67
67
|
"@web/dev-server-esbuild": "^1.0.1",
|
|
68
68
|
"@web/test-runner": "^0.18.0",
|
|
@@ -70,35 +70,36 @@
|
|
|
70
70
|
"@web/test-runner-playwright": "^0.11.0",
|
|
71
71
|
"@web/test-runner-visual-regression": "^0.9.0",
|
|
72
72
|
"chai": "^4.3.10",
|
|
73
|
-
"cspell": "^8.
|
|
74
|
-
"dependency-cruiser": "^
|
|
75
|
-
"element-vir": "^
|
|
76
|
-
"esbuild": "^0.19.
|
|
73
|
+
"cspell": "^8.3.2",
|
|
74
|
+
"dependency-cruiser": "^16.0.0",
|
|
75
|
+
"element-vir": "^20.0.0",
|
|
76
|
+
"esbuild": "^0.19.11",
|
|
77
77
|
"fs-extra": "^11.2.0",
|
|
78
78
|
"istanbul-smart-text-reporter": "^1.1.3",
|
|
79
79
|
"markdown-code-example-inserter": "^0.3.3",
|
|
80
80
|
"mocha": "^10.2.0",
|
|
81
81
|
"mocha-spec-reporter-with-file-names": "^0.0.3",
|
|
82
82
|
"npm-check-updates": "~16.12.3",
|
|
83
|
-
"prettier": "^3.
|
|
83
|
+
"prettier": "^3.2.2",
|
|
84
84
|
"prettier-plugin-interpolated-html-tags": "^1.0.3",
|
|
85
|
-
"prettier-plugin-jsdoc": "^1.
|
|
85
|
+
"prettier-plugin-jsdoc": "^1.3.0",
|
|
86
86
|
"prettier-plugin-multiline-arrays": "^3.0.1",
|
|
87
87
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
88
|
-
"prettier-plugin-packagejson": "^2.4.
|
|
88
|
+
"prettier-plugin-packagejson": "^2.4.9",
|
|
89
89
|
"prettier-plugin-sort-json": "^3.1.0",
|
|
90
90
|
"prettier-plugin-toml": "^2.0.1",
|
|
91
91
|
"test-as-package": "^0.0.5",
|
|
92
92
|
"test-established-expectations": "^0.5.1",
|
|
93
93
|
"ts-node": "^10.9.2",
|
|
94
94
|
"tsconfig-paths": "^4.2.0",
|
|
95
|
-
"typedoc": "^0.25.
|
|
96
|
-
"typescript": "5.
|
|
97
|
-
"virmator": "
|
|
95
|
+
"typedoc": "^0.25.7",
|
|
96
|
+
"typescript": "5.3.3",
|
|
97
|
+
"virmator": "file:./",
|
|
98
98
|
"vite": "^4.5.0",
|
|
99
|
-
"vite-tsconfig-paths": "^4.2.
|
|
99
|
+
"vite-tsconfig-paths": "^4.2.3"
|
|
100
100
|
},
|
|
101
101
|
"overrides": {
|
|
102
|
-
"semver": "^7.5.4"
|
|
102
|
+
"semver": "^7.5.4",
|
|
103
|
+
"virmator": "*"
|
|
103
104
|
}
|
|
104
105
|
}
|
|
File without changes
|
|
File without changes
|