Skip to content

Commit 87bc625

Browse files
committed
refactor!: project rewrite p1
- rewrite programmatic api Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 87130e1 commit 87bc625

File tree

444 files changed

+20845
-22707
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+20845
-22707
lines changed

.attw.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"color": true,
33
"emoji": true,
44
"format": "ascii",
5-
"ignoreRules": ["cjs-resolves-to-esm"],
5+
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
66
"summary": true
77
}

.codecov.yml

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
---
55
codecov:
66
notify:
7-
after_n_builds: 4
7+
after_n_builds: 1
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 4
12+
after_n_builds: 1
1313
behavior: default
1414
layout: header,diff,flags,components,tree,footer
1515
require_base: false
@@ -27,23 +27,19 @@ component_management:
2727
- component_id: cli
2828
name: cli
2929
paths:
30-
- src/cli/**/*.ts
31-
- component_id: config
32-
name: config
33-
paths:
34-
- src/config/*.ts
30+
- src/cli/**/*.mts
3531
- component_id: internal
3632
name: internal
3733
paths:
38-
- src/internal/*.ts
34+
- src/internal/*.mts
3935
- component_id: plugins
4036
name: plugins
4137
paths:
42-
- src/plugins/**/*.ts
38+
- src/plugins/*.mts
4339
- component_id: utils
4440
name: utils
4541
paths:
46-
- src/utils/*.ts
42+
- src/utils/*.mts
4743

4844
coverage:
4945
precision: 2
@@ -92,19 +88,7 @@ coverage:
9288
threshold: 0%
9389

9490
flags:
95-
node20:
96-
carryforward: false
97-
paths:
98-
- src/
99-
node19:
100-
carryforward: false
101-
paths:
102-
- src/
103-
node18:
104-
carryforward: false
105-
paths:
106-
- src/
107-
node16:
91+
node23:
10892
carryforward: false
10993
paths:
11094
- src/
@@ -113,16 +97,19 @@ github_checks:
11397
annotations: true
11498

11599
ignore:
116-
- '**/__mocks__/**'
117-
- '**/__tests__/**'
118-
- '**/index.ts'
100+
- '**/*.d.mts'
101+
- '**/__mocks__/'
102+
- '**/__tests__/'
103+
- '**/index.mts'
119104
- '**/interfaces/'
120105
- '**/types/'
121-
- src/plugins/**/options.ts
106+
- '!src/index.mts'
107+
- src/internal/*.browser.mts
122108

123109
profiling:
124110
critical_files_paths:
125-
- src/cli/**/*.ts
126-
- src/config/*.ts
127-
- src/internal/create-context.ts
128-
- src/make.ts
111+
- src/cli/**/*.mts
112+
- src/make.mts
113+
- src/plugins/*.mts
114+
- src/utils/load-build-config.mts
115+
- src/utils/runnable-task.mts
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { scopes } from '@flex-development/commitlint-config'
1818
const config: UserConfig = {
1919
extends: ['@flex-development'],
2020
rules: {
21-
'scope-enum': [
22-
Severity.Error,
23-
'always',
24-
scopes(['bundle', 'options', 'transpile'])
25-
]
21+
'scope-enum': [Severity.Error, 'always', scopes([
22+
'bundle',
23+
'chore',
24+
'options',
25+
'transpile'
26+
])]
2627
}
2728
}
2829

.cspell.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"failFast": false,
1414
"flagWords": [],
1515
"ignorePaths": [
16-
"**/*.log",
16+
"**/*.patch",
1717
"**/*.snap",
18+
"**/*.wasm",
1819
"**/.*ignore",
1920
"**/.gitconfig",
2021
"**/CHANGELOG.md",
@@ -26,15 +27,10 @@
2627
".husky/_/",
2728
".vscode/settings.json",
2829
".yarn/",
29-
"dist/",
3030
"patches/",
3131
"yarn.lock"
3232
],
33-
"ignoreRegExpList": [
34-
"/@flex-development\\/.*/",
35-
"/from\\s+(['\"]).*\\1/",
36-
"import\\(.*\\)"
37-
],
33+
"ignoreRegExpList": [],
3834
"ignoreWords": [],
3935
"language": "en-US",
4036
"patterns": [],

.dictionary.txt

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,33 @@
1-
ardatan
2-
atoi
31
attw
4-
bdougie
5-
booleanish
62
cefc
73
codecov
8-
commitish
94
commitlintrc
105
dedupe
11-
defu
12-
dequal
136
dessant
7+
devlop
148
dists
9+
docast
1510
dohm
1611
dprint
17-
emojify
1812
esbuild
19-
evanw
2013
fbca
14+
finalised
2115
ggshield
2216
gpgsign
23-
groupby
2417
hmarr
25-
iife
26-
infile
27-
iterare
28-
keyid
18+
jchen
19+
kaisugi
2920
ksort
30-
larsgw
3121
lcov
32-
lintstagedrc
33-
memfs
3422
mkbuild
35-
mlly
36-
nestjs
37-
nocheck
38-
npmrc
3923
nvmrc
40-
onrequest
41-
pathe
4224
pkgs
43-
preid
25+
reexporter
26+
remarkrc
27+
rollup
28+
sarif
4429
shfmt
45-
swcrc
30+
smob
4631
toodles
4732
tribonacci
4833
tscu

.dprint.jsonc

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,33 @@
11
{
22
"$schema": "https://dprint.dev/schemas/v0.json",
33
"excludes": [
4-
"!**/__fixtures__/**/dist/",
5-
"!**/__fixtures__/**/node_modules/",
6-
"!**/typings/**/dist/",
4+
"!*.scratch.*",
5+
"!scratch.*",
76
"**/*.patch",
87
"**/*.snap",
9-
"**/*config.*.timestamp*",
10-
"**/.temp/",
11-
"**/.vercel/",
12-
"**/__tests__/report.json",
13-
"**/coverage/",
14-
"**/dist/",
15-
"**/node_modules",
16-
"**/tsconfig*temp.json",
8+
"**/CHANGELOG.md",
9+
"**/LICENSE.md",
10+
"**/RELEASE_NOTES.md",
1711
".git/",
1812
".husky/_/",
1913
".yarn/",
20-
"CHANGELOG.md",
21-
"LICENSE.md",
22-
"RELEASE_NOTES.md",
2314
"yarn.lock"
2415
],
2516
"exec": {
2617
"commands": [
2718
{
28-
"command": "node ./dprint/prettier.mjs {{file_path}}",
29-
"exts": ["json5", "yaml", "yml"],
19+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
20+
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
3021
"stdin": true
3122
},
3223
{
33-
"command": "node ./dprint/shfmt.mjs {{file_path}}",
34-
"exts": ["sh", "txt", "zsh"],
24+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
25+
"exts": ["md", "mdx"],
26+
"stdin": true
27+
},
28+
{
29+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
30+
"exts": ["sh", "zsh"],
3531
"fileNames": [
3632
".editorconfig",
3733
".env",
@@ -42,7 +38,6 @@
4238
".gitattributes",
4339
".gitconfig",
4440
".gitignore",
45-
".markdownlintignore",
4641
".npmrc",
4742
".nvmrc",
4843
"Brewfile",
@@ -52,49 +47,38 @@
5247
],
5348
"stdin": true
5449
}
55-
]
50+
],
51+
"cwd": "${configDir}"
5652
},
57-
"incremental": true,
5853
"indentWidth": 2,
5954
"json": {
6055
"associations": ["**/*.{jsonc,json}"],
6156
"array.preferSingleLine": false,
6257
"commentLine.forceSpaceAfterSlashes": true,
6358
"ignoreNodeCommentText": "dprint-ignore",
64-
"object.preferSingleLine": false
59+
"object.preferSingleLine": false,
60+
"trailingCommas": "never"
6561
},
6662
"lineWidth": 80,
67-
"markdown": {
68-
"associations": ["**/*.{md,mdx}"],
69-
"emphasisKind": "asterisks",
70-
"ignoreDirective": "dprint-ignore",
71-
"ignoreEndDirective": "dprint-ignore-end",
72-
"ignoreFileDirective": "dprint-ignore-file",
73-
"ignoreStartDirective": "dprint-ignore-start",
74-
"lineWidth": 120,
75-
"strongKind": "asterisks",
76-
"textWrap": "maintain"
77-
},
7863
"newLineKind": "lf",
7964
"plugins": [
80-
"https://plugins.dprint.dev/typescript-0.87.1.wasm",
81-
"https://plugins.dprint.dev/json-0.17.4.wasm",
82-
"https://plugins.dprint.dev/markdown-0.16.0.wasm",
83-
"https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072"
65+
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
66+
"https://plugins.dprint.dev/json-0.19.3.wasm",
67+
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
8468
],
8569
"typescript": {
8670
"arrowFunction.useParentheses": "preferNone",
8771
"binaryExpression.linePerExpression": false,
8872
"binaryExpression.operatorPosition": "sameLine",
8973
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
9074
"bracePosition": "sameLine",
91-
"commentLine.forceSpaceAfterSlashes": true,
75+
"commentLine.forceSpaceAfterSlashes": false,
9276
"constructSignature.spaceAfterNewKeyword": true,
9377
"constructor.spaceBeforeParentheses": false,
9478
"constructorType.spaceAfterNewKeyword": true,
9579
"doWhileStatement.spaceAfterWhileKeyword": true,
9680
"enumDeclaration.memberSpacing": "maintain",
97-
"exportDeclaration.forceMultiLine": false,
81+
"exportDeclaration.forceMultiLine": "never",
9882
"exportDeclaration.forceSingleLine": false,
9983
"exportDeclaration.sortNamedExports": "maintain",
10084
"exportDeclaration.spaceSurroundingNamedExports": true,
@@ -109,15 +93,15 @@
10993
"ifStatement.spaceAfterIfKeyword": true,
11094
"ignoreFileCommentText": "dprint-ignore-file",
11195
"ignoreNodeCommentText": "dprint-ignore",
112-
"importDeclaration.forceMultiLine": false,
96+
"importDeclaration.forceMultiLine": "never",
11397
"importDeclaration.forceSingleLine": false,
11498
"importDeclaration.sortNamedImports": "maintain",
11599
"importDeclaration.spaceSurroundingNamedImports": true,
116100
"jsx.bracketPosition": "nextLine",
117101
"jsx.forceNewLinesSurroundingContent": false,
118-
"jsx.multiLineParens": "always",
102+
"jsx.multiLineParens": "prefer",
119103
"jsx.quoteStyle": "preferSingle",
120-
"jsxExpressionContainer.spaceSurroundingExpression": true,
104+
"jsxExpressionContainer.spaceSurroundingExpression": false,
121105
"jsxSelfClosingElement.spaceBeforeSlash": true,
122106
"memberExpression.linePerExpression": false,
123107
"method.spaceBeforeParentheses": false,

.editorconfig

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ spaces_around_operators = true
2222
tab_width = 2
2323
trim_trailing_whitespace = true
2424

25-
# handlebars
26-
[*.hbs]
27-
max_line_length = 100
28-
2925
# markdown
30-
[*.md]
26+
[{*.md,*.mdx}]
3127
max_line_length = 120
3228

3329
# shellscript
@@ -45,10 +41,6 @@ switch_case_indent = true
4541
[*.snap]
4642
max_line_length = 130
4743

48-
# xml
49-
[*.xml]
50-
max_line_length = 100
51-
5244
# yaml
5345
[{*.yaml,*.yml}]
5446
max_line_length = 100

.env.vars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# repository variables
2+
3+
GH_PROJECT_NUMBER=12

.env.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
99
HOMEBREW_BREWFILE=./Brewfile
1010
NODE_NO_WARNINGS=1
11+
NODE_OPTIONS='--experimental-strip-types --experimental-transform-types'

0 commit comments

Comments
 (0)