virmator 9.1.3 → 10.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/base-configs/base-cspell.js +1 -1
- package/base-configs/base-prettierrc.js +9 -45
- package/configs/.github/workflows/build-for-gh-pages.yml +1 -1
- package/configs/.prettierignore +1 -1
- package/configs/configs/typedoc.config.ts +1 -1
- package/configs/configs/vite.config.ts +3 -1
- package/configs/gitignore.txt +2 -1
- package/configs/ncu.config.ts +2 -1
- package/configs/npmignore.txt +2 -1
- package/configs/src/index.html +1 -1
- package/dist/compiled-base-configs/base-ncu.d.ts +1 -1
- package/dist/compiled-base-configs/base-ncu.js +0 -8
- package/package.json +23 -23
|
@@ -1,44 +1,3 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
|
|
4
|
-
function toPosixPath(input) {
|
|
5
|
-
return input.replace(/\\/g, '/').replace(/^\w+:/, '');
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const posixDirname = path.posix.dirname(toPosixPath(__dirname));
|
|
9
|
-
const packageRoot = path.parse(__dirname).root;
|
|
10
|
-
|
|
11
|
-
function findClosestPackagePath(dirPath, packageName) {
|
|
12
|
-
const currentAttempt = path.join(dirPath, 'node_modules', packageName);
|
|
13
|
-
|
|
14
|
-
if (fs.existsSync(currentAttempt)) {
|
|
15
|
-
return currentAttempt;
|
|
16
|
-
} else if (dirPath === packageRoot) {
|
|
17
|
-
throw new Error(`Could not find ${packageName} package.`);
|
|
18
|
-
} else {
|
|
19
|
-
return findClosestPackagePath(path.dirname(dirPath), packageName);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function getPluginPathFromName(pluginName) {
|
|
24
|
-
return path.posix.resolve(
|
|
25
|
-
posixDirname,
|
|
26
|
-
toPosixPath(findClosestPackagePath(__dirname, pluginName)),
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const plugins = [
|
|
31
|
-
'prettier-plugin-toml',
|
|
32
|
-
'prettier-plugin-sort-json',
|
|
33
|
-
'prettier-plugin-packagejson',
|
|
34
|
-
'prettier-plugin-multiline-arrays',
|
|
35
|
-
'prettier-plugin-organize-imports',
|
|
36
|
-
'prettier-plugin-jsdoc',
|
|
37
|
-
'prettier-plugin-interpolated-html-tags',
|
|
38
|
-
].map((pluginName) => {
|
|
39
|
-
return getPluginPathFromName(pluginName);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
1
|
/**
|
|
43
2
|
* @typedef {import('prettier-plugin-multiline-arrays').MultilineArrayOptions} MultilineOptions
|
|
44
3
|
*
|
|
@@ -53,8 +12,15 @@ const basePrettierConfig = {
|
|
|
53
12
|
htmlWhitespaceSensitivity: 'ignore',
|
|
54
13
|
jsonRecursiveSort: true,
|
|
55
14
|
multilineArraysWrapThreshold: 1,
|
|
56
|
-
plugins
|
|
57
|
-
|
|
15
|
+
plugins: [
|
|
16
|
+
'prettier-plugin-toml',
|
|
17
|
+
'prettier-plugin-sort-json',
|
|
18
|
+
'prettier-plugin-packagejson',
|
|
19
|
+
'prettier-plugin-multiline-arrays',
|
|
20
|
+
'prettier-plugin-organize-imports',
|
|
21
|
+
'prettier-plugin-jsdoc',
|
|
22
|
+
'prettier-plugin-interpolated-html-tags',
|
|
23
|
+
],
|
|
58
24
|
printWidth: 100,
|
|
59
25
|
singleQuote: true,
|
|
60
26
|
tabWidth: 4,
|
|
@@ -63,6 +29,4 @@ const basePrettierConfig = {
|
|
|
63
29
|
|
|
64
30
|
module.exports = {
|
|
65
31
|
basePrettierConfig,
|
|
66
|
-
/** Export this in case consumers want to add more plugins */
|
|
67
|
-
getPluginPathFromName,
|
|
68
32
|
};
|
package/configs/.prettierignore
CHANGED
package/configs/gitignore.txt
CHANGED
package/configs/ncu.config.ts
CHANGED
package/configs/npmignore.txt
CHANGED
package/configs/src/index.html
CHANGED
|
@@ -2,5 +2,5 @@ export declare const baseNcuConfig: {
|
|
|
2
2
|
readonly color: true;
|
|
3
3
|
readonly upgrade: true;
|
|
4
4
|
readonly root: true;
|
|
5
|
-
readonly reject: readonly ["
|
|
5
|
+
readonly reject: readonly ["npm-check-updates"];
|
|
6
6
|
};
|
|
@@ -6,14 +6,6 @@ exports.baseNcuConfig = {
|
|
|
6
6
|
upgrade: true,
|
|
7
7
|
root: true,
|
|
8
8
|
reject: [
|
|
9
|
-
/** Not ready for v3. */
|
|
10
|
-
'prettier',
|
|
11
|
-
/** The latest update requires Prettier v3. */
|
|
12
|
-
'prettier-plugin-jsdoc',
|
|
13
|
-
/** The latest update requires Prettier v3. */
|
|
14
|
-
'prettier-plugin-toml',
|
|
15
|
-
/** The latest update requires Prettier v3. */
|
|
16
|
-
'prettier-plugin-sort-json',
|
|
17
9
|
/** Version > 16.13 throws chalk init errors. */
|
|
18
10
|
'npm-check-updates',
|
|
19
11
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Handle common package configs, commands, and dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"docs": "npm run compile && ts-node src/scripts/save-help-message.ts && md-code README.md",
|
|
34
34
|
"docs:check": "npm run compile && ts-node src/scripts/save-help-message.ts check && md-code --check README.md",
|
|
35
35
|
"format": "npm run format:base -- --write --list-different",
|
|
36
|
-
"format:base": "prettier \"./**/*.+(ts|json|html|css|md|js)\"",
|
|
36
|
+
"format:base": "prettier \"./**/*.+(ts|json|html|css|md|js)\" --config .prettierrc.js",
|
|
37
37
|
"publish": "virmator publish \"npm run test:all\"",
|
|
38
38
|
"test": "npm run compile && test-as-package mocha --config mocha.config.js",
|
|
39
39
|
"test:all": "npm ci && concurrently --color --kill-others-on-fail -c auto --names tests,spelling,format,docs \"npm run compile && npm run test\" \"npm run test:spelling -- --no-progress\" \"npm run test:format\" \"npm run docs:check\"",
|
|
@@ -43,35 +43,35 @@
|
|
|
43
43
|
"test:types": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@augment-vir/common": "^21.3.
|
|
47
|
-
"@augment-vir/node-js": "^21.3.
|
|
46
|
+
"@augment-vir/common": "^21.3.6",
|
|
47
|
+
"@augment-vir/node-js": "^21.3.6",
|
|
48
48
|
"ansi-colors": "^4.1.3",
|
|
49
|
-
"concurrently": "^8.2.
|
|
49
|
+
"concurrently": "^8.2.2",
|
|
50
50
|
"glob": "^8.1.0",
|
|
51
51
|
"glob-promise": "^6.0.5",
|
|
52
52
|
"mono-vir": "^0.1.6",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
54
|
"simple-git": "^3.20.0",
|
|
55
|
-
"type-fest": "^4.
|
|
55
|
+
"type-fest": "^4.5.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@electrovir/nyc": "15.1.0-fix0",
|
|
59
59
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
60
60
|
"@open-wc/testing": "^3.2.0",
|
|
61
|
-
"@types/chai": "^4.3.
|
|
62
|
-
"@types/fs-extra": "^11.0.
|
|
61
|
+
"@types/chai": "^4.3.9",
|
|
62
|
+
"@types/fs-extra": "^11.0.3",
|
|
63
63
|
"@types/glob": "^8.1.0",
|
|
64
|
-
"@types/mocha": "^10.0.
|
|
65
|
-
"@types/node": "^20.8.
|
|
66
|
-
"@types/semver": "^7.5.
|
|
67
|
-
"@web/dev-server-esbuild": "^0.4.
|
|
64
|
+
"@types/mocha": "^10.0.3",
|
|
65
|
+
"@types/node": "^20.8.7",
|
|
66
|
+
"@types/semver": "^7.5.4",
|
|
67
|
+
"@web/dev-server-esbuild": "^0.4.3",
|
|
68
68
|
"@web/test-runner": "^0.17.2",
|
|
69
|
-
"@web/test-runner-commands": "^0.8.
|
|
70
|
-
"@web/test-runner-playwright": "^0.10.
|
|
69
|
+
"@web/test-runner-commands": "^0.8.2",
|
|
70
|
+
"@web/test-runner-playwright": "^0.10.2",
|
|
71
71
|
"@web/test-runner-visual-regression": "^0.8.2",
|
|
72
72
|
"chai": "^4.3.10",
|
|
73
73
|
"cspell": "^7.3.8",
|
|
74
|
-
"dependency-cruiser": "^
|
|
74
|
+
"dependency-cruiser": "^15.0.0",
|
|
75
75
|
"element-vir": "^16.5.0",
|
|
76
76
|
"esbuild": "^0.19.5",
|
|
77
77
|
"fs-extra": "^11.1.1",
|
|
@@ -80,22 +80,22 @@
|
|
|
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": "^
|
|
84
|
-
"prettier-plugin-interpolated-html-tags": "^
|
|
85
|
-
"prettier-plugin-jsdoc": "^
|
|
86
|
-
"prettier-plugin-multiline-arrays": "^
|
|
83
|
+
"prettier": "^3.0.3",
|
|
84
|
+
"prettier-plugin-interpolated-html-tags": "^1.0.1",
|
|
85
|
+
"prettier-plugin-jsdoc": "^1.1.1",
|
|
86
|
+
"prettier-plugin-multiline-arrays": "^3.0.0",
|
|
87
87
|
"prettier-plugin-organize-imports": "^3.2.3",
|
|
88
88
|
"prettier-plugin-packagejson": "^2.4.6",
|
|
89
|
-
"prettier-plugin-sort-json": "^
|
|
90
|
-
"prettier-plugin-toml": "^0.
|
|
89
|
+
"prettier-plugin-sort-json": "^3.1.0",
|
|
90
|
+
"prettier-plugin-toml": "^1.0.0",
|
|
91
91
|
"test-as-package": "^0.0.4",
|
|
92
92
|
"test-established-expectations": "^0.5.0",
|
|
93
93
|
"ts-node": "^10.9.1",
|
|
94
94
|
"tsconfig-paths": "^4.2.0",
|
|
95
95
|
"typedoc": "^0.25.2",
|
|
96
96
|
"typescript": "^5.2.2",
|
|
97
|
-
"virmator": "^9.1.
|
|
98
|
-
"vite": "^4.
|
|
97
|
+
"virmator": "^9.1.3",
|
|
98
|
+
"vite": "^4.5.0",
|
|
99
99
|
"vite-tsconfig-paths": "^4.2.1"
|
|
100
100
|
},
|
|
101
101
|
"engines": {
|