@alexaegis/autotool-plugin-vitest 0.15.0 → 0.15.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/dist/index.cjs +86 -99
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -99
- package/dist/index.js.map +1 -1
- package/dist/package.json.d.ts +104 -0
- package/dist/static/package-node-vitest.config.d.ts +2 -0
- package/dist/static/package-node-vitest.config.d.ts.map +1 -0
- package/dist/static/package-svelte-vitest.config.d.ts +2 -0
- package/dist/static/package-svelte-vitest.config.d.ts.map +1 -0
- package/dist/static/package-web-vitest.config.d.ts +2 -0
- package/dist/static/package-web-vitest.config.d.ts.map +1 -0
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.config.d.ts.map +1 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/package.json +19 -16
package/dist/index.cjs
CHANGED
|
@@ -5,31 +5,71 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
let _alexaegis_predicate = require("@alexaegis/predicate");
|
|
6
6
|
require("autotool-plugin");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
var package_default = {
|
|
9
|
+
name: "@alexaegis/autotool-plugin-vitest",
|
|
10
|
+
description: "Setup vitest",
|
|
11
|
+
version: "0.15.2",
|
|
12
|
+
license: "MIT",
|
|
13
|
+
"private": false,
|
|
14
|
+
archetype: {
|
|
15
|
+
"platform": "node",
|
|
16
|
+
"framework": "autotool",
|
|
17
|
+
"language": "ts",
|
|
18
|
+
"kind": "lib"
|
|
19
|
+
},
|
|
20
|
+
keywords: [
|
|
21
|
+
"autotool-plugin",
|
|
22
|
+
"managed-by-autotool",
|
|
23
|
+
"vitest"
|
|
24
|
+
],
|
|
25
|
+
repository: {
|
|
26
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
27
|
+
"type": "git"
|
|
28
|
+
},
|
|
29
|
+
type: "module",
|
|
30
|
+
publishConfig: {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js",
|
|
36
|
+
"require": "./dist/index.cjs",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
40
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
41
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
42
|
+
"./package.json": "./package.json",
|
|
43
|
+
"./readme": "./readme.md"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
files: ["dist", "static"],
|
|
47
|
+
engines: { "node": ">=22.6.0" },
|
|
48
|
+
scripts: {
|
|
49
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
50
|
+
"lint:depcheck_": "depcheck",
|
|
51
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
52
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
53
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
54
|
+
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
55
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
56
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
57
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
58
|
+
"lint:tsc_": "tsc --noEmit",
|
|
59
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
60
|
+
"publint_": "publint",
|
|
61
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
62
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
63
|
+
"test:watch": "vitest --passWithNoTests --coverage",
|
|
64
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
65
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
66
|
+
"build-lib_": "vite build",
|
|
67
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
68
|
+
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
69
|
+
},
|
|
70
|
+
exports: {
|
|
31
71
|
".": {
|
|
32
|
-
"types": "./
|
|
72
|
+
"types": "./src/index.ts",
|
|
33
73
|
"import": "./dist/index.js",
|
|
34
74
|
"require": "./dist/index.cjs",
|
|
35
75
|
"default": "./dist/index.js"
|
|
@@ -39,80 +79,27 @@ var publishConfig = {
|
|
|
39
79
|
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
40
80
|
"./package.json": "./package.json",
|
|
41
81
|
"./readme": "./readme.md"
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var files = ["dist", "static"];
|
|
45
|
-
var scripts = {
|
|
46
|
-
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
47
|
-
"lint:depcheck_": "depcheck",
|
|
48
|
-
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
49
|
-
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
50
|
-
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
51
|
-
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
52
|
-
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
53
|
-
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
54
|
-
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
55
|
-
"lint:tsc_": "tsc --noEmit",
|
|
56
|
-
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
57
|
-
"publint_": "publint",
|
|
58
|
-
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
59
|
-
"test_": "vitest --passWithNoTests --coverage --run",
|
|
60
|
-
"test:watch": "vitest --passWithNoTests --coverage",
|
|
61
|
-
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
62
|
-
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
63
|
-
"build-lib_": "vite build",
|
|
64
|
-
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
65
|
-
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
66
|
-
};
|
|
67
|
-
var exports$1 = {
|
|
68
|
-
".": {
|
|
69
|
-
"types": "./src/index.ts",
|
|
70
|
-
"import": "./dist/index.js",
|
|
71
|
-
"require": "./dist/index.cjs",
|
|
72
|
-
"default": "./dist/index.js"
|
|
73
82
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"publint": "^0.3.18",
|
|
95
|
-
"typescript": "^5.9.3",
|
|
96
|
-
"vite": "^8.0.1",
|
|
97
|
-
"vite-plugin-dts": "^4.5.4",
|
|
98
|
-
"vitest": "^4.1.0"
|
|
99
|
-
};
|
|
100
|
-
var package_default = {
|
|
101
|
-
name,
|
|
102
|
-
description,
|
|
103
|
-
version,
|
|
104
|
-
license: "MIT",
|
|
105
|
-
"private": false,
|
|
106
|
-
archetype,
|
|
107
|
-
keywords,
|
|
108
|
-
repository,
|
|
109
|
-
type,
|
|
110
|
-
publishConfig,
|
|
111
|
-
files,
|
|
112
|
-
scripts,
|
|
113
|
-
exports: exports$1,
|
|
114
|
-
dependencies,
|
|
115
|
-
devDependencies
|
|
83
|
+
dependencies: {
|
|
84
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
85
|
+
"@alexaegis/logging": "workspace:^",
|
|
86
|
+
"@alexaegis/predicate": "workspace:^",
|
|
87
|
+
"autotool-plugin": "^0.6.1"
|
|
88
|
+
},
|
|
89
|
+
devDependencies: {
|
|
90
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
91
|
+
"@alexaegis/ts": "workspace:^",
|
|
92
|
+
"@alexaegis/vite": "workspace:^",
|
|
93
|
+
"@alexaegis/vitest": "workspace:^",
|
|
94
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
95
|
+
"@types/node": "^25.9.1",
|
|
96
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
97
|
+
"publint": "^0.3.21",
|
|
98
|
+
"typescript": "^6.0.3",
|
|
99
|
+
"vite": "^8.0.16",
|
|
100
|
+
"vite-plugin-dts": "^5.0.2",
|
|
101
|
+
"vitest": "^4.1.8"
|
|
102
|
+
}
|
|
116
103
|
};
|
|
117
104
|
//#endregion
|
|
118
105
|
//#region src/index.ts
|
|
@@ -130,7 +117,7 @@ var plugin = (_options) => {
|
|
|
130
117
|
devDependencies: {
|
|
131
118
|
"@vitest/coverage-v8": package_default.devDependencies["@vitest/coverage-v8"],
|
|
132
119
|
"@lcov-viewer/cli": package_default.devDependencies["@lcov-viewer/cli"],
|
|
133
|
-
"@alexaegis/coverage-tools": package_default.
|
|
120
|
+
"@alexaegis/coverage-tools": `^${package_default.version}`
|
|
134
121
|
}
|
|
135
122
|
}
|
|
136
123
|
},
|
|
@@ -154,7 +141,7 @@ var plugin = (_options) => {
|
|
|
154
141
|
archetype: { kind: appOrLib }
|
|
155
142
|
},
|
|
156
143
|
data: { devDependencies: {
|
|
157
|
-
"@alexaegis/vitest": package_default.
|
|
144
|
+
"@alexaegis/vitest": `^${package_default.version}`,
|
|
158
145
|
vitest: package_default.devDependencies.vitest
|
|
159
146
|
} }
|
|
160
147
|
},
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.2\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"vitest\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\"\n\t},\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"@alexaegis/predicate\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/node\": \"^25.9.1\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.8\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.0.16\",\n\t\t\"vite-plugin-dts\": \"^5.0.2\",\n\t\t\"vitest\": \"^4.1.8\"\n\t}\n}\n","import { contains, equal, not, or } from '@alexaegis/predicate';\nimport {\n\ttype AutotoolPlugin,\n\ttype AutotoolPluginObject,\n\ttype NormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json' with { type: 'json' };\n\nconst appOrLib = or(equal('app'), equal('lib'));\n\nexport const plugin: AutotoolPlugin = (\n\t_options: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'workspace test scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@vitest/coverage-v8': packageJson.devDependencies['@vitest/coverage-v8'],\n\t\t\t\t\t\t'@lcov-viewer/cli': packageJson.devDependencies['@lcov-viewer/cli'],\n\t\t\t\t\t\t'@alexaegis/coverage-tools': `^${packageJson.version}`,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test scripts',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 --filter ${packageName}',\n\t\t\t\t\t\ttest_: 'vitest --passWithNoTests --coverage --run',\n\t\t\t\t\t\t'test:watch': 'vitest --passWithNoTests --coverage',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tname: not(or(equal('@alexaegis/vite'), equal('@alexaegis/vitest'))), // Don't add it for itself and 'vite' it would cause a circle\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/vitest': `^${packageJson.version}`,\n\t\t\t\t\t\tvitest: packageJson.devDependencies.vitest,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for web packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'web',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-web-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for node packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'node',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-node-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for svelte packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tframework: 'svelte',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-svelte-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACSA,IAAM,YAAA,GAAA,qBAAA,KAAA,GAAA,qBAAA,OAAoB,KAAK,IAAA,GAAA,qBAAA,OAAS,KAAK,CAAC;AAE9C,IAAa,UACZ,aAC0B;CAC1B,OAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,0HACP;KACA,iBAAiB;MAChB,uBAAuB,gBAAY,gBAAgB;MACnD,oBAAoB,gBAAY,gBAAgB;MAChD,6BAA6B,IAAI,gBAAY;KAC9C;IACD;GACD;GACA;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB,EAClB,WAAW,EACV,MAAM,SACP,EACD;IACA,MAAM,EACL,SAAS;KACR,MAAM;KACN,OAAO;KACP,cAAc;IACf,EACD;GACD;GACA;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB;KAClB,OAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,KAAA,GAAA,qBAAA,OAAmB,iBAAiB,IAAA,GAAA,qBAAA,OAAS,mBAAmB,CAAC,CAAC;KAClE,WAAW,EACV,MAAM,SACP;IACD;IACA,MAAM,EACL,iBAAiB;KAChB,qBAAqB,IAAI,gBAAY;KACrC,QAAQ,gBAAY,gBAAgB;IACrC,EACD;GACD;GACA;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,YAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,UAAwB,QAAQ,CAAC;IAClC,EACD;IACA,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,8BAA8B;IACzD,YAAY;IACZ,yBAAyB,gBAAY;GACtC;GAEA;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,YAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,UAAwB,QAAQ,CAAC;IAClC,EACD;IACA,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,+BAA+B;IAC1D,YAAY;IACZ,yBAAyB,gBAAY;GACtC;GACA;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,WAAW;IACZ,EACD;IACA,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,iCAAiC;IAC5D,YAAY;IACZ,yBAAyB,gBAAY;GACtC;EACD;CACD;AACD"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,cAAc,EAGnB,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,MAAM,EAAE,cAyGpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,71 @@
|
|
|
1
1
|
import { contains, equal, not, or } from "@alexaegis/predicate";
|
|
2
2
|
import "autotool-plugin";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
var package_default = {
|
|
5
|
+
name: "@alexaegis/autotool-plugin-vitest",
|
|
6
|
+
description: "Setup vitest",
|
|
7
|
+
version: "0.15.2",
|
|
8
|
+
license: "MIT",
|
|
9
|
+
"private": false,
|
|
10
|
+
archetype: {
|
|
11
|
+
"platform": "node",
|
|
12
|
+
"framework": "autotool",
|
|
13
|
+
"language": "ts",
|
|
14
|
+
"kind": "lib"
|
|
15
|
+
},
|
|
16
|
+
keywords: [
|
|
17
|
+
"autotool-plugin",
|
|
18
|
+
"managed-by-autotool",
|
|
19
|
+
"vitest"
|
|
20
|
+
],
|
|
21
|
+
repository: {
|
|
22
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
23
|
+
"type": "git"
|
|
24
|
+
},
|
|
25
|
+
type: "module",
|
|
26
|
+
publishConfig: {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.cjs",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
36
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
37
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
38
|
+
"./package.json": "./package.json",
|
|
39
|
+
"./readme": "./readme.md"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
files: ["dist", "static"],
|
|
43
|
+
engines: { "node": ">=22.6.0" },
|
|
44
|
+
scripts: {
|
|
45
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
46
|
+
"lint:depcheck_": "depcheck",
|
|
47
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
48
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
49
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
50
|
+
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
51
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
52
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
53
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
54
|
+
"lint:tsc_": "tsc --noEmit",
|
|
55
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
56
|
+
"publint_": "publint",
|
|
57
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
58
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
59
|
+
"test:watch": "vitest --passWithNoTests --coverage",
|
|
60
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
61
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
62
|
+
"build-lib_": "vite build",
|
|
63
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
64
|
+
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
65
|
+
},
|
|
66
|
+
exports: {
|
|
27
67
|
".": {
|
|
28
|
-
"types": "./
|
|
68
|
+
"types": "./src/index.ts",
|
|
29
69
|
"import": "./dist/index.js",
|
|
30
70
|
"require": "./dist/index.cjs",
|
|
31
71
|
"default": "./dist/index.js"
|
|
@@ -35,80 +75,27 @@ var publishConfig = {
|
|
|
35
75
|
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
36
76
|
"./package.json": "./package.json",
|
|
37
77
|
"./readme": "./readme.md"
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var files = ["dist", "static"];
|
|
41
|
-
var scripts = {
|
|
42
|
-
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
43
|
-
"lint:depcheck_": "depcheck",
|
|
44
|
-
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
45
|
-
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
46
|
-
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
47
|
-
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
48
|
-
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
49
|
-
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
50
|
-
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
51
|
-
"lint:tsc_": "tsc --noEmit",
|
|
52
|
-
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
53
|
-
"publint_": "publint",
|
|
54
|
-
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
55
|
-
"test_": "vitest --passWithNoTests --coverage --run",
|
|
56
|
-
"test:watch": "vitest --passWithNoTests --coverage",
|
|
57
|
-
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
58
|
-
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
59
|
-
"build-lib_": "vite build",
|
|
60
|
-
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
61
|
-
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
62
|
-
};
|
|
63
|
-
var exports = {
|
|
64
|
-
".": {
|
|
65
|
-
"types": "./src/index.ts",
|
|
66
|
-
"import": "./dist/index.js",
|
|
67
|
-
"require": "./dist/index.cjs",
|
|
68
|
-
"default": "./dist/index.js"
|
|
69
78
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"publint": "^0.3.18",
|
|
91
|
-
"typescript": "^5.9.3",
|
|
92
|
-
"vite": "^8.0.1",
|
|
93
|
-
"vite-plugin-dts": "^4.5.4",
|
|
94
|
-
"vitest": "^4.1.0"
|
|
95
|
-
};
|
|
96
|
-
var package_default = {
|
|
97
|
-
name,
|
|
98
|
-
description,
|
|
99
|
-
version,
|
|
100
|
-
license: "MIT",
|
|
101
|
-
"private": false,
|
|
102
|
-
archetype,
|
|
103
|
-
keywords,
|
|
104
|
-
repository,
|
|
105
|
-
type,
|
|
106
|
-
publishConfig,
|
|
107
|
-
files,
|
|
108
|
-
scripts,
|
|
109
|
-
exports,
|
|
110
|
-
dependencies,
|
|
111
|
-
devDependencies
|
|
79
|
+
dependencies: {
|
|
80
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
81
|
+
"@alexaegis/logging": "workspace:^",
|
|
82
|
+
"@alexaegis/predicate": "workspace:^",
|
|
83
|
+
"autotool-plugin": "^0.6.1"
|
|
84
|
+
},
|
|
85
|
+
devDependencies: {
|
|
86
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
87
|
+
"@alexaegis/ts": "workspace:^",
|
|
88
|
+
"@alexaegis/vite": "workspace:^",
|
|
89
|
+
"@alexaegis/vitest": "workspace:^",
|
|
90
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
91
|
+
"@types/node": "^25.9.1",
|
|
92
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
93
|
+
"publint": "^0.3.21",
|
|
94
|
+
"typescript": "^6.0.3",
|
|
95
|
+
"vite": "^8.0.16",
|
|
96
|
+
"vite-plugin-dts": "^5.0.2",
|
|
97
|
+
"vitest": "^4.1.8"
|
|
98
|
+
}
|
|
112
99
|
};
|
|
113
100
|
//#endregion
|
|
114
101
|
//#region src/index.ts
|
|
@@ -126,7 +113,7 @@ var plugin = (_options) => {
|
|
|
126
113
|
devDependencies: {
|
|
127
114
|
"@vitest/coverage-v8": package_default.devDependencies["@vitest/coverage-v8"],
|
|
128
115
|
"@lcov-viewer/cli": package_default.devDependencies["@lcov-viewer/cli"],
|
|
129
|
-
"@alexaegis/coverage-tools": package_default.
|
|
116
|
+
"@alexaegis/coverage-tools": `^${package_default.version}`
|
|
130
117
|
}
|
|
131
118
|
}
|
|
132
119
|
},
|
|
@@ -150,7 +137,7 @@ var plugin = (_options) => {
|
|
|
150
137
|
archetype: { kind: appOrLib }
|
|
151
138
|
},
|
|
152
139
|
data: { devDependencies: {
|
|
153
|
-
"@alexaegis/vitest": package_default.
|
|
140
|
+
"@alexaegis/vitest": `^${package_default.version}`,
|
|
154
141
|
vitest: package_default.devDependencies.vitest
|
|
155
142
|
} }
|
|
156
143
|
},
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../package.json","../src/index.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/autotool-plugin-vitest\",\n\t\"description\": \"Setup vitest\",\n\t\"version\": \"0.15.2\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"framework\": \"autotool\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"autotool-plugin\",\n\t\t\"managed-by-autotool\",\n\t\t\"vitest\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\",\n\t\t\"static\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\"\n\t},\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package-node-vitest.config\": \"./static/package-node-vitest.config.ts\",\n\t\t\"./package-svelte-vitest.config\": \"./static/package-svelte-vitest.config.ts\",\n\t\t\"./package-web-vitest.config\": \"./static/package-web-vitest.config.ts\",\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/coverage-tools\": \"workspace:^\",\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"@alexaegis/predicate\": \"workspace:^\",\n\t\t\"autotool-plugin\": \"^0.6.1\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@lcov-viewer/cli\": \"^1.3.0\",\n\t\t\"@types/node\": \"^25.9.1\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.8\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.0.16\",\n\t\t\"vite-plugin-dts\": \"^5.0.2\",\n\t\t\"vitest\": \"^4.1.8\"\n\t}\n}\n","import { contains, equal, not, or } from '@alexaegis/predicate';\nimport {\n\ttype AutotoolPlugin,\n\ttype AutotoolPluginObject,\n\ttype NormalizedAutotoolPluginOptions,\n} from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json' with { type: 'json' };\n\nconst appOrLib = or(equal('app'), equal('lib'));\n\nexport const plugin: AutotoolPlugin = (\n\t_options: NormalizedAutotoolPluginOptions,\n): AutotoolPluginObject => {\n\treturn {\n\t\tname: packageJson.name,\n\t\telements: [\n\t\t\t{\n\t\t\t\tdescription: 'workspace test scripts and devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'root',\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info',\n\t\t\t\t\t},\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@vitest/coverage-v8': packageJson.devDependencies['@vitest/coverage-v8'],\n\t\t\t\t\t\t'@lcov-viewer/cli': packageJson.devDependencies['@lcov-viewer/cli'],\n\t\t\t\t\t\t'@alexaegis/coverage-tools': `^${packageJson.version}`,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test scripts',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tscripts: {\n\t\t\t\t\t\ttest: 'turbo run test_ --concurrency 16 --filter ${packageName}',\n\t\t\t\t\t\ttest_: 'vitest --passWithNoTests --coverage --run',\n\t\t\t\t\t\t'test:watch': 'vitest --passWithNoTests --coverage',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package test devDependencies',\n\t\t\t\texecutor: 'packageJson',\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tname: not(or(equal('@alexaegis/vite'), equal('@alexaegis/vitest'))), // Don't add it for itself and 'vite' it would cause a circle\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdata: {\n\t\t\t\t\tdevDependencies: {\n\t\t\t\t\t\t'@alexaegis/vitest': `^${packageJson.version}`,\n\t\t\t\t\t\tvitest: packageJson.devDependencies.vitest,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for web packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'web',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-web-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for node packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tplatform: 'node',\n\t\t\t\t\t\tframework: not(contains('svelte')),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-node-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t\t{\n\t\t\t\tdescription: 'package vitest config file for svelte packages',\n\t\t\t\texecutor: 'fileCopy',\n\t\t\t\tpackageJsonFilter: {\n\t\t\t\t\tarchetype: {\n\t\t\t\t\t\tkind: appOrLib,\n\t\t\t\t\t\tframework: 'svelte',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpackageKind: 'regular',\n\t\t\t\tformatWithPrettier: true,\n\t\t\t\tsourceFile: join('static', 'package-svelte-vitest.config.ts'),\n\t\t\t\ttargetFile: 'vitest.config.ts',\n\t\t\t\tsourcePluginPackageName: packageJson.name,\n\t\t\t},\n\t\t],\n\t};\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACSA,IAAM,WAAW,GAAG,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC;AAE9C,IAAa,UACZ,aAC0B;CAC1B,OAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,0HACP;KACA,iBAAiB;MAChB,uBAAuB,gBAAY,gBAAgB;MACnD,oBAAoB,gBAAY,gBAAgB;MAChD,6BAA6B,IAAI,gBAAY;KAC9C;IACD;GACD;GACA;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB,EAClB,WAAW,EACV,MAAM,SACP,EACD;IACA,MAAM,EACL,SAAS;KACR,MAAM;KACN,OAAO;KACP,cAAc;IACf,EACD;GACD;GACA;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB;KAClB,MAAM,IAAI,GAAG,MAAM,iBAAiB,GAAG,MAAM,mBAAmB,CAAC,CAAC;KAClE,WAAW,EACV,MAAM,SACP;IACD;IACA,MAAM,EACL,iBAAiB;KAChB,qBAAqB,IAAI,gBAAY;KACrC,QAAQ,gBAAY,gBAAgB;IACrC,EACD;GACD;GACA;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,WAAW,IAAI,SAAS,QAAQ,CAAC;IAClC,EACD;IACA,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,8BAA8B;IACzD,YAAY;IACZ,yBAAyB,gBAAY;GACtC;GAEA;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,WAAW,IAAI,SAAS,QAAQ,CAAC;IAClC,EACD;IACA,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,+BAA+B;IAC1D,YAAY;IACZ,yBAAyB,gBAAY;GACtC;GACA;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,WAAW;IACZ,EACD;IACA,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,iCAAiC;IAC5D,YAAY;IACZ,yBAAyB,gBAAY;GACtC;EACD;CACD;AACD"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"name": "@alexaegis/autotool-plugin-vitest",
|
|
3
|
+
"description": "Setup vitest",
|
|
4
|
+
"version": "0.15.2",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": false,
|
|
7
|
+
"archetype": {
|
|
8
|
+
"platform": "node",
|
|
9
|
+
"framework": "autotool",
|
|
10
|
+
"language": "ts",
|
|
11
|
+
"kind": "lib"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"autotool-plugin",
|
|
15
|
+
"managed-by-autotool",
|
|
16
|
+
"vitest"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
20
|
+
"type": "git"
|
|
21
|
+
},
|
|
22
|
+
"type": "module",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"require": "./dist/index.cjs",
|
|
30
|
+
"default": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
33
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
34
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
35
|
+
"./package.json": "./package.json",
|
|
36
|
+
"./readme": "./readme.md"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"static"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=22.6.0"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
48
|
+
"lint:depcheck_": "depcheck",
|
|
49
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
50
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
51
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
52
|
+
"lint:format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .",
|
|
53
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
54
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore .",
|
|
55
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
56
|
+
"lint:tsc_": "tsc --noEmit",
|
|
57
|
+
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
58
|
+
"publint_": "publint",
|
|
59
|
+
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
60
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
61
|
+
"test:watch": "vitest --passWithNoTests --coverage",
|
|
62
|
+
"all": "BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
63
|
+
"build": "turbo run build-lib_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
64
|
+
"build-lib_": "vite build",
|
|
65
|
+
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
66
|
+
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write ."
|
|
67
|
+
},
|
|
68
|
+
"exports": {
|
|
69
|
+
".": {
|
|
70
|
+
"types": "./src/index.ts",
|
|
71
|
+
"import": "./dist/index.js",
|
|
72
|
+
"require": "./dist/index.cjs",
|
|
73
|
+
"default": "./dist/index.js"
|
|
74
|
+
},
|
|
75
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
76
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
77
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
78
|
+
"./package.json": "./package.json",
|
|
79
|
+
"./readme": "./readme.md"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
83
|
+
"@alexaegis/logging": "workspace:^",
|
|
84
|
+
"@alexaegis/predicate": "workspace:^",
|
|
85
|
+
"autotool-plugin": "^0.6.1"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
89
|
+
"@alexaegis/ts": "workspace:^",
|
|
90
|
+
"@alexaegis/vite": "workspace:^",
|
|
91
|
+
"@alexaegis/vitest": "workspace:^",
|
|
92
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
93
|
+
"@types/node": "^25.9.1",
|
|
94
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
95
|
+
"publint": "^0.3.21",
|
|
96
|
+
"typescript": "^6.0.3",
|
|
97
|
+
"vite": "^8.0.16",
|
|
98
|
+
"vite-plugin-dts": "^5.0.2",
|
|
99
|
+
"vitest": "^4.1.8"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
;
|
|
103
|
+
|
|
104
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-node-vitest.config.d.ts","sourceRoot":"","sources":["../../static/package-node-vitest.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-svelte-vitest.config.d.ts","sourceRoot":"","sources":["../../static/package-svelte-vitest.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-web-vitest.config.d.ts","sourceRoot":"","sources":["../../static/package-web-vitest.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAMA,wBAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexaegis/autotool-plugin-vitest",
|
|
3
3
|
"description": "Setup vitest",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"vitest"
|
|
17
17
|
],
|
|
18
18
|
"repository": {
|
|
19
|
-
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
19
|
+
"url": "git+https://github.com/AlexAegis/js-tooling.git",
|
|
20
20
|
"type": "git"
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"dist",
|
|
28
28
|
"static"
|
|
29
29
|
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=22.6.0"
|
|
32
|
+
},
|
|
30
33
|
"exports": {
|
|
31
34
|
".": {
|
|
32
35
|
"types": "./dist/index.d.ts",
|
|
@@ -42,23 +45,23 @@
|
|
|
42
45
|
},
|
|
43
46
|
"dependencies": {
|
|
44
47
|
"autotool-plugin": "^0.6.1",
|
|
45
|
-
"@alexaegis/
|
|
46
|
-
"@alexaegis/
|
|
47
|
-
"@alexaegis/
|
|
48
|
+
"@alexaegis/logging": "^0.15.2",
|
|
49
|
+
"@alexaegis/coverage-tools": "^0.15.2",
|
|
50
|
+
"@alexaegis/predicate": "^0.15.2"
|
|
48
51
|
},
|
|
49
52
|
"devDependencies": {
|
|
50
53
|
"@lcov-viewer/cli": "^1.3.0",
|
|
51
|
-
"@types/node": "^25.
|
|
52
|
-
"@vitest/coverage-v8": "^4.1.
|
|
53
|
-
"publint": "^0.3.
|
|
54
|
-
"typescript": "^
|
|
55
|
-
"vite": "^8.0.
|
|
56
|
-
"vite-plugin-dts": "^
|
|
57
|
-
"vitest": "^4.1.
|
|
58
|
-
"@alexaegis/eslint-config-vitest": "^0.15.
|
|
59
|
-
"@alexaegis/
|
|
60
|
-
"@alexaegis/
|
|
61
|
-
"@alexaegis/
|
|
54
|
+
"@types/node": "^25.9.1",
|
|
55
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
56
|
+
"publint": "^0.3.21",
|
|
57
|
+
"typescript": "^6.0.3",
|
|
58
|
+
"vite": "^8.0.16",
|
|
59
|
+
"vite-plugin-dts": "^5.0.2",
|
|
60
|
+
"vitest": "^4.1.8",
|
|
61
|
+
"@alexaegis/eslint-config-vitest": "^0.15.2",
|
|
62
|
+
"@alexaegis/vite": "^0.15.2",
|
|
63
|
+
"@alexaegis/ts": "^0.15.2",
|
|
64
|
+
"@alexaegis/vitest": "^0.15.2"
|
|
62
65
|
},
|
|
63
66
|
"scripts": {
|
|
64
67
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|