-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobs.js
More file actions
47 lines (46 loc) · 1.85 KB
/
globs.js
File metadata and controls
47 lines (46 loc) · 1.85 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
const globs = {
// Add vue, svelte,... if using them
SCRIPT_AND_JSONS: ['**/*.{?(c|m)[jt]s?(x),json?(c|5)}'],
// Add vue, svelte,... if using them
SCRIPT: ['**/*.?(c|m)[jt]s?(x)'],
JSON: ['**/*.json'],
NOT_JSON: ['**/tsconfig.json', '.{vscode,zed}/*.json'],
JSONC: ['**/*.jsonc', '**/tsconfig.json', '.{vscode,zed}/*.json'],
JSON5: ['**/*.json5'],
JSONC5: ['**/*.json?(c|5)'],
TRANSLATIONS: ['./src/i18n/translations/**/*.json'],
// Add vue, svelte,... if using them
JAVASCRIPT: ['**/*.?(c|m)js?(x)'],
TYPESCRIPT: ['**/*.?(c|m)ts?(x)'],
REACT_COMPONENTS: ['**/*.?(c|m)[jt]sx'],
REACT_HOOKS: ['**/use*.?(c|m)[jt]s?(x)'],
REACT: ['**/*.?(c|m)[jt]sx', '**/use*.?(c|m)[jt]s?(x)'],
REACT_JAVASCRIPT: ['**/*.?(c|m)tsx', '**/use*.?(c|m)js?(x)'],
REACT_TYPESCRIPT: ['**/*.?(c|m)tsx', '**/use*.?(c|m)ts?(x)'],
ROUTES: ['src/routes/**/*', '**/_layout.tsx'],
TEST: ['**/__tests__/**/*.?(c|m)[jt]s?(x)', '**/*.{test,spec}?(-d).?(c|m)[jt]s?(x)'],
TEST_NOT_TYPE: ['**/__tests__/**/*.?(c|m)[jt]s?(x)', '**/*.{test,spec}.?(c|m)[jt]s?(x)'],
TEST_SSR: ['**/*.ssr.{test,spec}?(-d).?(c|m)[jt]s?(x)', '**/__tests__/**/*.ssr.?(c|m)[jt]s?(x)'],
TEST_TYPE: ['**/*.{test,spec}-d.?(c|m)ts?(x)'],
TEST_NOT_REACT: [
'**/__tests__/**/!(use)*.?(c|m)[jt]s!(x)',
'**/!(use)*.{test,spec}?(-d).?(c|m)[jt]s!(x)',
],
TEST_BROWSER: undefined,
TEST_REACT: [
'**/__tests__/**/*.?(c|m)[jt]sx',
'**/__tests__/**/use*.?(c|m)[jt]s?(x)',
'**/*.{test,spec}?(-d).?(c|m)[jt]sx',
'**/use*.{test,spec}?(-d).?(c|m)[jt]s?(x)',
],
TEST_2E2: ['**/cypress/**/*'],
// Add less, stylus,... if using them
STYLE: ['**/*.{s[ca]ss,?(p)css}'],
TAILWIND_CONTENT: [
'./index.{htm,html}',
'./src/**/*.{?(c|m)[jt]s?(x),vue,svelte}',
'./node_modules/@heroui/theme/dist/**/*.?(c|m)[jt]s?(x)',
],
MARKDOWN: ['**/*.{md,markdown,mdx,mdc}'],
}
export default globs