@alexaegis/autotool-plugin-vitest 0.14.1 → 0.15.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/dist/index.cjs +209 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +204 -0
- package/dist/index.js.map +1 -0
- package/package.json +26 -39
- package/index.cjs +0 -127
- package/index.d.ts.map +0 -1
- package/index.js +0 -127
- package/license +0 -21
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.spec.d.ts → dist/index.spec.d.ts} +0 -0
- /package/{index.spec.d.ts.map → dist/index.spec.d.ts.map} +0 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _alexaegis_predicate = require("@alexaegis/predicate");
|
|
6
|
+
require("autotool-plugin");
|
|
7
|
+
let node_path = require("node:path");
|
|
8
|
+
//#region package.json
|
|
9
|
+
var name = "@alexaegis/autotool-plugin-vitest";
|
|
10
|
+
var description = "Setup vitest";
|
|
11
|
+
var version = "0.15.0";
|
|
12
|
+
var archetype = {
|
|
13
|
+
"platform": "node",
|
|
14
|
+
"framework": "autotool",
|
|
15
|
+
"language": "ts",
|
|
16
|
+
"kind": "lib"
|
|
17
|
+
};
|
|
18
|
+
var keywords = [
|
|
19
|
+
"autotool-plugin",
|
|
20
|
+
"managed-by-autotool",
|
|
21
|
+
"vitest"
|
|
22
|
+
];
|
|
23
|
+
var repository = {
|
|
24
|
+
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
25
|
+
"type": "git"
|
|
26
|
+
};
|
|
27
|
+
var type = "module";
|
|
28
|
+
var publishConfig = {
|
|
29
|
+
"access": "public",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js",
|
|
34
|
+
"require": "./dist/index.cjs",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
38
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
39
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
40
|
+
"./package.json": "./package.json",
|
|
41
|
+
"./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
|
+
},
|
|
74
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
75
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
76
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
77
|
+
"./package.json": "./package.json",
|
|
78
|
+
"./readme": "./readme.md"
|
|
79
|
+
};
|
|
80
|
+
var dependencies = {
|
|
81
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
82
|
+
"@alexaegis/logging": "workspace:^",
|
|
83
|
+
"@alexaegis/predicate": "workspace:^",
|
|
84
|
+
"autotool-plugin": "^0.6.1"
|
|
85
|
+
};
|
|
86
|
+
var devDependencies = {
|
|
87
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
88
|
+
"@alexaegis/ts": "workspace:^",
|
|
89
|
+
"@alexaegis/vite": "workspace:^",
|
|
90
|
+
"@alexaegis/vitest": "workspace:^",
|
|
91
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
92
|
+
"@types/node": "^25.5.0",
|
|
93
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
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
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/index.ts
|
|
119
|
+
var appOrLib = (0, _alexaegis_predicate.or)((0, _alexaegis_predicate.equal)("app"), (0, _alexaegis_predicate.equal)("lib"));
|
|
120
|
+
var plugin = (_options) => {
|
|
121
|
+
return {
|
|
122
|
+
name: package_default.name,
|
|
123
|
+
elements: [
|
|
124
|
+
{
|
|
125
|
+
description: "workspace test scripts and devDependencies",
|
|
126
|
+
executor: "packageJson",
|
|
127
|
+
packageKind: "root",
|
|
128
|
+
data: {
|
|
129
|
+
scripts: { test: "turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info" },
|
|
130
|
+
devDependencies: {
|
|
131
|
+
"@vitest/coverage-v8": package_default.devDependencies["@vitest/coverage-v8"],
|
|
132
|
+
"@lcov-viewer/cli": package_default.devDependencies["@lcov-viewer/cli"],
|
|
133
|
+
"@alexaegis/coverage-tools": package_default.dependencies["@alexaegis/coverage-tools"]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
description: "package test scripts",
|
|
139
|
+
executor: "packageJson",
|
|
140
|
+
packageKind: "regular",
|
|
141
|
+
packageJsonFilter: { archetype: { kind: appOrLib } },
|
|
142
|
+
data: { scripts: {
|
|
143
|
+
test: "turbo run test_ --concurrency 16 --filter ${packageName}",
|
|
144
|
+
test_: "vitest --passWithNoTests --coverage --run",
|
|
145
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
146
|
+
} }
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
description: "package test devDependencies",
|
|
150
|
+
executor: "packageJson",
|
|
151
|
+
packageKind: "regular",
|
|
152
|
+
packageJsonFilter: {
|
|
153
|
+
name: (0, _alexaegis_predicate.not)((0, _alexaegis_predicate.or)((0, _alexaegis_predicate.equal)("@alexaegis/vite"), (0, _alexaegis_predicate.equal)("@alexaegis/vitest"))),
|
|
154
|
+
archetype: { kind: appOrLib }
|
|
155
|
+
},
|
|
156
|
+
data: { devDependencies: {
|
|
157
|
+
"@alexaegis/vitest": package_default.devDependencies["@alexaegis/vitest"],
|
|
158
|
+
vitest: package_default.devDependencies.vitest
|
|
159
|
+
} }
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
description: "package vitest config file for web packages",
|
|
163
|
+
executor: "fileCopy",
|
|
164
|
+
packageJsonFilter: { archetype: {
|
|
165
|
+
kind: appOrLib,
|
|
166
|
+
platform: "web",
|
|
167
|
+
framework: (0, _alexaegis_predicate.not)((0, _alexaegis_predicate.contains)("svelte"))
|
|
168
|
+
} },
|
|
169
|
+
packageKind: "regular",
|
|
170
|
+
formatWithPrettier: true,
|
|
171
|
+
sourceFile: (0, node_path.join)("static", "package-web-vitest.config.ts"),
|
|
172
|
+
targetFile: "vitest.config.ts",
|
|
173
|
+
sourcePluginPackageName: package_default.name
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
description: "package vitest config file for node packages",
|
|
177
|
+
executor: "fileCopy",
|
|
178
|
+
packageJsonFilter: { archetype: {
|
|
179
|
+
kind: appOrLib,
|
|
180
|
+
platform: "node",
|
|
181
|
+
framework: (0, _alexaegis_predicate.not)((0, _alexaegis_predicate.contains)("svelte"))
|
|
182
|
+
} },
|
|
183
|
+
packageKind: "regular",
|
|
184
|
+
formatWithPrettier: true,
|
|
185
|
+
sourceFile: (0, node_path.join)("static", "package-node-vitest.config.ts"),
|
|
186
|
+
targetFile: "vitest.config.ts",
|
|
187
|
+
sourcePluginPackageName: package_default.name
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
description: "package vitest config file for svelte packages",
|
|
191
|
+
executor: "fileCopy",
|
|
192
|
+
packageJsonFilter: { archetype: {
|
|
193
|
+
kind: appOrLib,
|
|
194
|
+
framework: "svelte"
|
|
195
|
+
} },
|
|
196
|
+
packageKind: "regular",
|
|
197
|
+
formatWithPrettier: true,
|
|
198
|
+
sourceFile: (0, node_path.join)("static", "package-svelte-vitest.config.ts"),
|
|
199
|
+
targetFile: "vitest.config.ts",
|
|
200
|
+
sourcePluginPackageName: package_default.name
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
//#endregion
|
|
206
|
+
exports.default = plugin;
|
|
207
|
+
exports.plugin = plugin;
|
|
208
|
+
|
|
209
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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.0\",\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\",\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\"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.5.0\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.0\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"typescript\": \"^5.9.3\",\n\t\t\"vite\": \"^8.0.1\",\n\t\t\"vite-plugin-dts\": \"^4.5.4\",\n\t\t\"vitest\": \"^4.1.0\"\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':\n\t\t\t\t\t\t\tpackageJson.dependencies['@alexaegis/coverage-tools'],\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.devDependencies['@alexaegis/vitest'],\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,MAAM,GAAA,GAAA,qBAAA,OAAQ,MAAM,CAAC;AAE/C,IAAa,UACZ,aAC0B;AAC1B,QAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,2HACN;KACD,iBAAiB;MAChB,uBAAuB,gBAAY,gBAAgB;MACnD,oBAAoB,gBAAY,gBAAgB;MAChD,6BACC,gBAAY,aAAa;MAC1B;KACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB,EAClB,WAAW,EACV,MAAM,UACN,EACD;IACD,MAAM,EACL,SAAS;KACR,MAAM;KACN,OAAO;KACP,cAAc;KACd,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB;KAClB,OAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,KAAA,GAAA,qBAAA,OAAmB,kBAAkB,GAAA,GAAA,qBAAA,OAAQ,oBAAoB,CAAC,CAAC;KACnE,WAAW,EACV,MAAM,UACN;KACD;IACD,MAAM,EACL,iBAAiB;KAChB,qBAAqB,gBAAY,gBAAgB;KACjD,QAAQ,gBAAY,gBAAgB;KACpC,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,YAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,UAAwB,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,+BAA+B;IAC1D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GAED;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,YAAA,GAAA,qBAAA,MAAA,GAAA,qBAAA,UAAwB,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,gCAAgC;IAC3D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,WAAW;KACX,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,aAAA,GAAA,UAAA,MAAiB,UAAU,kCAAkC;IAC7D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;EACD"}
|
|
@@ -0,0 +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,cA0GpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { contains, equal, not, or } from "@alexaegis/predicate";
|
|
2
|
+
import "autotool-plugin";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
//#region package.json
|
|
5
|
+
var name = "@alexaegis/autotool-plugin-vitest";
|
|
6
|
+
var description = "Setup vitest";
|
|
7
|
+
var version = "0.15.0";
|
|
8
|
+
var archetype = {
|
|
9
|
+
"platform": "node",
|
|
10
|
+
"framework": "autotool",
|
|
11
|
+
"language": "ts",
|
|
12
|
+
"kind": "lib"
|
|
13
|
+
};
|
|
14
|
+
var keywords = [
|
|
15
|
+
"autotool-plugin",
|
|
16
|
+
"managed-by-autotool",
|
|
17
|
+
"vitest"
|
|
18
|
+
];
|
|
19
|
+
var repository = {
|
|
20
|
+
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
21
|
+
"type": "git"
|
|
22
|
+
};
|
|
23
|
+
var type = "module";
|
|
24
|
+
var publishConfig = {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"require": "./dist/index.cjs",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
34
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
35
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
"./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
|
+
},
|
|
70
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
71
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
72
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
73
|
+
"./package.json": "./package.json",
|
|
74
|
+
"./readme": "./readme.md"
|
|
75
|
+
};
|
|
76
|
+
var dependencies = {
|
|
77
|
+
"@alexaegis/coverage-tools": "workspace:^",
|
|
78
|
+
"@alexaegis/logging": "workspace:^",
|
|
79
|
+
"@alexaegis/predicate": "workspace:^",
|
|
80
|
+
"autotool-plugin": "^0.6.1"
|
|
81
|
+
};
|
|
82
|
+
var devDependencies = {
|
|
83
|
+
"@alexaegis/eslint-config-vitest": "workspace:^",
|
|
84
|
+
"@alexaegis/ts": "workspace:^",
|
|
85
|
+
"@alexaegis/vite": "workspace:^",
|
|
86
|
+
"@alexaegis/vitest": "workspace:^",
|
|
87
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
88
|
+
"@types/node": "^25.5.0",
|
|
89
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
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
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/index.ts
|
|
115
|
+
var appOrLib = or(equal("app"), equal("lib"));
|
|
116
|
+
var plugin = (_options) => {
|
|
117
|
+
return {
|
|
118
|
+
name: package_default.name,
|
|
119
|
+
elements: [
|
|
120
|
+
{
|
|
121
|
+
description: "workspace test scripts and devDependencies",
|
|
122
|
+
executor: "packageJson",
|
|
123
|
+
packageKind: "root",
|
|
124
|
+
data: {
|
|
125
|
+
scripts: { test: "turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info" },
|
|
126
|
+
devDependencies: {
|
|
127
|
+
"@vitest/coverage-v8": package_default.devDependencies["@vitest/coverage-v8"],
|
|
128
|
+
"@lcov-viewer/cli": package_default.devDependencies["@lcov-viewer/cli"],
|
|
129
|
+
"@alexaegis/coverage-tools": package_default.dependencies["@alexaegis/coverage-tools"]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
description: "package test scripts",
|
|
135
|
+
executor: "packageJson",
|
|
136
|
+
packageKind: "regular",
|
|
137
|
+
packageJsonFilter: { archetype: { kind: appOrLib } },
|
|
138
|
+
data: { scripts: {
|
|
139
|
+
test: "turbo run test_ --concurrency 16 --filter ${packageName}",
|
|
140
|
+
test_: "vitest --passWithNoTests --coverage --run",
|
|
141
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
142
|
+
} }
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
description: "package test devDependencies",
|
|
146
|
+
executor: "packageJson",
|
|
147
|
+
packageKind: "regular",
|
|
148
|
+
packageJsonFilter: {
|
|
149
|
+
name: not(or(equal("@alexaegis/vite"), equal("@alexaegis/vitest"))),
|
|
150
|
+
archetype: { kind: appOrLib }
|
|
151
|
+
},
|
|
152
|
+
data: { devDependencies: {
|
|
153
|
+
"@alexaegis/vitest": package_default.devDependencies["@alexaegis/vitest"],
|
|
154
|
+
vitest: package_default.devDependencies.vitest
|
|
155
|
+
} }
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
description: "package vitest config file for web packages",
|
|
159
|
+
executor: "fileCopy",
|
|
160
|
+
packageJsonFilter: { archetype: {
|
|
161
|
+
kind: appOrLib,
|
|
162
|
+
platform: "web",
|
|
163
|
+
framework: not(contains("svelte"))
|
|
164
|
+
} },
|
|
165
|
+
packageKind: "regular",
|
|
166
|
+
formatWithPrettier: true,
|
|
167
|
+
sourceFile: join("static", "package-web-vitest.config.ts"),
|
|
168
|
+
targetFile: "vitest.config.ts",
|
|
169
|
+
sourcePluginPackageName: package_default.name
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
description: "package vitest config file for node packages",
|
|
173
|
+
executor: "fileCopy",
|
|
174
|
+
packageJsonFilter: { archetype: {
|
|
175
|
+
kind: appOrLib,
|
|
176
|
+
platform: "node",
|
|
177
|
+
framework: not(contains("svelte"))
|
|
178
|
+
} },
|
|
179
|
+
packageKind: "regular",
|
|
180
|
+
formatWithPrettier: true,
|
|
181
|
+
sourceFile: join("static", "package-node-vitest.config.ts"),
|
|
182
|
+
targetFile: "vitest.config.ts",
|
|
183
|
+
sourcePluginPackageName: package_default.name
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
description: "package vitest config file for svelte packages",
|
|
187
|
+
executor: "fileCopy",
|
|
188
|
+
packageJsonFilter: { archetype: {
|
|
189
|
+
kind: appOrLib,
|
|
190
|
+
framework: "svelte"
|
|
191
|
+
} },
|
|
192
|
+
packageKind: "regular",
|
|
193
|
+
formatWithPrettier: true,
|
|
194
|
+
sourceFile: join("static", "package-svelte-vitest.config.ts"),
|
|
195
|
+
targetFile: "vitest.config.ts",
|
|
196
|
+
sourcePluginPackageName: package_default.name
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
//#endregion
|
|
202
|
+
export { plugin as default, plugin };
|
|
203
|
+
|
|
204
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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.0\",\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\",\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\"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.5.0\",\n\t\t\"@vitest/coverage-v8\": \"^4.1.0\",\n\t\t\"publint\": \"^0.3.18\",\n\t\t\"typescript\": \"^5.9.3\",\n\t\t\"vite\": \"^8.0.1\",\n\t\t\"vite-plugin-dts\": \"^4.5.4\",\n\t\t\"vitest\": \"^4.1.0\"\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':\n\t\t\t\t\t\t\tpackageJson.dependencies['@alexaegis/coverage-tools'],\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.devDependencies['@alexaegis/vitest'],\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,MAAM,EAAE,MAAM,MAAM,CAAC;AAE/C,IAAa,UACZ,aAC0B;AAC1B,QAAO;EACN,MAAM,gBAAY;EAClB,UAAU;GACT;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,MAAM;KACL,SAAS,EACR,MAAM,2HACN;KACD,iBAAiB;MAChB,uBAAuB,gBAAY,gBAAgB;MACnD,oBAAoB,gBAAY,gBAAgB;MAChD,6BACC,gBAAY,aAAa;MAC1B;KACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB,EAClB,WAAW,EACV,MAAM,UACN,EACD;IACD,MAAM,EACL,SAAS;KACR,MAAM;KACN,OAAO;KACP,cAAc;KACd,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,aAAa;IACb,mBAAmB;KAClB,MAAM,IAAI,GAAG,MAAM,kBAAkB,EAAE,MAAM,oBAAoB,CAAC,CAAC;KACnE,WAAW,EACV,MAAM,UACN;KACD;IACD,MAAM,EACL,iBAAiB;KAChB,qBAAqB,gBAAY,gBAAgB;KACjD,QAAQ,gBAAY,gBAAgB;KACpC,EACD;IACD;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,WAAW,IAAI,SAAS,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,+BAA+B;IAC1D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GAED;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,UAAU;KACV,WAAW,IAAI,SAAS,SAAS,CAAC;KAClC,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,gCAAgC;IAC3D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;IACC,aAAa;IACb,UAAU;IACV,mBAAmB,EAClB,WAAW;KACV,MAAM;KACN,WAAW;KACX,EACD;IACD,aAAa;IACb,oBAAoB;IACpB,YAAY,KAAK,UAAU,kCAAkC;IAC7D,YAAY;IACZ,yBAAyB,gBAAY;IACrC;GACD;EACD"}
|
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.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"archetype": {
|
|
@@ -15,38 +15,24 @@
|
|
|
15
15
|
"managed-by-autotool",
|
|
16
16
|
"vitest"
|
|
17
17
|
],
|
|
18
|
-
"author": {
|
|
19
|
-
"email": "alexaegis@pm.me",
|
|
20
|
-
"name": "Alex Aegis",
|
|
21
|
-
"url": "https://github.com/AlexAegis"
|
|
22
|
-
},
|
|
23
|
-
"homepage": "https://github.com/AlexAegis/js-tooling",
|
|
24
18
|
"repository": {
|
|
25
19
|
"url": "git+https://github.com/AlexAegis/js-tooling",
|
|
26
|
-
"type": "git"
|
|
27
|
-
"directory": "packages/autotool-plugin-vitest"
|
|
28
|
-
},
|
|
29
|
-
"bugs": {
|
|
30
|
-
"email": "alexaegis@pm.me",
|
|
31
|
-
"url": "https://github.com/AlexAegis/js-tooling/issues"
|
|
20
|
+
"type": "git"
|
|
32
21
|
},
|
|
33
22
|
"type": "module",
|
|
34
|
-
"config": {
|
|
35
|
-
"engine-strict": true
|
|
36
|
-
},
|
|
37
23
|
"publishConfig": {
|
|
38
24
|
"access": "public"
|
|
39
25
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"static"
|
|
29
|
+
],
|
|
44
30
|
"exports": {
|
|
45
31
|
".": {
|
|
46
|
-
"types": "./index.d.ts",
|
|
47
|
-
"import": "./index.js",
|
|
48
|
-
"require": "./index.cjs",
|
|
49
|
-
"default": "./index.js"
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js",
|
|
34
|
+
"require": "./dist/index.cjs",
|
|
35
|
+
"default": "./dist/index.js"
|
|
50
36
|
},
|
|
51
37
|
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
52
38
|
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
@@ -55,23 +41,24 @@
|
|
|
55
41
|
"./readme": "./readme.md"
|
|
56
42
|
},
|
|
57
43
|
"dependencies": {
|
|
58
|
-
"
|
|
59
|
-
"@alexaegis/
|
|
60
|
-
"@alexaegis/predicate": "^0.
|
|
61
|
-
"
|
|
44
|
+
"autotool-plugin": "^0.6.1",
|
|
45
|
+
"@alexaegis/coverage-tools": "^0.15.0",
|
|
46
|
+
"@alexaegis/predicate": "^0.15.0",
|
|
47
|
+
"@alexaegis/logging": "^0.15.0"
|
|
62
48
|
},
|
|
63
49
|
"devDependencies": {
|
|
64
|
-
"@alexaegis/eslint-config-vitest": "^0.14.1",
|
|
65
|
-
"@alexaegis/ts": "^0.14.1",
|
|
66
|
-
"@alexaegis/vite": "^0.14.1",
|
|
67
|
-
"@alexaegis/vitest": "^0.14.1",
|
|
68
50
|
"@lcov-viewer/cli": "^1.3.0",
|
|
69
|
-
"@types/node": "^
|
|
70
|
-
"@vitest/coverage-v8": "^
|
|
71
|
-
"publint": "^0.3.
|
|
72
|
-
"typescript": "^5.
|
|
73
|
-
"vite": "^
|
|
74
|
-
"
|
|
51
|
+
"@types/node": "^25.5.0",
|
|
52
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
53
|
+
"publint": "^0.3.18",
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"vite": "^8.0.1",
|
|
56
|
+
"vite-plugin-dts": "^4.5.4",
|
|
57
|
+
"vitest": "^4.1.0",
|
|
58
|
+
"@alexaegis/eslint-config-vitest": "^0.15.0",
|
|
59
|
+
"@alexaegis/ts": "^0.15.0",
|
|
60
|
+
"@alexaegis/vitest": "^0.15.0",
|
|
61
|
+
"@alexaegis/vite": "^0.15.0"
|
|
75
62
|
},
|
|
76
63
|
"scripts": {
|
|
77
64
|
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
@@ -85,7 +72,7 @@
|
|
|
85
72
|
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
86
73
|
"lint:tsc_": "tsc --noEmit",
|
|
87
74
|
"publint": "BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
88
|
-
"publint_": "publint
|
|
75
|
+
"publint_": "publint",
|
|
89
76
|
"test": "turbo run test_ --concurrency 16 --filter @alexaegis/autotool-plugin-vitest",
|
|
90
77
|
"test_": "vitest --passWithNoTests --coverage --run",
|
|
91
78
|
"test:watch": "vitest --passWithNoTests --coverage",
|
package/index.cjs
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const predicate = require("@alexaegis/predicate");
|
|
4
|
-
require("autotool-plugin");
|
|
5
|
-
const node_path = require("node:path");
|
|
6
|
-
const name = "@alexaegis/autotool-plugin-vitest";
|
|
7
|
-
const dependencies = { "@alexaegis/coverage-tools": "^0.11.0" };
|
|
8
|
-
const devDependencies = { "@alexaegis/vitest": "workspace:^", "@lcov-viewer/cli": "^1.3.0", "@vitest/coverage-v8": "^3.1.1", "vitest": "^3.1.1" };
|
|
9
|
-
const packageJson = {
|
|
10
|
-
name,
|
|
11
|
-
dependencies,
|
|
12
|
-
devDependencies
|
|
13
|
-
};
|
|
14
|
-
const appOrLib = predicate.or(predicate.equal("app"), predicate.equal("lib"));
|
|
15
|
-
const plugin = (_options) => {
|
|
16
|
-
return {
|
|
17
|
-
name: packageJson.name,
|
|
18
|
-
elements: [
|
|
19
|
-
{
|
|
20
|
-
description: "workspace test scripts and devDependencies",
|
|
21
|
-
executor: "packageJson",
|
|
22
|
-
packageKind: "root",
|
|
23
|
-
data: {
|
|
24
|
-
scripts: {
|
|
25
|
-
test: "turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info"
|
|
26
|
-
},
|
|
27
|
-
devDependencies: {
|
|
28
|
-
"@vitest/coverage-v8": packageJson.devDependencies["@vitest/coverage-v8"],
|
|
29
|
-
"@lcov-viewer/cli": packageJson.devDependencies["@lcov-viewer/cli"],
|
|
30
|
-
"@alexaegis/coverage-tools": packageJson.dependencies["@alexaegis/coverage-tools"]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
description: "package test scripts",
|
|
36
|
-
executor: "packageJson",
|
|
37
|
-
packageKind: "regular",
|
|
38
|
-
packageJsonFilter: {
|
|
39
|
-
archetype: {
|
|
40
|
-
kind: appOrLib
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
data: {
|
|
44
|
-
scripts: {
|
|
45
|
-
test: "turbo run test_ --concurrency 16 --filter ${packageName}",
|
|
46
|
-
test_: "vitest --passWithNoTests --coverage --run",
|
|
47
|
-
"test:watch": "vitest --passWithNoTests --coverage"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "package test devDependencies",
|
|
53
|
-
executor: "packageJson",
|
|
54
|
-
packageKind: "regular",
|
|
55
|
-
packageJsonFilter: {
|
|
56
|
-
name: predicate.not(
|
|
57
|
-
predicate.or(
|
|
58
|
-
predicate.equal("@alexaegis/vite"),
|
|
59
|
-
predicate.equal("@alexaegis/vitest"),
|
|
60
|
-
predicate.equal("vite-plugin-pakk"),
|
|
61
|
-
predicate.equal("@pakk/core")
|
|
62
|
-
)
|
|
63
|
-
),
|
|
64
|
-
// Don't add it for itself and 'vite' it would cause a circle
|
|
65
|
-
archetype: {
|
|
66
|
-
kind: appOrLib
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
data: {
|
|
70
|
-
devDependencies: {
|
|
71
|
-
"@alexaegis/vitest": packageJson.devDependencies["@alexaegis/vitest"],
|
|
72
|
-
vitest: packageJson.devDependencies.vitest
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "package vitest config file for web packages",
|
|
78
|
-
executor: "fileCopy",
|
|
79
|
-
packageJsonFilter: {
|
|
80
|
-
archetype: {
|
|
81
|
-
kind: appOrLib,
|
|
82
|
-
platform: "web",
|
|
83
|
-
framework: predicate.not(predicate.contains("svelte"))
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
packageKind: "regular",
|
|
87
|
-
formatWithPrettier: true,
|
|
88
|
-
sourceFile: node_path.join("static", "package-web-vitest.config.ts"),
|
|
89
|
-
targetFile: "vitest.config.ts",
|
|
90
|
-
sourcePluginPackageName: packageJson.name
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
description: "package vitest config file for node packages",
|
|
94
|
-
executor: "fileCopy",
|
|
95
|
-
packageJsonFilter: {
|
|
96
|
-
archetype: {
|
|
97
|
-
kind: appOrLib,
|
|
98
|
-
platform: "node",
|
|
99
|
-
framework: predicate.not(predicate.contains("svelte"))
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
packageKind: "regular",
|
|
103
|
-
formatWithPrettier: true,
|
|
104
|
-
sourceFile: node_path.join("static", "package-node-vitest.config.ts"),
|
|
105
|
-
targetFile: "vitest.config.ts",
|
|
106
|
-
sourcePluginPackageName: packageJson.name
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
description: "package vitest config file for svelte packages",
|
|
110
|
-
executor: "fileCopy",
|
|
111
|
-
packageJsonFilter: {
|
|
112
|
-
archetype: {
|
|
113
|
-
kind: appOrLib,
|
|
114
|
-
framework: "svelte"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
packageKind: "regular",
|
|
118
|
-
formatWithPrettier: true,
|
|
119
|
-
sourceFile: node_path.join("static", "package-svelte-vitest.config.ts"),
|
|
120
|
-
targetFile: "vitest.config.ts",
|
|
121
|
-
sourcePluginPackageName: packageJson.name
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
exports.default = plugin;
|
|
127
|
-
exports.plugin = plugin;
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,iBAAiB,CAAC;AAMjF,eAAO,MAAM,MAAM,EAAE,cA+GpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/index.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { or, equal, not, contains } from "@alexaegis/predicate";
|
|
2
|
-
import "autotool-plugin";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
const name = "@alexaegis/autotool-plugin-vitest";
|
|
5
|
-
const dependencies = { "@alexaegis/coverage-tools": "^0.11.0" };
|
|
6
|
-
const devDependencies = { "@alexaegis/vitest": "workspace:^", "@lcov-viewer/cli": "^1.3.0", "@vitest/coverage-v8": "^3.1.1", "vitest": "^3.1.1" };
|
|
7
|
-
const packageJson = {
|
|
8
|
-
name,
|
|
9
|
-
dependencies,
|
|
10
|
-
devDependencies
|
|
11
|
-
};
|
|
12
|
-
const appOrLib = or(equal("app"), equal("lib"));
|
|
13
|
-
const plugin = (_options) => {
|
|
14
|
-
return {
|
|
15
|
-
name: packageJson.name,
|
|
16
|
-
elements: [
|
|
17
|
-
{
|
|
18
|
-
description: "workspace test scripts and devDependencies",
|
|
19
|
-
executor: "packageJson",
|
|
20
|
-
packageKind: "root",
|
|
21
|
-
data: {
|
|
22
|
-
scripts: {
|
|
23
|
-
test: "turbo run test_ --concurrency 16 && merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info"
|
|
24
|
-
},
|
|
25
|
-
devDependencies: {
|
|
26
|
-
"@vitest/coverage-v8": packageJson.devDependencies["@vitest/coverage-v8"],
|
|
27
|
-
"@lcov-viewer/cli": packageJson.devDependencies["@lcov-viewer/cli"],
|
|
28
|
-
"@alexaegis/coverage-tools": packageJson.dependencies["@alexaegis/coverage-tools"]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
description: "package test scripts",
|
|
34
|
-
executor: "packageJson",
|
|
35
|
-
packageKind: "regular",
|
|
36
|
-
packageJsonFilter: {
|
|
37
|
-
archetype: {
|
|
38
|
-
kind: appOrLib
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
data: {
|
|
42
|
-
scripts: {
|
|
43
|
-
test: "turbo run test_ --concurrency 16 --filter ${packageName}",
|
|
44
|
-
test_: "vitest --passWithNoTests --coverage --run",
|
|
45
|
-
"test:watch": "vitest --passWithNoTests --coverage"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "package test devDependencies",
|
|
51
|
-
executor: "packageJson",
|
|
52
|
-
packageKind: "regular",
|
|
53
|
-
packageJsonFilter: {
|
|
54
|
-
name: not(
|
|
55
|
-
or(
|
|
56
|
-
equal("@alexaegis/vite"),
|
|
57
|
-
equal("@alexaegis/vitest"),
|
|
58
|
-
equal("vite-plugin-pakk"),
|
|
59
|
-
equal("@pakk/core")
|
|
60
|
-
)
|
|
61
|
-
),
|
|
62
|
-
// Don't add it for itself and 'vite' it would cause a circle
|
|
63
|
-
archetype: {
|
|
64
|
-
kind: appOrLib
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
data: {
|
|
68
|
-
devDependencies: {
|
|
69
|
-
"@alexaegis/vitest": packageJson.devDependencies["@alexaegis/vitest"],
|
|
70
|
-
vitest: packageJson.devDependencies.vitest
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
description: "package vitest config file for web packages",
|
|
76
|
-
executor: "fileCopy",
|
|
77
|
-
packageJsonFilter: {
|
|
78
|
-
archetype: {
|
|
79
|
-
kind: appOrLib,
|
|
80
|
-
platform: "web",
|
|
81
|
-
framework: not(contains("svelte"))
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
packageKind: "regular",
|
|
85
|
-
formatWithPrettier: true,
|
|
86
|
-
sourceFile: join("static", "package-web-vitest.config.ts"),
|
|
87
|
-
targetFile: "vitest.config.ts",
|
|
88
|
-
sourcePluginPackageName: packageJson.name
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
description: "package vitest config file for node packages",
|
|
92
|
-
executor: "fileCopy",
|
|
93
|
-
packageJsonFilter: {
|
|
94
|
-
archetype: {
|
|
95
|
-
kind: appOrLib,
|
|
96
|
-
platform: "node",
|
|
97
|
-
framework: not(contains("svelte"))
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
packageKind: "regular",
|
|
101
|
-
formatWithPrettier: true,
|
|
102
|
-
sourceFile: join("static", "package-node-vitest.config.ts"),
|
|
103
|
-
targetFile: "vitest.config.ts",
|
|
104
|
-
sourcePluginPackageName: packageJson.name
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
description: "package vitest config file for svelte packages",
|
|
108
|
-
executor: "fileCopy",
|
|
109
|
-
packageJsonFilter: {
|
|
110
|
-
archetype: {
|
|
111
|
-
kind: appOrLib,
|
|
112
|
-
framework: "svelte"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
packageKind: "regular",
|
|
116
|
-
formatWithPrettier: true,
|
|
117
|
-
sourceFile: join("static", "package-svelte-vitest.config.ts"),
|
|
118
|
-
targetFile: "vitest.config.ts",
|
|
119
|
-
sourcePluginPackageName: packageJson.name
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
plugin as default,
|
|
126
|
-
plugin
|
|
127
|
-
};
|
package/license
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Győri Sándor
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|