setup-git-repo 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "https://turbo.build/schema.json",
3
+ "ui": "stream",
4
+ "globalDependencies": ["codecov.yml", "tsconfig.json"],
5
+ "globalEnv": ["NODE_ENV", "CI"],
6
+ "tasks": {
7
+ "build": {
8
+ "dependsOn": ["^build"],
9
+ "outputs": ["dist/**", ".next/**", "!.next/cache/**", "build/**"]
10
+ },
11
+ "dev": {
12
+ "cache": false,
13
+ "persistent": true
14
+ },
15
+ "lint": {
16
+ "dependsOn": ["^build"]
17
+ },
18
+ "typecheck": {
19
+ "dependsOn": ["^build"],
20
+ "outputs": ["*.tsbuildinfo"]
21
+ },
22
+ "test": {
23
+ "dependsOn": ["^build"],
24
+ "outputs": []
25
+ },
26
+ "test:ci": {
27
+ "dependsOn": ["^build"],
28
+ "outputs": ["junit.xml", "coverage/**"]
29
+ },
30
+ "test:watch": {
31
+ "cache": false,
32
+ "persistent": true
33
+ },
34
+ "coverage": {
35
+ "dependsOn": ["^build"],
36
+ "outputs": ["coverage/**"]
37
+ },
38
+ "clean": {
39
+ "cache": false
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,54 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ /**
4
+ * Root Vitest project registry.
5
+ *
6
+ * Vitest 4 dropped support for `vitest.workspace.ts`; if you still have one it
7
+ * is silently ignored and a root `vitest run` falls back to globbing every test
8
+ * file with no per-package settings. Declare projects here instead.
9
+ *
10
+ * The globs pick up any workspace package that has its own `vitest.config.*`,
11
+ * which owns that package's environment, include globs and coverage scope. A
12
+ * package on a different runner (bun test, jest, pytest) simply has no vitest
13
+ * config and is left to its own `test:ci` script.
14
+ */
15
+
16
+ /**
17
+ * Vitest's HTML reporter ignores `outputFile` and writes `<outputDir>/index.html`
18
+ * plus its UI bundle, where `outputDir` is a *reporter option* defaulting to
19
+ * `.vitest`. A reporter named on the command line (`--reporter=html`) is
20
+ * constructed without options and silently keeps that default — which is how a
21
+ * deploy step comes to find `apps/test-reports/dist` missing. So the reporter
22
+ * and its destination both have to be declared here.
23
+ *
24
+ * The report stays opt-in so a plain `vitest run` does not pay for copying the
25
+ * UI bundle; `test:report` sets this to the directory Wrangler deploys.
26
+ */
27
+ const htmlReportDir = process.env.VITEST_HTML_REPORT_DIR;
28
+
29
+ export default defineConfig({
30
+ test: {
31
+ reporters: htmlReportDir
32
+ ? ['default', ['html', { outputDir: htmlReportDir }]]
33
+ : ['default'],
34
+ projects: ['packages/*', 'apps/*'],
35
+ coverage: {
36
+ provider: 'v8',
37
+ reporter: ['text', 'json', 'html', 'lcov'],
38
+ reportsDirectory: './coverage',
39
+ exclude: [
40
+ '**/node_modules/**',
41
+ '**/dist/**',
42
+ '**/build/**',
43
+ '**/.next/**',
44
+ '**/.output/**',
45
+ '**/coverage/**',
46
+ '**/test/**',
47
+ '**/tests/**',
48
+ '**/__tests__/**',
49
+ '**/*.config.*',
50
+ '**/*.d.ts',
51
+ ],
52
+ },
53
+ },
54
+ });