@bgord/ui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button.d.ts +1 -0
- package/dist/hooks/use-toggle.d.ts +32 -0
- package/dist/index.js +526 -0
- package/package.json +4 -1
- package/.gitmodules +0 -3
- package/bgord-scripts/ansible-decrypt-file.sh +0 -13
- package/bgord-scripts/ansible-encrypt-file.sh +0 -13
- package/bgord-scripts/ansible-view-file.sh +0 -13
- package/bgord-scripts/app-readme-generate.sh +0 -79
- package/bgord-scripts/base.sh +0 -209
- package/bgord-scripts/biome-check.sh +0 -14
- package/bgord-scripts/build-prechecks.sh +0 -14
- package/bgord-scripts/changelog-generate.sh +0 -17
- package/bgord-scripts/compare-configs.sh +0 -33
- package/bgord-scripts/compressor.ts +0 -103
- package/bgord-scripts/cspell.sh +0 -30
- package/bgord-scripts/css-purge.sh +0 -10
- package/bgord-scripts/database-sync-production-to-local.sh +0 -12
- package/bgord-scripts/drizzle-generate.sh +0 -10
- package/bgord-scripts/drizzle-migrate.sh +0 -10
- package/bgord-scripts/drizzle-open-studio.sh +0 -3
- package/bgord-scripts/drizzle-seed.sh +0 -12
- package/bgord-scripts/e2e-open.sh +0 -10
- package/bgord-scripts/e2e-run.sh +0 -19
- package/bgord-scripts/format-staged.sh +0 -14
- package/bgord-scripts/format.sh +0 -10
- package/bgord-scripts/frontend-build.sh +0 -15
- package/bgord-scripts/frontend-watch.sh +0 -12
- package/bgord-scripts/image-identify.sh +0 -14
- package/bgord-scripts/image-svg-optmise.sh +0 -14
- package/bgord-scripts/lint-commit-message.sh +0 -10
- package/bgord-scripts/list.sh +0 -20
- package/bgord-scripts/local-server-start.sh +0 -25
- package/bgord-scripts/npm-publish.sh +0 -77
- package/bgord-scripts/outdated-dependencies.sh +0 -24
- package/bgord-scripts/production-server-inspect.sh +0 -13
- package/bgord-scripts/production-sqlite-backup.sh +0 -20
- package/bgord-scripts/shellcheck.sh +0 -14
- package/bgord-scripts/templates/.commitlint-config.cjs +0 -11
- package/bgord-scripts/templates/biome.json +0 -66
- package/bgord-scripts/templates/cspell.json +0 -117
- package/bgord-scripts/templates/drizzle.config.ts +0 -8
- package/bgord-scripts/templates/index.html +0 -30
- package/bgord-scripts/templates/knip.json +0 -11
- package/bgord-scripts/templates/lefthook-target.yml +0 -2
- package/bgord-scripts/templates/lefthook.yml +0 -46
- package/bgord-scripts/templates/postcss.config.js +0 -10
- package/bgord-scripts/templates/server.tsconfig.json +0 -15
- package/bgord-scripts/test-coverage.sh +0 -11
- package/bgord-scripts/test-run.sh +0 -16
- package/bgord-scripts/test-watch.sh +0 -16
- package/bgord-scripts/typecheck-frontend-watch.sh +0 -20
- package/bgord-scripts/typecheck-frontend.sh +0 -22
- package/bgord-scripts/typecheck-prune.sh +0 -10
- package/bgord-scripts/typecheck-watch.sh +0 -8
- package/bgord-scripts/typecheck.sh +0 -10
- package/bgord-scripts/update.sh +0 -15
- package/bgord-scripts/workflows/codeql-analysis.yml +0 -35
- package/bgord-scripts/workflows/dependabot.yml +0 -7
- package/bgord-scripts/workflows/deploy-project.yml +0 -65
- package/bgord-scripts/workflows/deploy-server.yml +0 -71
- package/bgord-scripts/workflows/docs-app.yml +0 -47
- package/bun.lock +0 -29
- package/bunfig.toml +0 -6
- package/src/components/button.tsx +0 -3
- package/src/hooks/use-toggle.ts +0 -68
- package/tsconfig.json +0 -15
- /package/{src/components/index.ts → dist/components/index.d.ts} +0 -0
- /package/{src/hooks/index.ts → dist/hooks/index.d.ts} +0 -0
- /package/{src/index.ts → dist/index.d.ts} +0 -0
package/bgord-scripts/list.sh
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
# Preload base bash configuration and functions
|
|
4
|
-
source bgord-scripts/base.sh
|
|
5
|
-
setup_base_config
|
|
6
|
-
|
|
7
|
-
info "Scripts"
|
|
8
|
-
|
|
9
|
-
ls bgord-scripts/ \
|
|
10
|
-
| grep -v bun \
|
|
11
|
-
| grep -v workflows \
|
|
12
|
-
| grep -v json \
|
|
13
|
-
| grep -v base.sh \
|
|
14
|
-
| grep -v templates \
|
|
15
|
-
| grep -v toolbox \
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
info "Toolbox"
|
|
19
|
-
|
|
20
|
-
ls bgord-scripts/toolbox | grep -v templates
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
if test -f "scripts/local-server-start.sh"
|
|
7
|
-
then
|
|
8
|
-
info "Local server start script exists"
|
|
9
|
-
bash scripts/local-server-start.sh
|
|
10
|
-
exit
|
|
11
|
-
else
|
|
12
|
-
info "Local server start script does not exist"
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
|
-
info "Environment: local"
|
|
16
|
-
info "Starting project..."
|
|
17
|
-
|
|
18
|
-
# ==========================================================
|
|
19
|
-
|
|
20
|
-
export NODE_ENV="local"
|
|
21
|
-
|
|
22
|
-
bun run \
|
|
23
|
-
--watch \
|
|
24
|
-
--env-file=".env.$NODE_ENV" \
|
|
25
|
-
index.ts
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
# ========================================
|
|
7
|
-
|
|
8
|
-
VERSION_CHANGE=$1
|
|
9
|
-
CURRENT_BRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
|
|
10
|
-
|
|
11
|
-
# ========================================
|
|
12
|
-
|
|
13
|
-
validate_non_empty "VERSION_CHANGE" $VERSION_CHANGE
|
|
14
|
-
|
|
15
|
-
if test "$VERSION_CHANGE" == "major" || test "$VERSION_CHANGE" == "minor" || test "$VERSION_CHANGE" == "patch"
|
|
16
|
-
then
|
|
17
|
-
success "Version change: $VERSION_CHANGE"
|
|
18
|
-
else
|
|
19
|
-
error "Unsupported version change: $VERSION_CHANGE"
|
|
20
|
-
exit 1
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
|
-
# ========================================
|
|
24
|
-
|
|
25
|
-
if test $(git rev-parse master) != $(git rev-parse origin/master)
|
|
26
|
-
then
|
|
27
|
-
error "There are some differences between master and origin/master"
|
|
28
|
-
info "Please, sync them"
|
|
29
|
-
exit 1
|
|
30
|
-
fi
|
|
31
|
-
success "All changes are pushed to the remote master branch"
|
|
32
|
-
|
|
33
|
-
# ========================================
|
|
34
|
-
|
|
35
|
-
info "Building the package"
|
|
36
|
-
|
|
37
|
-
bun run build
|
|
38
|
-
|
|
39
|
-
success "Package built successfully"
|
|
40
|
-
|
|
41
|
-
# ========================================
|
|
42
|
-
|
|
43
|
-
if test ! $(npm whoami)
|
|
44
|
-
then
|
|
45
|
-
error "You're not logged in to npm"
|
|
46
|
-
info "Run [npm login], you can find the credentials on Keeper"
|
|
47
|
-
exit 1
|
|
48
|
-
fi
|
|
49
|
-
success "You're logged in to npm"
|
|
50
|
-
|
|
51
|
-
# ========================================
|
|
52
|
-
|
|
53
|
-
info "Changing app $VERSION_CHANGE version..."
|
|
54
|
-
npm version $VERSION_CHANGE
|
|
55
|
-
success "Version changed to $VERSION_CHANGE!"
|
|
56
|
-
|
|
57
|
-
# ========================================
|
|
58
|
-
|
|
59
|
-
info "Pushing version change..."
|
|
60
|
-
git push --no-verify
|
|
61
|
-
git push --tags --no-verify
|
|
62
|
-
success "Version change pushed!"
|
|
63
|
-
|
|
64
|
-
# ========================================
|
|
65
|
-
|
|
66
|
-
npm publish --dry-run
|
|
67
|
-
success "Ran npm publish --dry-run"
|
|
68
|
-
|
|
69
|
-
# ========================================
|
|
70
|
-
|
|
71
|
-
info "About to run [npm publish] after you press Enter"
|
|
72
|
-
|
|
73
|
-
press_enter_to_continue
|
|
74
|
-
|
|
75
|
-
npm publish
|
|
76
|
-
|
|
77
|
-
success "The package has been published!"
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
info "Detecting outdated dependencies..."
|
|
7
|
-
|
|
8
|
-
outdated=$(bun outdated)
|
|
9
|
-
|
|
10
|
-
has_outdated_dependencies=false
|
|
11
|
-
|
|
12
|
-
if grep -q 'Package.*Current.*Update.*Latest' <<< "$outdated"; then
|
|
13
|
-
has_outdated_dependencies=true
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
echo "$outdated"
|
|
17
|
-
|
|
18
|
-
if [ "$has_outdated_dependencies" = true ]; then
|
|
19
|
-
error "There are outdated dependencies."
|
|
20
|
-
exit 1
|
|
21
|
-
else
|
|
22
|
-
success "All dependencies are up-to-date."
|
|
23
|
-
exit 0
|
|
24
|
-
fi
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
# Preload base bash configuration and functions
|
|
4
|
-
source bgord-scripts/base.sh
|
|
5
|
-
setup_base_config
|
|
6
|
-
|
|
7
|
-
OUTPUT_DIRECTORY="build"
|
|
8
|
-
|
|
9
|
-
PROJECT_NAME=$1
|
|
10
|
-
|
|
11
|
-
validate_non_empty "PROJECT_NAME" "$PROJECT_NAME"
|
|
12
|
-
|
|
13
|
-
du -sh "$OUTPUT_DIRECTORY/$PROJECT_NAME"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
echo "Environment: production"
|
|
4
|
-
|
|
5
|
-
PROJECT_NAME=$1
|
|
6
|
-
CURRENT_TIME=$(date +%F-%H-%M-%S)
|
|
7
|
-
|
|
8
|
-
DATABASE_PATH="/var/www/$PROJECT_NAME/sqlite.db"
|
|
9
|
-
BACKUPS_PATH="/var/backups/$PROJECT_NAME"
|
|
10
|
-
BACKUP_PATH="$BACKUPS_PATH/$CURRENT_TIME.sqlite.backup"
|
|
11
|
-
|
|
12
|
-
echo "Creating a backup of database: $DATABASE_PATH."
|
|
13
|
-
sqlite3 $DATABASE_PATH ".backup $BACKUP_PATH"
|
|
14
|
-
echo "Backup created to: $BACKUP_PATH."
|
|
15
|
-
|
|
16
|
-
gzip $BACKUP_PATH
|
|
17
|
-
echo "Backup compressed."
|
|
18
|
-
|
|
19
|
-
find $BACKUPS_PATH/* -mtime +7 -exec rm {} \;
|
|
20
|
-
echo "Files older than 7 days deleted"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
info "Running shellcheck..."
|
|
7
|
-
|
|
8
|
-
bunx shellcheck \
|
|
9
|
-
--external-sources \
|
|
10
|
-
--enable=all \
|
|
11
|
-
--exclude=SC2248,SC2250,SC1008 \
|
|
12
|
-
scripts/*.sh
|
|
13
|
-
|
|
14
|
-
success "No shellcheck errors!"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ["@commitlint/config-conventional"],
|
|
3
|
-
rules: {
|
|
4
|
-
"type-enum": [
|
|
5
|
-
2,
|
|
6
|
-
"always",
|
|
7
|
-
["feature", "fix", "step", "docs", "refactor", "style", "test"],
|
|
8
|
-
],
|
|
9
|
-
"scope-enum": [2, "always", ["release", "model", "api", "ui", "scripts"]],
|
|
10
|
-
},
|
|
11
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": false,
|
|
3
|
-
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
|
|
4
|
-
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
5
|
-
"files": {
|
|
6
|
-
"includes": [
|
|
7
|
-
"**",
|
|
8
|
-
"!**/static/**",
|
|
9
|
-
"!**/build/**",
|
|
10
|
-
"!**/dist/**",
|
|
11
|
-
"!**/bgord-scripts/**",
|
|
12
|
-
"!**/bgord-frontend/**",
|
|
13
|
-
"!**/frontend/.react-router/**",
|
|
14
|
-
"!**/frontend/public/**"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"formatter": {
|
|
18
|
-
"enabled": true,
|
|
19
|
-
"indentStyle": "space",
|
|
20
|
-
"indentWidth": 2,
|
|
21
|
-
"lineWidth": 110
|
|
22
|
-
},
|
|
23
|
-
"linter": {
|
|
24
|
-
"enabled": true,
|
|
25
|
-
"rules": {
|
|
26
|
-
"recommended": true,
|
|
27
|
-
"complexity": {
|
|
28
|
-
"noStaticOnlyClass": "off",
|
|
29
|
-
"useSimplifiedLogicExpression": "error",
|
|
30
|
-
"useArrowFunction": "off",
|
|
31
|
-
"noForEach": "off"
|
|
32
|
-
},
|
|
33
|
-
"style": {
|
|
34
|
-
"useImportType": "off",
|
|
35
|
-
"noImplicitBoolean": "off",
|
|
36
|
-
"useShorthandAssign": "error",
|
|
37
|
-
"useFragmentSyntax": "error",
|
|
38
|
-
"useConsistentArrayType": "error",
|
|
39
|
-
"useCollapsedElseIf": "error",
|
|
40
|
-
"noParameterAssign": "error",
|
|
41
|
-
"useAsConstAssertion": "error",
|
|
42
|
-
"useDefaultParameterLast": "error",
|
|
43
|
-
"useEnumInitializers": "error",
|
|
44
|
-
"useSelfClosingElements": "error",
|
|
45
|
-
"useSingleVarDeclarator": "error",
|
|
46
|
-
"noUnusedTemplateLiteral": "error",
|
|
47
|
-
"useNumberNamespace": "error",
|
|
48
|
-
"noInferrableTypes": "error",
|
|
49
|
-
"noUselessElse": "error"
|
|
50
|
-
},
|
|
51
|
-
"suspicious": {
|
|
52
|
-
"noExplicitAny": "off",
|
|
53
|
-
"noConsole": { "level": "error", "options": { "allow": ["log"] } },
|
|
54
|
-
"useAdjacentOverloadSignatures": "off"
|
|
55
|
-
},
|
|
56
|
-
"a11y": {
|
|
57
|
-
"noSvgWithoutTitle": "off",
|
|
58
|
-
"noNoninteractiveTabindex": "off",
|
|
59
|
-
"noLabelWithoutControl": "off"
|
|
60
|
-
},
|
|
61
|
-
"correctness": {
|
|
62
|
-
"useExhaustiveDependencies": "warn"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"words": [
|
|
3
|
-
"autobuild",
|
|
4
|
-
"bgord",
|
|
5
|
-
"bunx",
|
|
6
|
-
"changefreq",
|
|
7
|
-
"codeql",
|
|
8
|
-
"commitlint",
|
|
9
|
-
"croner",
|
|
10
|
-
"datapoint",
|
|
11
|
-
"datapoints",
|
|
12
|
-
"datasource",
|
|
13
|
-
"datetime",
|
|
14
|
-
"emittery",
|
|
15
|
-
"epub",
|
|
16
|
-
"esbuild",
|
|
17
|
-
"execa",
|
|
18
|
-
"exif",
|
|
19
|
-
"expirable",
|
|
20
|
-
"favourited",
|
|
21
|
-
"feedly",
|
|
22
|
-
"fullhuman",
|
|
23
|
-
"gzipped",
|
|
24
|
-
"hcaptcha",
|
|
25
|
-
"healthcheck",
|
|
26
|
-
"iconoir",
|
|
27
|
-
"knip",
|
|
28
|
-
"libx",
|
|
29
|
-
"magick",
|
|
30
|
-
"metafile",
|
|
31
|
-
"metatags",
|
|
32
|
-
"miliseconds",
|
|
33
|
-
"mobi",
|
|
34
|
-
"noopener",
|
|
35
|
-
"noreferer",
|
|
36
|
-
"outdir",
|
|
37
|
-
"pandoc",
|
|
38
|
-
"populator",
|
|
39
|
-
"postcss",
|
|
40
|
-
"preact",
|
|
41
|
-
"prechecks",
|
|
42
|
-
"preinstall",
|
|
43
|
-
"purgecss",
|
|
44
|
-
"raok",
|
|
45
|
-
"raspistill",
|
|
46
|
-
"readded",
|
|
47
|
-
"resizer",
|
|
48
|
-
"respawn",
|
|
49
|
-
"routable",
|
|
50
|
-
"signup",
|
|
51
|
-
"signups",
|
|
52
|
-
"sitekey",
|
|
53
|
-
"sonarjs",
|
|
54
|
-
"supress",
|
|
55
|
-
"timelapse",
|
|
56
|
-
"timelapses",
|
|
57
|
-
"toplevel",
|
|
58
|
-
"typecheck",
|
|
59
|
-
"undelete",
|
|
60
|
-
"unmute",
|
|
61
|
-
"unpublish",
|
|
62
|
-
"unpublishing",
|
|
63
|
-
"versionrc",
|
|
64
|
-
"vitest",
|
|
65
|
-
"referer",
|
|
66
|
-
"grayscale",
|
|
67
|
-
"doiuse",
|
|
68
|
-
"rgba",
|
|
69
|
-
"necolas",
|
|
70
|
-
"tsconfigs",
|
|
71
|
-
"duplicative",
|
|
72
|
-
"tsdx",
|
|
73
|
-
"tinykeys",
|
|
74
|
-
"customizer",
|
|
75
|
-
"bodyparser",
|
|
76
|
-
"uncompress",
|
|
77
|
-
"Exphbs",
|
|
78
|
-
"maxsize",
|
|
79
|
-
"anoop",
|
|
80
|
-
"metatag",
|
|
81
|
-
"resave",
|
|
82
|
-
"lastmod",
|
|
83
|
-
"urlset",
|
|
84
|
-
"brotli",
|
|
85
|
-
"newindex",
|
|
86
|
-
"verificator",
|
|
87
|
-
"checkperiod",
|
|
88
|
-
"Xmark",
|
|
89
|
-
"topo",
|
|
90
|
-
"preprocessors",
|
|
91
|
-
"postprocessors",
|
|
92
|
-
"endfor",
|
|
93
|
-
"noninteractive",
|
|
94
|
-
"plimit",
|
|
95
|
-
"redirector",
|
|
96
|
-
"lobbygow",
|
|
97
|
-
"xenova",
|
|
98
|
-
"Xenova",
|
|
99
|
-
"distilbart",
|
|
100
|
-
"wholestep",
|
|
101
|
-
"halfstep",
|
|
102
|
-
"Cordian",
|
|
103
|
-
"shellcheck",
|
|
104
|
-
"cassiozen",
|
|
105
|
-
"usestatemachine",
|
|
106
|
-
"secam",
|
|
107
|
-
"Errback",
|
|
108
|
-
"lefthook",
|
|
109
|
-
"nosniff",
|
|
110
|
-
"noopen",
|
|
111
|
-
"SAMEORIGIN",
|
|
112
|
-
"prereqs",
|
|
113
|
-
"IBAN",
|
|
114
|
-
"iban",
|
|
115
|
-
"autoincrement"
|
|
116
|
-
]
|
|
117
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
|
|
8
|
-
<link
|
|
9
|
-
as="style"
|
|
10
|
-
rel="stylesheet preload"
|
|
11
|
-
href="/static/normalize.min.css"
|
|
12
|
-
/>
|
|
13
|
-
<link as="style" rel="stylesheet preload" href="/static/main.min.css" />
|
|
14
|
-
|
|
15
|
-
<link
|
|
16
|
-
rel="icon"
|
|
17
|
-
type="image/png"
|
|
18
|
-
sizes="32x32"
|
|
19
|
-
href="/static/favicon-32x32.png"
|
|
20
|
-
/>
|
|
21
|
-
<link rel="manifest" href="/static/site.webmanifest" />
|
|
22
|
-
|
|
23
|
-
<title>Starter</title>
|
|
24
|
-
</head>
|
|
25
|
-
|
|
26
|
-
<body data-bg="gray-100" data-mx="auto">
|
|
27
|
-
<div id="root"></div>
|
|
28
|
-
<script async src="/static/index.js"></script>
|
|
29
|
-
</body>
|
|
30
|
-
</html>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
assert_lefthook_installed: true
|
|
2
|
-
|
|
3
|
-
pre-push:
|
|
4
|
-
parallel: true
|
|
5
|
-
commands:
|
|
6
|
-
typecheck:
|
|
7
|
-
run: ./bgord-scripts/typecheck.sh
|
|
8
|
-
typecheck-prune:
|
|
9
|
-
run: ./bgord-scripts/typecheck-prune.sh
|
|
10
|
-
test-run:
|
|
11
|
-
run: ./bgord-scripts/test-run.sh
|
|
12
|
-
outdated-dependencies:
|
|
13
|
-
run: ./bgord-scripts/outdated-dependencies.sh
|
|
14
|
-
compare-configs:
|
|
15
|
-
run: ./bgord-scripts/compare-configs.sh
|
|
16
|
-
typecheck-frontend:
|
|
17
|
-
run: ./bgord-scripts/typecheck-frontend.sh
|
|
18
|
-
|
|
19
|
-
pre-commit:
|
|
20
|
-
parallel: true
|
|
21
|
-
commands:
|
|
22
|
-
format-staged:
|
|
23
|
-
run: ./bgord-scripts/format-staged.sh
|
|
24
|
-
stage_fixed: true
|
|
25
|
-
cspell:
|
|
26
|
-
run: ./bgord-scripts/cspell.sh
|
|
27
|
-
shellcheck:
|
|
28
|
-
glob: "*.{sh}"
|
|
29
|
-
run: ./bgord-scripts/shellcheck.sh
|
|
30
|
-
biome-check:
|
|
31
|
-
run: ./bgord-scripts/biome-check.sh
|
|
32
|
-
|
|
33
|
-
commit-msg:
|
|
34
|
-
commands:
|
|
35
|
-
commit-lint:
|
|
36
|
-
run: ./bgord-scripts/lint-commit-message.sh
|
|
37
|
-
|
|
38
|
-
skip_output:
|
|
39
|
-
- meta
|
|
40
|
-
- summary
|
|
41
|
-
- empty_summary
|
|
42
|
-
- success
|
|
43
|
-
- execution
|
|
44
|
-
- execution_out
|
|
45
|
-
- execution_info
|
|
46
|
-
- skips
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"esModuleInterop": true,
|
|
4
|
-
"incremental": true,
|
|
5
|
-
"jsx": "react",
|
|
6
|
-
"lib": ["ESNext", "DOM"],
|
|
7
|
-
"noUncheckedIndexedAccess": true,
|
|
8
|
-
"noUnusedLocals": true,
|
|
9
|
-
"noUnusedParameters": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"strict": true
|
|
13
|
-
},
|
|
14
|
-
"exclude": ["bgord-scripts", "**/*.test.ts"]
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
set_node_timezone_to_utc
|
|
6
|
-
|
|
7
|
-
export NODE_ENV="test"
|
|
8
|
-
|
|
9
|
-
info "Running tests..."
|
|
10
|
-
|
|
11
|
-
if test -f "tests/_setup.ts"
|
|
12
|
-
then
|
|
13
|
-
bun test --preload ./tests/_setup.ts
|
|
14
|
-
else
|
|
15
|
-
bun test
|
|
16
|
-
fi
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
set_node_timezone_to_utc
|
|
6
|
-
|
|
7
|
-
export NODE_ENV="test"
|
|
8
|
-
|
|
9
|
-
info "Running tests in watch mode..."
|
|
10
|
-
|
|
11
|
-
if test -f "tests/_setup.ts"
|
|
12
|
-
then
|
|
13
|
-
bun test --watch --preload ./tests/_setup.ts
|
|
14
|
-
else
|
|
15
|
-
bun test --watch
|
|
16
|
-
fi
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
info "Typechecking frontend..."
|
|
7
|
-
|
|
8
|
-
FRONTEND_DIRECTORY="frontend/"
|
|
9
|
-
|
|
10
|
-
if test -d "$FRONTEND_DIRECTORY"
|
|
11
|
-
then
|
|
12
|
-
cd $FRONTEND_DIRECTORY
|
|
13
|
-
|
|
14
|
-
bunx react-router typegen
|
|
15
|
-
|
|
16
|
-
bunx tsc --watch --preserveWatchOutput --project tsconfig.json --noEmit
|
|
17
|
-
else
|
|
18
|
-
info "$FRONTEND_DIRECTORY directory doesn't exist!"
|
|
19
|
-
exit 0
|
|
20
|
-
fi
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
info "Typechecking frontend..."
|
|
7
|
-
|
|
8
|
-
FRONTEND_DIRECTORY="frontend/"
|
|
9
|
-
|
|
10
|
-
if test -d "$FRONTEND_DIRECTORY"
|
|
11
|
-
then
|
|
12
|
-
cd $FRONTEND_DIRECTORY
|
|
13
|
-
|
|
14
|
-
bunx react-router typegen
|
|
15
|
-
|
|
16
|
-
bunx tsc --project tsconfig.json --noEmit
|
|
17
|
-
|
|
18
|
-
success "Types are correct!"
|
|
19
|
-
else
|
|
20
|
-
info "$FRONTEND_DIRECTORY directory doesn't exist!"
|
|
21
|
-
exit 0
|
|
22
|
-
fi
|
package/bgord-scripts/update.sh
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
source bgord-scripts/base.sh
|
|
4
|
-
setup_base_config
|
|
5
|
-
|
|
6
|
-
info "Performing an auto-update..."
|
|
7
|
-
|
|
8
|
-
cd bgord-scripts/
|
|
9
|
-
git pull origin master
|
|
10
|
-
|
|
11
|
-
cd ../
|
|
12
|
-
git add bgord-scripts/
|
|
13
|
-
git commit -m "step: bump bgord/scripts" --no-verify
|
|
14
|
-
|
|
15
|
-
success "Auto-update performed!"
|