-
Notifications
You must be signed in to change notification settings - Fork 0
/
riseup.config.mjs
125 lines (124 loc) · 3.31 KB
/
riseup.config.mjs
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { Preset } from '@riseup/utils';
import { Library } from '@riseup/library';
import { Tooling } from '@riseup/tooling';
import { Universal } from '@riseup/universal';
export default Preset.combine(
new Library({
tarball: {
// Package tarball file name
destination: null,
// Enable monorepo dependencies inclusion in tarball
monorepo: false
},
docs: {
// Build typedoc documentation
build: true,
// Documentation build folder
destination: 'docs/',
// Typedoc configuration overrides
overrides: {
exclude: ['**/helpers/**/*', '**/helpers.ts']
}
},
distribute: {
// Push repository and tags upon distribution (publication)
push: true
}
}),
new Tooling({
global: {
// Enable prettier
prettier: true,
// Project platform: node, browser, neutral
platform: 'neutral',
// Transpile loaders
loaders: {},
// Runtime stubs
stubs: {}
},
build: {
// Clean directory upon build
clean: true,
// Output directory
outdir: 'build/',
// Entrypoints
entries: {
index: 'src/index.ts',
definitions: 'src/definitions/index.ts',
pull: 'src/pull/index.ts',
push: 'src/push/index.ts'
},
// Formats: module, commonjs, iife
formats: ['module'],
// Build targets
targets: ['node16'],
// Enable minification
minify: false,
// Enable code splitting
splitting: true,
// Sourcemap mode: external, inline, none
sourcemap: 'external',
// Specifiers to include in bundle
// Set to null to skip external modules
include: null,
// Specifiers to override bundle inclusions
exclude: [],
// Environment variables injection
env: {}
},
node: {
// Transpilation format for runtime: module, commonjs
format: 'commonjs',
// Paths to include in transpilation
// Set to null to skip external modules
include: ['*'],
// Paths to override transpilation inclusions
exclude: []
},
lint: {
// Directories to lint
dir: ['src/', 'test/'],
// Run type checks
types: true,
// Enable react presets
react: true,
// Keywords that should output warnings
highlight: ['fixme', 'todo', 'refactor'],
// ESLint rules overwrites
rules: {}
},
test: {
// Whether to print all passed tests
verbose: false,
// RegExp array of files to ignore
ignore: [],
// Array of setup files
require: [],
// Files to include in coverage: auto, all, none
coverage: 'auto',
// Fail when coverage is under the threshold
threshold: null,
// Jest configuration overrides
overrides: {},
// Paths to include in transpilation
// Set to null to skip external modules
include: ['*'],
// Paths to override transpilation inclusions
exclude: []
}
}),
new Universal({
lintmd: {
// Glob of markdown files to lint
include: './README.md',
// Markdownlint configuration overrides
overrides: {}
},
release: {
// Conventional commits preset
preset: 'angular',
// Generate changelog upon release (version bump)
changelog: true
}
})
);