-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.config.js
More file actions
55 lines (49 loc) · 1.24 KB
/
build.config.js
File metadata and controls
55 lines (49 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export default {
// Source and output directories
srcDir: './src',
outputDir: './dist',
outputFile: 'infinite-craft-helper.user.js',
// File size policy
maxFileLines: 300,
maxFunctionLines: 50,
recommendedFileLines: 200,
recommendedFunctionLines: 30,
// Watch mode configuration
watch: {
enabled: true,
paths: ['./src'],
debounce: 300,
ignored: ['node_modules/**', 'dist/**', '.git/**']
},
// Quality gates
quality: {
lint: {
enabled: true,
command: 'npm run lint',
skipOnWatch: false
},
test: {
enabled: true,
command: 'npm test',
skipOnWatch: false
}
},
// Branch and URL configuration
branch: {
auto: true,
urlTemplate: 'https://raw.githubusercontent.com/bytecodeguru/infinite-crafter/{{BRANCH}}/infinite-craft-helper.user.js'
},
// Build options
build: {
minify: false,
sourceMaps: false,
validateSyntax: true,
enforcePolicy: 'warn'
},
// Logging configuration
logging: {
level: 'info', // 'debug', 'info', 'warn', 'error'
timestamps: true,
colors: true
}
};