@alexaegis/autotool-plugin-vitest 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +191 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +191 -0
- package/index.js.map +1 -0
- package/license +21 -0
- package/manifest.json +7 -0
- package/package.json +92 -0
- package/readme.md +5 -0
- package/static/package-node-vitest.config.ts +3 -0
- package/static/package-svelte-vitest.config.ts +3 -0
- package/static/package-web-vitest.config.ts +3 -0
package/index.cjs
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const node_path = require("node:path");
|
|
4
|
+
const name = "@alexaegis/autotool-plugin-vitest";
|
|
5
|
+
const description = "Setup vitest";
|
|
6
|
+
const version = "0.3.0";
|
|
7
|
+
const license = "MIT";
|
|
8
|
+
const archetype = {
|
|
9
|
+
platform: "node",
|
|
10
|
+
framework: "autotool",
|
|
11
|
+
language: "ts",
|
|
12
|
+
kind: "lib"
|
|
13
|
+
};
|
|
14
|
+
const keywords = [
|
|
15
|
+
"autotool-plugin",
|
|
16
|
+
"managed-by-autotool",
|
|
17
|
+
"vitest"
|
|
18
|
+
];
|
|
19
|
+
const type = "module";
|
|
20
|
+
const publishConfig = {
|
|
21
|
+
access: "public"
|
|
22
|
+
};
|
|
23
|
+
const scripts = {
|
|
24
|
+
build: "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
25
|
+
"build-lib_": "vite build",
|
|
26
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
27
|
+
"lint:depcheck_": "depcheck",
|
|
28
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
29
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
30
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
31
|
+
"lint:format_": "prettier --check .",
|
|
32
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
33
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore *.md docs/**/*.md",
|
|
34
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
35
|
+
"lint:tsc_": "tsc --noEmit",
|
|
36
|
+
publint: "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
37
|
+
publint_: "publint dist",
|
|
38
|
+
format: "prettier --write .",
|
|
39
|
+
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
40
|
+
test_: "vitest --passWithNoTests --coverage --run",
|
|
41
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
42
|
+
};
|
|
43
|
+
const exports$1 = {
|
|
44
|
+
".": {
|
|
45
|
+
types: "./src/index.ts",
|
|
46
|
+
"import": "./dist/index.js",
|
|
47
|
+
require: "./dist/index.cjs"
|
|
48
|
+
},
|
|
49
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
50
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
51
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
52
|
+
"./readme": "./readme.md"
|
|
53
|
+
};
|
|
54
|
+
const dependencies = {
|
|
55
|
+
"@alexaegis/coverage-tools": "^0.1.8",
|
|
56
|
+
"@alexaegis/logging": "^0.1.8",
|
|
57
|
+
"autotool-plugin": "^0.0.4"
|
|
58
|
+
};
|
|
59
|
+
const devDependencies = {
|
|
60
|
+
"@alexaegis/eslint-config-vitest": "^0.3.0",
|
|
61
|
+
"@alexaegis/ts": "^0.3.0",
|
|
62
|
+
"@alexaegis/vite": "^0.3.0",
|
|
63
|
+
"@alexaegis/vitest": "^0.3.0",
|
|
64
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
65
|
+
"@types/node": "^20.2.1",
|
|
66
|
+
"@vitest/coverage-c8": "^0.31.1",
|
|
67
|
+
publint: "^0.1.11",
|
|
68
|
+
typescript: "^5.0.4",
|
|
69
|
+
vite: "^4.3.8",
|
|
70
|
+
vitest: "^0.31.1"
|
|
71
|
+
};
|
|
72
|
+
const packageJson = {
|
|
73
|
+
name,
|
|
74
|
+
description,
|
|
75
|
+
version,
|
|
76
|
+
license,
|
|
77
|
+
"private": false,
|
|
78
|
+
archetype,
|
|
79
|
+
keywords,
|
|
80
|
+
type,
|
|
81
|
+
publishConfig,
|
|
82
|
+
scripts,
|
|
83
|
+
exports: exports$1,
|
|
84
|
+
dependencies,
|
|
85
|
+
devDependencies
|
|
86
|
+
};
|
|
87
|
+
const plugin = (_options) => {
|
|
88
|
+
return {
|
|
89
|
+
name: packageJson.name,
|
|
90
|
+
elements: [
|
|
91
|
+
{
|
|
92
|
+
description: "workspace test scripts and devDependencies",
|
|
93
|
+
executor: "packageJson",
|
|
94
|
+
packageKind: "root",
|
|
95
|
+
data: {
|
|
96
|
+
scripts: {
|
|
97
|
+
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo",
|
|
98
|
+
"merge-coverage": "merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info"
|
|
99
|
+
},
|
|
100
|
+
devDependencies: {
|
|
101
|
+
"@vitest/coverage-c8": packageJson.devDependencies["@vitest/coverage-c8"],
|
|
102
|
+
"@lcov-viewer/cli": packageJson.devDependencies["@lcov-viewer/cli"],
|
|
103
|
+
"@alexaegis/coverage-tools": packageJson.dependencies["@alexaegis/coverage-tools"]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
description: "package test scripts",
|
|
109
|
+
executor: "packageJson",
|
|
110
|
+
packageKind: "regular",
|
|
111
|
+
packageJsonFilter: {
|
|
112
|
+
archetype: {
|
|
113
|
+
kind: /^(app|lib)$/
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
data: {
|
|
117
|
+
scripts: {
|
|
118
|
+
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}",
|
|
119
|
+
test_: "vitest --passWithNoTests --coverage --run",
|
|
120
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
description: "package test devDependencies",
|
|
126
|
+
executor: "packageJson",
|
|
127
|
+
packageKind: "regular",
|
|
128
|
+
packageJsonFilter: {
|
|
129
|
+
name: /^(?!@alexaegis\/vite(st)?).*$/,
|
|
130
|
+
// Don't add it for itself and 'vite' it would cause a circle
|
|
131
|
+
archetype: {
|
|
132
|
+
kind: /^(app|lib)$/
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
data: {
|
|
136
|
+
devDependencies: {
|
|
137
|
+
"@alexaegis/vitest": packageJson.devDependencies["@alexaegis/vitest"],
|
|
138
|
+
vitest: packageJson.devDependencies.vitest
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
description: "package vitest config file for web packages",
|
|
144
|
+
executor: "fileCopy",
|
|
145
|
+
packageJsonFilter: {
|
|
146
|
+
archetype: {
|
|
147
|
+
kind: /^(app|lib)$/,
|
|
148
|
+
platform: "web",
|
|
149
|
+
framework: /^(?!svelte).*$/
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
packageKind: "regular",
|
|
153
|
+
sourceFile: node_path.join("static", "package-web-vitest.config.ts"),
|
|
154
|
+
targetFile: "vitest.config.ts",
|
|
155
|
+
sourcePluginPackageName: packageJson.name
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
description: "package vitest config file for node packages",
|
|
159
|
+
executor: "fileCopy",
|
|
160
|
+
packageJsonFilter: {
|
|
161
|
+
archetype: {
|
|
162
|
+
kind: /^(app|lib)$/,
|
|
163
|
+
platform: "node",
|
|
164
|
+
framework: /^(?!svelte).*$/
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
packageKind: "regular",
|
|
168
|
+
sourceFile: node_path.join("static", "package-node-vitest.config.ts"),
|
|
169
|
+
targetFile: "vitest.config.ts",
|
|
170
|
+
sourcePluginPackageName: packageJson.name
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
description: "package vitest config file for svelte packages",
|
|
174
|
+
executor: "fileCopy",
|
|
175
|
+
packageJsonFilter: {
|
|
176
|
+
archetype: {
|
|
177
|
+
kind: /^(app|lib)$/,
|
|
178
|
+
framework: "svelte"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
packageKind: "regular",
|
|
182
|
+
sourceFile: node_path.join("static", "package-svelte-vitest.config.ts"),
|
|
183
|
+
targetFile: "vitest.config.ts",
|
|
184
|
+
sourcePluginPackageName: packageJson.name
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
exports.default = plugin;
|
|
190
|
+
exports.plugin = plugin;
|
|
191
|
+
//# sourceMappingURL=index.cjs.map
|
package/index.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { type AutotoolPlugin, type AutotoolPluginObject } from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json';\n\nexport const plugin: AutotoolPlugin = (_options): 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 --cache-dir .cache/turbo',\n\t\t\t\t\t\t'merge-coverage':\n\t\t\t\t\t\t\t'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-c8': packageJson.devDependencies['@vitest/coverage-c8'],\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: /^(app|lib)$/,\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 --cache-dir .cache/turbo --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: /^(?!@alexaegis\\/vite(st)?).*$/, // 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: /^(app|lib)$/,\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: /^(app|lib)$/,\n\t\t\t\t\t\tplatform: 'web',\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\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: /^(app|lib)$/,\n\t\t\t\t\t\tplatform: 'node',\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\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: /^(app|lib)$/,\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\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"],"names":["join"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIa,MAAA,SAAyB,CAAC,aAAmC;AAClE,SAAA;AAAA,IACN,MAAM,YAAY;AAAA,IAClB,UAAU;AAAA,MACT;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,MAAM;AAAA,UACL,SAAS;AAAA,YACR,MAAM;AAAA,YACN,kBACC;AAAA,UACF;AAAA,UACA,iBAAiB;AAAA,YAChB,uBAAuB,YAAY,gBAAgB,qBAAqB;AAAA,YACxE,oBAAoB,YAAY,gBAAgB,kBAAkB;AAAA,YAClE,6BACC,YAAY,aAAa,2BAA2B;AAAA,UACtD;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,UACP;AAAA,QACD;AAAA,QACA,MAAM;AAAA,UACL,SAAS;AAAA,YACR,MAAM;AAAA,YACN,OAAO;AAAA,YACP,cAAc;AAAA,UACf;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,mBAAmB;AAAA,UAClB,MAAM;AAAA;AAAA,UACN,WAAW;AAAA,YACV,MAAM;AAAA,UACP;AAAA,QACD;AAAA,QACA,MAAM;AAAA,UACL,iBAAiB;AAAA,YAChB,qBAAqB,YAAY,gBAAgB,mBAAmB;AAAA,YACpE,QAAQ,YAAY,gBAAgB;AAAA,UACrC;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,YACN,UAAU;AAAA,YACV,WAAW;AAAA,UACZ;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,YAAYA,UAAAA,KAAK,UAAU,8BAA8B;AAAA,QACzD,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,MAEA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,YACN,UAAU;AAAA,YACV,WAAW;AAAA,UACZ;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,YAAYA,UAAAA,KAAK,UAAU,+BAA+B;AAAA,QAC1D,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,YACN,WAAW;AAAA,UACZ;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,YAAYA,UAAAA,KAAK,UAAU,iCAAiC;AAAA,QAC5D,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,IACD;AAAA,EAAA;AAEF;;;"}
|
package/index.d.ts
ADDED
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,iBAAiB,CAAC;AAIjF,eAAO,MAAM,MAAM,EAAE,cAuGpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
const name = "@alexaegis/autotool-plugin-vitest";
|
|
3
|
+
const description = "Setup vitest";
|
|
4
|
+
const version = "0.3.0";
|
|
5
|
+
const license = "MIT";
|
|
6
|
+
const archetype = {
|
|
7
|
+
platform: "node",
|
|
8
|
+
framework: "autotool",
|
|
9
|
+
language: "ts",
|
|
10
|
+
kind: "lib"
|
|
11
|
+
};
|
|
12
|
+
const keywords = [
|
|
13
|
+
"autotool-plugin",
|
|
14
|
+
"managed-by-autotool",
|
|
15
|
+
"vitest"
|
|
16
|
+
];
|
|
17
|
+
const type = "module";
|
|
18
|
+
const publishConfig = {
|
|
19
|
+
access: "public"
|
|
20
|
+
};
|
|
21
|
+
const scripts = {
|
|
22
|
+
build: "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
23
|
+
"build-lib_": "vite build",
|
|
24
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
25
|
+
"lint:depcheck_": "depcheck",
|
|
26
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
27
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
28
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
29
|
+
"lint:format_": "prettier --check .",
|
|
30
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
31
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore *.md docs/**/*.md",
|
|
32
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
33
|
+
"lint:tsc_": "tsc --noEmit",
|
|
34
|
+
publint: "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
35
|
+
publint_: "publint dist",
|
|
36
|
+
format: "prettier --write .",
|
|
37
|
+
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
38
|
+
test_: "vitest --passWithNoTests --coverage --run",
|
|
39
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
40
|
+
};
|
|
41
|
+
const exports = {
|
|
42
|
+
".": {
|
|
43
|
+
types: "./src/index.ts",
|
|
44
|
+
"import": "./dist/index.js",
|
|
45
|
+
require: "./dist/index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
48
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
49
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
50
|
+
"./readme": "./readme.md"
|
|
51
|
+
};
|
|
52
|
+
const dependencies = {
|
|
53
|
+
"@alexaegis/coverage-tools": "^0.1.8",
|
|
54
|
+
"@alexaegis/logging": "^0.1.8",
|
|
55
|
+
"autotool-plugin": "^0.0.4"
|
|
56
|
+
};
|
|
57
|
+
const devDependencies = {
|
|
58
|
+
"@alexaegis/eslint-config-vitest": "^0.3.0",
|
|
59
|
+
"@alexaegis/ts": "^0.3.0",
|
|
60
|
+
"@alexaegis/vite": "^0.3.0",
|
|
61
|
+
"@alexaegis/vitest": "^0.3.0",
|
|
62
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
63
|
+
"@types/node": "^20.2.1",
|
|
64
|
+
"@vitest/coverage-c8": "^0.31.1",
|
|
65
|
+
publint: "^0.1.11",
|
|
66
|
+
typescript: "^5.0.4",
|
|
67
|
+
vite: "^4.3.8",
|
|
68
|
+
vitest: "^0.31.1"
|
|
69
|
+
};
|
|
70
|
+
const packageJson = {
|
|
71
|
+
name,
|
|
72
|
+
description,
|
|
73
|
+
version,
|
|
74
|
+
license,
|
|
75
|
+
"private": false,
|
|
76
|
+
archetype,
|
|
77
|
+
keywords,
|
|
78
|
+
type,
|
|
79
|
+
publishConfig,
|
|
80
|
+
scripts,
|
|
81
|
+
exports,
|
|
82
|
+
dependencies,
|
|
83
|
+
devDependencies
|
|
84
|
+
};
|
|
85
|
+
const plugin = (_options) => {
|
|
86
|
+
return {
|
|
87
|
+
name: packageJson.name,
|
|
88
|
+
elements: [
|
|
89
|
+
{
|
|
90
|
+
description: "workspace test scripts and devDependencies",
|
|
91
|
+
executor: "packageJson",
|
|
92
|
+
packageKind: "root",
|
|
93
|
+
data: {
|
|
94
|
+
scripts: {
|
|
95
|
+
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo",
|
|
96
|
+
"merge-coverage": "merge-workspace-lcov-reports && lcov-viewer lcov -o ./coverage ./coverage/lcov.info"
|
|
97
|
+
},
|
|
98
|
+
devDependencies: {
|
|
99
|
+
"@vitest/coverage-c8": packageJson.devDependencies["@vitest/coverage-c8"],
|
|
100
|
+
"@lcov-viewer/cli": packageJson.devDependencies["@lcov-viewer/cli"],
|
|
101
|
+
"@alexaegis/coverage-tools": packageJson.dependencies["@alexaegis/coverage-tools"]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
description: "package test scripts",
|
|
107
|
+
executor: "packageJson",
|
|
108
|
+
packageKind: "regular",
|
|
109
|
+
packageJsonFilter: {
|
|
110
|
+
archetype: {
|
|
111
|
+
kind: /^(app|lib)$/
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
data: {
|
|
115
|
+
scripts: {
|
|
116
|
+
test: "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter ${packageName}",
|
|
117
|
+
test_: "vitest --passWithNoTests --coverage --run",
|
|
118
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
description: "package test devDependencies",
|
|
124
|
+
executor: "packageJson",
|
|
125
|
+
packageKind: "regular",
|
|
126
|
+
packageJsonFilter: {
|
|
127
|
+
name: /^(?!@alexaegis\/vite(st)?).*$/,
|
|
128
|
+
// Don't add it for itself and 'vite' it would cause a circle
|
|
129
|
+
archetype: {
|
|
130
|
+
kind: /^(app|lib)$/
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
data: {
|
|
134
|
+
devDependencies: {
|
|
135
|
+
"@alexaegis/vitest": packageJson.devDependencies["@alexaegis/vitest"],
|
|
136
|
+
vitest: packageJson.devDependencies.vitest
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
description: "package vitest config file for web packages",
|
|
142
|
+
executor: "fileCopy",
|
|
143
|
+
packageJsonFilter: {
|
|
144
|
+
archetype: {
|
|
145
|
+
kind: /^(app|lib)$/,
|
|
146
|
+
platform: "web",
|
|
147
|
+
framework: /^(?!svelte).*$/
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
packageKind: "regular",
|
|
151
|
+
sourceFile: join("static", "package-web-vitest.config.ts"),
|
|
152
|
+
targetFile: "vitest.config.ts",
|
|
153
|
+
sourcePluginPackageName: packageJson.name
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
description: "package vitest config file for node packages",
|
|
157
|
+
executor: "fileCopy",
|
|
158
|
+
packageJsonFilter: {
|
|
159
|
+
archetype: {
|
|
160
|
+
kind: /^(app|lib)$/,
|
|
161
|
+
platform: "node",
|
|
162
|
+
framework: /^(?!svelte).*$/
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
packageKind: "regular",
|
|
166
|
+
sourceFile: join("static", "package-node-vitest.config.ts"),
|
|
167
|
+
targetFile: "vitest.config.ts",
|
|
168
|
+
sourcePluginPackageName: packageJson.name
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
description: "package vitest config file for svelte packages",
|
|
172
|
+
executor: "fileCopy",
|
|
173
|
+
packageJsonFilter: {
|
|
174
|
+
archetype: {
|
|
175
|
+
kind: /^(app|lib)$/,
|
|
176
|
+
framework: "svelte"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
packageKind: "regular",
|
|
180
|
+
sourceFile: join("static", "package-svelte-vitest.config.ts"),
|
|
181
|
+
targetFile: "vitest.config.ts",
|
|
182
|
+
sourcePluginPackageName: packageJson.name
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
export {
|
|
188
|
+
plugin as default,
|
|
189
|
+
plugin
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { type AutotoolPlugin, type AutotoolPluginObject } from 'autotool-plugin';\nimport { join } from 'node:path';\nimport packageJson from '../package.json';\n\nexport const plugin: AutotoolPlugin = (_options): 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 --cache-dir .cache/turbo',\n\t\t\t\t\t\t'merge-coverage':\n\t\t\t\t\t\t\t'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-c8': packageJson.devDependencies['@vitest/coverage-c8'],\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: /^(app|lib)$/,\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 --cache-dir .cache/turbo --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: /^(?!@alexaegis\\/vite(st)?).*$/, // 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: /^(app|lib)$/,\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: /^(app|lib)$/,\n\t\t\t\t\t\tplatform: 'web',\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\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: /^(app|lib)$/,\n\t\t\t\t\t\tplatform: 'node',\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\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: /^(app|lib)$/,\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\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"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIa,MAAA,SAAyB,CAAC,aAAmC;AAClE,SAAA;AAAA,IACN,MAAM,YAAY;AAAA,IAClB,UAAU;AAAA,MACT;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,MAAM;AAAA,UACL,SAAS;AAAA,YACR,MAAM;AAAA,YACN,kBACC;AAAA,UACF;AAAA,UACA,iBAAiB;AAAA,YAChB,uBAAuB,YAAY,gBAAgB,qBAAqB;AAAA,YACxE,oBAAoB,YAAY,gBAAgB,kBAAkB;AAAA,YAClE,6BACC,YAAY,aAAa,2BAA2B;AAAA,UACtD;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,UACP;AAAA,QACD;AAAA,QACA,MAAM;AAAA,UACL,SAAS;AAAA,YACR,MAAM;AAAA,YACN,OAAO;AAAA,YACP,cAAc;AAAA,UACf;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,aAAa;AAAA,QACb,mBAAmB;AAAA,UAClB,MAAM;AAAA;AAAA,UACN,WAAW;AAAA,YACV,MAAM;AAAA,UACP;AAAA,QACD;AAAA,QACA,MAAM;AAAA,UACL,iBAAiB;AAAA,YAChB,qBAAqB,YAAY,gBAAgB,mBAAmB;AAAA,YACpE,QAAQ,YAAY,gBAAgB;AAAA,UACrC;AAAA,QACD;AAAA,MACD;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,YACN,UAAU;AAAA,YACV,WAAW;AAAA,UACZ;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,YAAY,KAAK,UAAU,8BAA8B;AAAA,QACzD,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,MAEA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,YACN,UAAU;AAAA,YACV,WAAW;AAAA,UACZ;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,YAAY,KAAK,UAAU,+BAA+B;AAAA,QAC1D,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,MACA;AAAA,QACC,aAAa;AAAA,QACb,UAAU;AAAA,QACV,mBAAmB;AAAA,UAClB,WAAW;AAAA,YACV,MAAM;AAAA,YACN,WAAW;AAAA,UACZ;AAAA,QACD;AAAA,QACA,aAAa;AAAA,QACb,YAAY,KAAK,UAAU,iCAAiC;AAAA,QAC5D,YAAY;AAAA,QACZ,yBAAyB,YAAY;AAAA,MACtC;AAAA,IACD;AAAA,EAAA;AAEF;"}
|
package/license
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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.
|
package/manifest.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alexaegis/autotool-plugin-vitest",
|
|
3
|
+
"description": "Setup vitest",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"license": "mit",
|
|
6
|
+
"private": false,
|
|
7
|
+
"archetype": {
|
|
8
|
+
"platform": "node",
|
|
9
|
+
"framework": "autotool",
|
|
10
|
+
"language": "ts",
|
|
11
|
+
"kind": "lib"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"eslint",
|
|
15
|
+
"javascript",
|
|
16
|
+
"js",
|
|
17
|
+
"managed-by-autotool",
|
|
18
|
+
"ts",
|
|
19
|
+
"tsconfig",
|
|
20
|
+
"turbo",
|
|
21
|
+
"typescript"
|
|
22
|
+
],
|
|
23
|
+
"author": {
|
|
24
|
+
"email": "alexaegis@gmail.com",
|
|
25
|
+
"name": "Alex Aegis",
|
|
26
|
+
"url": "https://github.com/AlexAegis"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/AlexAegis/js-tooling",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"email": "alexaegis@gmail.com",
|
|
31
|
+
"url": "https://github.com/AlexAegis/js-tooling/issues"
|
|
32
|
+
},
|
|
33
|
+
"type": "module",
|
|
34
|
+
"config": {
|
|
35
|
+
"engine-strict": true
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18.13.0"
|
|
42
|
+
},
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./index.d.ts",
|
|
46
|
+
"import": "./index.js",
|
|
47
|
+
"require": "./index.cjs"
|
|
48
|
+
},
|
|
49
|
+
"./package-node-vitest.config": "./static/package-node-vitest.config.ts",
|
|
50
|
+
"./package-svelte-vitest.config": "./static/package-svelte-vitest.config.ts",
|
|
51
|
+
"./package-web-vitest.config": "./static/package-web-vitest.config.ts",
|
|
52
|
+
"./readme": "./readme.md"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@alexaegis/coverage-tools": "^0.1.8",
|
|
56
|
+
"@alexaegis/logging": "^0.1.8",
|
|
57
|
+
"autotool-plugin": "^0.0.4"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@alexaegis/eslint-config-vitest": "^0.3.0",
|
|
61
|
+
"@alexaegis/ts": "^0.3.0",
|
|
62
|
+
"@alexaegis/vite": "^0.3.0",
|
|
63
|
+
"@alexaegis/vitest": "^0.3.0",
|
|
64
|
+
"@lcov-viewer/cli": "^1.3.0",
|
|
65
|
+
"@types/node": "^20.2.1",
|
|
66
|
+
"@vitest/coverage-c8": "^0.31.1",
|
|
67
|
+
"publint": "^0.1.11",
|
|
68
|
+
"typescript": "^5.0.4",
|
|
69
|
+
"vite": "^4.3.8",
|
|
70
|
+
"vitest": "^0.31.1"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "turbo run build-lib_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
74
|
+
"build-lib_": "vite build",
|
|
75
|
+
"lint:depcheck": "turbo run lint:depcheck_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
76
|
+
"lint:depcheck_": "depcheck",
|
|
77
|
+
"lint:es": "turbo run lint:es_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
78
|
+
"lint:es_": "eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .",
|
|
79
|
+
"lint:format": "turbo run lint:format_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
80
|
+
"lint:format_": "prettier --check .",
|
|
81
|
+
"lint:md": "turbo run lint:md_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
82
|
+
"lint:md_": "remark --frail --no-stdout --silently-ignore *.md docs/**/*.md",
|
|
83
|
+
"lint:tsc": "turbo run lint:tsc_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
84
|
+
"lint:tsc_": "tsc --noEmit",
|
|
85
|
+
"publint": "turbo run publint_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
86
|
+
"publint_": "publint dist",
|
|
87
|
+
"format": "prettier --write .",
|
|
88
|
+
"test": "turbo run test_ --concurrency 16 --cache-dir .cache/turbo --filter @alexaegis/autotool-plugin-vitest",
|
|
89
|
+
"test_": "vitest --passWithNoTests --coverage --run",
|
|
90
|
+
"test:watch": "vitest --passWithNoTests --coverage"
|
|
91
|
+
}
|
|
92
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# [@alexaegis/autotool-plugin-vitest](https://github.com/AlexAegis/js-tooling/tree/master/packages/autotool-plugin-vitest)
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@alexaegis/autotool-plugin-vitest)
|
|
4
|
+
[](https://github.com/AlexAegis/js-tooling/actions/workflows/cicd.yml)
|
|
5
|
+
[](https://www.codacy.com/gh/AlexAegis/js-tooling/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AlexAegis/js-tooling&utm_campaign=Badge_Grade)
|