Skip to content

Commit

Permalink
chore: refactor project architecture
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Oct 30, 2024
1 parent d408641 commit d83dacb
Show file tree
Hide file tree
Showing 92 changed files with 12,974 additions and 10,993 deletions.
2 changes: 1 addition & 1 deletion .attw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"color": true,
"emoji": true,
"format": "ascii",
"ignoreRules": ["cjs-resolves-to-esm"],
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
"summary": true
}
28 changes: 20 additions & 8 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
---
codecov:
notify:
after_n_builds: 4
after_n_builds: 8
wait_for_ci: true
require_ci_to_pass: true

comment:
after_n_builds: 4
after_n_builds: 8
behavior: default
layout: header,diff,flags,tree,footer
require_base: false
Expand Down Expand Up @@ -65,6 +65,18 @@ coverage:
threshold: 0%

flags:
node23:
carryforward: false
paths:
- src/
node22:
carryforward: false
paths:
- src/
node21:
carryforward: false
paths:
- src/
node20:
carryforward: false
paths:
Expand All @@ -77,6 +89,10 @@ flags:
carryforward: false
paths:
- src/
node17:
carryforward: false
paths:
- src/
node16:
carryforward: false
paths:
Expand All @@ -86,12 +102,8 @@ github_checks:
annotations: true

ignore:
- '**/__mocks__/**'
- '**/__tests__/**'
- '**/index.ts'
- src/interfaces/
- src/types/
- '**/__tests__/'

profiling:
critical_files_paths:
- src/builtin-modules.ts
- src/builtin-modules.mts
2 changes: 1 addition & 1 deletion .commitlintrc.cts → .commitlintrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { scopes } from '@flex-development/commitlint-config'
const config: UserConfig = {
extends: ['@flex-development'],
rules: {
'scope-enum': [Severity.Error, 'always', scopes(['builtins'])]
'scope-enum': [Severity.Error, 'always', scopes(['builtins', 'chore'])]
}
}

Expand Down
10 changes: 3 additions & 7 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"failFast": false,
"flagWords": [],
"ignorePaths": [
"**/*.log",
"**/*.patch",
"**/*.snap",
"**/*.wasm",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
Expand All @@ -26,15 +27,10 @@
".husky/_/",
".vscode/settings.json",
".yarn/",
"dist/",
"patches/",
"yarn.lock"
],
"ignoreRegExpList": [
"/@flex-development\\/.*/",
"/from\\s+(['\"]).*\\1/",
"import\\(.*\\)"
],
"ignoreRegExpList": [],
"ignoreWords": [],
"language": "en-US",
"patterns": [],
Expand Down
18 changes: 9 additions & 9 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
ardatan
attw
bdougie
cefc
codecov
commitlintrc
dedupe
deno
dessant
devlop
docast
dohm
dprint
fbca
ggshield
gpgsign
hmarr
iife
infile
keyid
larsgw
jchen
kaisugi
lcov
lintstagedrc
mkbuild
mlly
nocheck
npmrc
nvmrc
pathe
pkgs
preid
tscu
remarkrc
shfmt
unstub
vates
vfile
vitest
yarnrc
133 changes: 133 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"excludes": [
"!scratch.*",
"**/*.patch",
"**/*.snap",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
".git/",
".husky/_/",
".yarn/",
"yarn.lock"
],
"exec": {
"commands": [
{
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
"stdin": true
},
{
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
"exts": ["md", "mdx"],
"stdin": true
},
{
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
"exts": ["sh", "zsh"],
"fileNames": [
".editorconfig",
".env",
".env.local",
".env.repo",
".eslintcache",
".eslintignore",
".gitattributes",
".gitconfig",
".gitignore",
".npmrc",
".nvmrc",
"Brewfile",
"commit-msg",
"pre-commit",
"pre-push"
],
"stdin": true
}
],
"cwd": "${configDir}"
},
"indentWidth": 2,
"json": {
"associations": ["**/*.{jsonc,json}"],
"array.preferSingleLine": false,
"commentLine.forceSpaceAfterSlashes": true,
"ignoreNodeCommentText": "dprint-ignore",
"object.preferSingleLine": false,
"trailingCommas": "never"
},
"lineWidth": 80,
"newLineKind": "lf",
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
],
"typescript": {
"arrowFunction.useParentheses": "preferNone",
"binaryExpression.linePerExpression": false,
"binaryExpression.operatorPosition": "sameLine",
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
"bracePosition": "sameLine",
"commentLine.forceSpaceAfterSlashes": false,
"constructSignature.spaceAfterNewKeyword": true,
"constructor.spaceBeforeParentheses": false,
"constructorType.spaceAfterNewKeyword": true,
"doWhileStatement.spaceAfterWhileKeyword": true,
"enumDeclaration.memberSpacing": "maintain",
"exportDeclaration.forceMultiLine": "never",
"exportDeclaration.forceSingleLine": false,
"exportDeclaration.sortNamedExports": "maintain",
"exportDeclaration.spaceSurroundingNamedExports": true,
"forInStatement.spaceAfterForKeyword": true,
"forOfStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterSemiColons": true,
"functionDeclaration.spaceBeforeParentheses": false,
"functionExpression.spaceAfterFunctionKeyword": false,
"functionExpression.spaceBeforeParentheses": false,
"getAccessor.spaceBeforeParentheses": false,
"ifStatement.spaceAfterIfKeyword": true,
"ignoreFileCommentText": "dprint-ignore-file",
"ignoreNodeCommentText": "dprint-ignore",
"importDeclaration.forceMultiLine": "never",
"importDeclaration.forceSingleLine": false,
"importDeclaration.sortNamedImports": "maintain",
"importDeclaration.spaceSurroundingNamedImports": true,
"jsx.bracketPosition": "nextLine",
"jsx.forceNewLinesSurroundingContent": false,
"jsx.multiLineParens": "prefer",
"jsx.quoteStyle": "preferSingle",
"jsxExpressionContainer.spaceSurroundingExpression": false,
"jsxSelfClosingElement.spaceBeforeSlash": true,
"memberExpression.linePerExpression": false,
"method.spaceBeforeParentheses": false,
"module.sortExportDeclarations": "caseSensitive",
"module.sortImportDeclarations": "caseSensitive",
"newLineKind": "lf",
"nextControlFlowPosition": "sameLine",
"objectExpression.spaceSurroundingProperties": true,
"objectPattern.spaceSurroundingProperties": true,
"operatorPosition": "nextLine",
"preferHanging": true,
"preferSingleLine": false,
"quoteProps": "asNeeded",
"quoteStyle": "alwaysSingle",
"semiColons": "asi",
"setAccessor.spaceBeforeParentheses": false,
"singleBodyPosition": "sameLine",
"spaceAround": false,
"spaceSurroundingProperties": true,
"taggedTemplate.spaceBeforeLiteral": false,
"trailingCommas": "never",
"typeAnnotation.spaceBeforeColon": false,
"typeAssertion.spaceBeforeExpression": false,
"typeLiteral.separatorKind.singleLine": "semiColon",
"typeLiteral.spaceSurroundingProperties": true,
"useBraces": "maintain",
"whileStatement.spaceAfterWhileKeyword": true
},
"useTabs": false
}
19 changes: 9 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,25 @@ spaces_around_operators = true
tab_width = 2
trim_trailing_whitespace = true

# handlebars
[*.hbs]
max_line_length = 100

# markdown
[*.md]
[{*.md,*.mdx}]
max_line_length = 120

# shellscript
[*.sh]
binary_next_line = true
function_next_line = false
keep_comments = true
keep_padding = false
max_line_length = 100
shell_variant = 0
space_redirects = false
switch_case_indent = true

# snapshots
[*.snap]
max_line_length = 130

# xml
[*.xml]
max_line_length = 100

# yaml
[*.yml]
[{*.yaml,*.yml}]
max_line_length = 100
3 changes: 3 additions & 0 deletions .env.vars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# repository variables

GH_PROJECT_NUMBER=24
2 changes: 2 additions & 0 deletions .env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
# - https://homebrew-file.readthedocs.io/en/latest/usage.html

[ -f $PWD/.env.repo ] && source $PWD/.env.repo
[ -f $PWD/.env.vars ] && source $PWD/.env.vars
HOMEBREW_BREWFILE=./Brewfile
NODE_NO_WARNINGS=1
NODE_OPTIONS=''
31 changes: 0 additions & 31 deletions .eslintignore

This file was deleted.

Loading

0 comments on commit d83dacb

Please sign in to comment.