create-claude-webapp 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.
- package/.husky/pre-commit +1 -0
- package/.husky/pre-push +3 -0
- package/.madgerc +14 -0
- package/.tsprunerc +11 -0
- package/CLAUDE.md +102 -0
- package/LICENSE +21 -0
- package/README.md +322 -0
- package/bin/create-project.js +87 -0
- package/biome.json +51 -0
- package/docs/guides/en/quickstart.md +109 -0
- package/docs/guides/en/rule-editing-guide.md +264 -0
- package/docs/guides/en/use-cases.md +308 -0
- package/package.json +99 -0
- package/scripts/check-unused-exports.js +69 -0
- package/scripts/cleanup-test-processes.sh +32 -0
- package/scripts/post-setup.js +110 -0
- package/scripts/setup-project.js +150 -0
- package/scripts/show-coverage.js +74 -0
- package/src/index.ts +11 -0
- package/templates/.gitignore.template +52 -0
- package/tsconfig.json +50 -0
- package/vitest.config.mjs +47 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config'
|
|
2
|
+
import path from 'path'
|
|
3
|
+
import { fileURLToPath } from 'url'
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
6
|
+
const __dirname = path.dirname(__filename)
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
test: {
|
|
10
|
+
globals: true,
|
|
11
|
+
environment: 'node',
|
|
12
|
+
// Process management improvements
|
|
13
|
+
testTimeout: 10000, // 10 second timeout
|
|
14
|
+
hookTimeout: 10000, // Hook processing timeout 10 seconds
|
|
15
|
+
teardownTimeout: 5000, // Teardown timeout 5 seconds
|
|
16
|
+
pool: 'threads', // Explicit process pool specification
|
|
17
|
+
poolOptions: {
|
|
18
|
+
threads: {
|
|
19
|
+
singleThread: false, // Allow parallel execution
|
|
20
|
+
isolate: true, // Isolate between tests
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
coverage: {
|
|
24
|
+
enabled: false, // Disable coverage by default
|
|
25
|
+
provider: 'v8',
|
|
26
|
+
reporter: ['text', 'json', 'html', 'lcov'],
|
|
27
|
+
reportsDirectory: './coverage',
|
|
28
|
+
clean: true, // Clear coverage files to prevent process residue
|
|
29
|
+
include: ['src/**/*.{js,ts,jsx,tsx}'],
|
|
30
|
+
exclude: [
|
|
31
|
+
'node_modules/**',
|
|
32
|
+
'dist/**',
|
|
33
|
+
'**/*.d.ts',
|
|
34
|
+
'**/*.config.*',
|
|
35
|
+
'**/mockData/**',
|
|
36
|
+
'**/__mocks__/**',
|
|
37
|
+
],
|
|
38
|
+
// No coverage thresholds set for boilerplate
|
|
39
|
+
// Set appropriate values for each project
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
resolve: {
|
|
43
|
+
alias: {
|
|
44
|
+
src: path.resolve(__dirname, './src'),
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
})
|