Skip to content

Commit 260f78c

Browse files
committed
refactor: regenerate assets
1 parent 8531faa commit 260f78c

Some content is hidden

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

62 files changed

+20598
-16285
lines changed

.codecov.yml

+20
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1+
codecov:
2+
branch: main
13
coverage:
24
range: '75...100'
5+
status:
6+
project:
7+
default:
8+
informational: true
9+
patch:
10+
default:
11+
informational: true
12+
# * Well-known flag syntax: package.<branch>_<package-id>
13+
# * <package>-id will be the WorkspacePackageId or "root" for RootPackages
14+
flag_management:
15+
# * These rules will apply to all non-specially-configured flags
16+
default_rules:
17+
carryforward: true
18+
statuses:
19+
- type: project
20+
target: auto
21+
- type: patch
22+
target: auto

.env.default

-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,3 @@ GPG_PASSPHRASE=
8585
# The GPG key used to sign all git commits and releases. Not referenced during
8686
# non-CI/CD (i.e. local, manual) deployments.
8787
GPG_PRIVATE_KEY=
88-

.github/PULL_REQUEST_TEMPLATE.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
<!-- Add a brief description of your PR here -->
2-
<!-- If this PR closes any issues, please enumerate them; i.e. "Closes #4" -->
1+
<!-- Add a brief description of your PR here |-->
2+
3+
<!-- If this PR closes any issues, please enumerate them; i.e. "Closes #4" |-->
4+
35
<!-- If this PR involves or references any other issues, list them as well -->
46

57
---

.github/SUPPORT.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,4 @@ you for contribution 🎉, your efforts are greatly appreciated! 🙌🏿
5757
https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments
5858
[link-issue-resolution]:
5959
https://isitmaintained.com/project/Xunnamius/next-test-api-route-handler
60-
[open-issues]:
61-
https://github.com/Xunnamius/next-test-api-route-handler/issues?q=
60+
[open-issues]: https://github.com/Xunnamius/next-test-api-route-handler/issues?q=

.github/workflows/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Note: the `build-test`, `deploy`, `cleanup`, and `post-release-check` workflows
2-
are part of the [Projector][1] pipeline. Details on pipeline design and
3-
operation can be found [here][2].
1+
Details on pipeline design and operation can be found [here][1].
42

5-
[1]: https://github.com/Xunnamius/projector
6-
[2]: https://github.com/Xunnamius/projector-pipeline
3+
[1]: https://github.com/Xunnamius/symbiote/wiki

.gitignore

+90-14
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,110 @@
1-
# Ignore temporary files by giving them a special name
1+
# ! Note that any pattern with a / in the beginning OR MIDDLE (but not end) will
2+
# ! be considered relative to this file ONLY. Matching subdirs will NOT match!
3+
# ! Otherwise, patterns will match entities in any directory or subdirectory.
4+
# ! Prepend ** (or **/) if advanced subdir matching of complex paths is desired.
5+
# ! See https://git-scm.com/docs/gitignore#_pattern_format
6+
7+
# Ignore temporary files in any subdir by giving them a special name
28
*.ignore
39
*.ignore.*
410
ignore.*
11+
tmp
512

6-
# Ignore sensitive files
13+
# Ignore sensitive files in any subdir
714
.env
815
.npmrc
916
*.local
1017

11-
# Ignore transpiled source (used for advanced debugging)
18+
# Ignore transpiled source in any subdir (used for advanced debugging)
1219
.transpiled
1320

14-
# Ignore any external scripts
15-
external-scripts/bin
21+
# Ignore packaged files that probably shouldn't be committed
22+
*.tgz
1623

17-
# Ignore build artifacts
24+
# Ignore relevant build artifacts in any subdir (with exceptions)
1825
*.tsbuildinfo
26+
# ? Preceding asterisks "**/" are needed to match any build subdir in monorepos
27+
# ? and proceeding asterisks "/**" allow subsequent negations to be interpreted
28+
# ? properly. See: https://git-scm.com/docs/gitignore#_pattern_format
29+
**/build/**
30+
# ? This and other negations must end in "/**" to be interpreted properly.
31+
!**/src/**/build/**
32+
# ? This and other negations must end in "/**" to be interpreted properly.
33+
!**/docs/**/build/**
1934
dist
20-
build
35+
coverage
36+
lib-cov
37+
.nyc_output
38+
.grunt
39+
bower_components
40+
.lock-wscript
41+
build/Release
2142
.vercel
2243
.next
2344
next-env.d.ts
24-
coverage
2545

26-
# Ignore local configuration
27-
.vscode
28-
!.vscode/launch.example.json
46+
# Ignore cloned GitHub wiki (do not regard it as a so-called "submodule")
47+
# ? Note that this complex path is relative to this file
48+
/.wiki
2949

30-
# Ignore node_modules
50+
# Ignore local vscode configuration
51+
# ? Note that this complex path is relative to this file
52+
/.vscode/**
53+
# ? Note that this complex path is relative to this file
54+
!/.vscode/*.example.json
55+
56+
# Ignore relevant NPM and JSPM artifacts in any subdir
57+
.npm
3158
node_modules
59+
jspm_packages
60+
61+
# Ignore logs in any subdir
62+
logs
63+
*.log
64+
npm-debug.log*
65+
yarn-debug.log*
66+
yarn-error.log*
3267

33-
# Ignore random nothingness
34-
.DS_Store
68+
# Ignore random nothingness in any subdir
69+
.eslintcache
70+
.node_repl_history
71+
.yarn-integrity
72+
*.DS_Store
73+
.AppleDouble
74+
.LSOverride
75+
*~
76+
.fuse_hidden*
77+
.directory
78+
.Trash-*
79+
.nfs*
80+
.DocumentRevisions-V100
81+
.fseventsd
82+
.Spotlight-V100
83+
.TemporaryItems
84+
.Trashes
85+
.VolumeIcon.icns
86+
.com.apple.timemachine.donotpresent
87+
.AppleDB
88+
.AppleDesktop
89+
Network Trash Folder
90+
Temporary Items
91+
.apdisk
92+
pids
93+
*.pid
94+
*.seed
95+
*.pid.lock
96+
Thumbs.db
97+
ehthumbs.db
98+
ehthumbs_vista.db
99+
Desktop.ini
100+
$RECYCLE.BIN
101+
*.cab
102+
*.msi
103+
*.msm
104+
*.msp
105+
*.lnk
106+
_book
107+
CertificateAuthorityCertificate.pem
108+
109+
# Custom
110+
external-scripts/bin

.husky/commit-msg

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
#!/bin/sh
2+
3+
# TODO: replace these uglies with JS (mjs) scripts
4+
15
beginswith() { case $2 in "$1"*) true;; *) false;; esac; }
26

37
if beginswith 'rebase' "$GIT_REFLOG_ACTION"; then
48
echo 'husky-hook::commit-msg: skipped commit-msg hook due to rebase'
59
exit 0
610
fi
711

8-
npx commitlint -e
9-
if [ -z $GAC_VERIFY_SIMPLE ]; then npm run test; fi
10-
echo
11-
node spellcheck-commit.js
12+
NODE_NO_WARNINGS=1 commitlint -e
13+
if [ -z "$GAC_VERIFY_SIMPLE" ]; then npm run test; fi
14+
# TODO: bring back spellchecker:
15+
#echo
16+
#NODE_NO_WARNINGS=1 node spellcheck-commit.cjs

.husky/pre-commit

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
#!/bin/sh
2+
3+
# TODO: replace these uglies with JS (mjs) scripts
4+
15
beginswith() { case $2 in "$1"*) true;; *) false;; esac; }
26

37
if beginswith 'rebase' "$GIT_REFLOG_ACTION"; then
48
echo 'husky-hook::commit-msg: skipped pre-commit hook due to rebase'
59
exit 0
610
fi
711

8-
if [ -z $GAC_VERIFY_SIMPLE ]; then npm run lint:all; fi
9-
NODE_ENV=format npx lint-staged --concurrent false
12+
if [ -z "$GAC_VERIFY_SIMPLE" ]; then npm run lint:package; fi
13+
NODE_NO_WARNINGS=1 lint-staged --concurrent false

.husky/pre-push

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/sh
2+
3+
# TODO: replace these uglies with JS (mjs) scripts
4+
5+
beginswith() { case $2 in "$1"*) true;; *) false;; esac; }
6+
prepend() { while read -r line; do echo "${1}${line}"; done; }
7+
8+
if beginswith 'rebase' "$GIT_REFLOG_ACTION"; then
9+
echo 'husky-hook::pre-push: pushing commits in the middle of a rebase/merge/cherry-pick is not allowed!'
10+
exit 1
11+
fi
12+
13+
echo 'husky-hook::pre-push: checking for commits that should not be pushed...'
14+
15+
log=$(git log HEAD --oneline --not --remotes)
16+
set +e
17+
incompleteCommitsGrep=$(echo "$log" | grep -q -i -e 'mergeme' -e '\[WIP\]' -e '\[NOPUSH\]'; echo $?)
18+
set -e
19+
20+
interestingMdFiles=$(git ls-tree -r --full-tree --name-only HEAD | grep '\.md$' | grep -vE '(^|/)(src|test|docs)/' | grep -v '/CHANGELOG.md$')
21+
set +e
22+
incompleteMdFilesGrep=$(echo "$interestingMdFiles" | xargs -P 0 sh -c 'if grep -q -i -F -e "-✄-" "$@"; then exit 255; else true; fi' 'x' 1>/dev/null 2>&1; echo $?)
23+
set -e
24+
25+
# ? Make sure no commits to be pushed contain "mergeme" etc in their headers and
26+
# ? no relevant markdown files contain "-✄-" in their contents
27+
if [ "$incompleteCommitsGrep" = 0 ] || [ "$incompleteMdFilesGrep" != 0 ]; then
28+
echo 'husky-hook::pre-push: BAD COMMIT(S) DETECTED!'
29+
echo 'husky-hook::pre-push: merge, delete, reword, or otherwise rectify the following commits before trying again:'
30+
31+
if [ "$incompleteCommitsGrep" = 0 ]; then
32+
echo
33+
echo 'husky-hook::pre-push: incomplete commits (e.g. WIP, mergeme, NOPUSH):'
34+
echo
35+
echo "$log" | grep -i -e 'mergeme' -e '\[WIP\]' -e '\[NOPUSH\]' | prepend ''
36+
fi
37+
38+
if [ "$incompleteMdFilesGrep" != 0 ]; then
39+
echo
40+
echo 'husky-hook::pre-push: markdown files at HEAD with unmerged replacer regions:'
41+
echo
42+
echo "$interestingMdFiles" | xargs -P 0 grep -i -l -H -F -e '-✄-' | prepend ''
43+
fi
44+
45+
echo
46+
exit 2;
47+
else
48+
echo 'husky-hook::pre-push: ✅'
49+
exit 0;
50+
fi

.ncurc.cjs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// @ts-check
2+
'use strict';
3+
4+
const { createDebugLogger } = require('rejoinder');
5+
6+
const debug = createDebugLogger({ namespace: 'symbiote:config:ncurc' });
7+
8+
// * https://www.npmjs.com/package/npm-check-updates#configuration-files
9+
module.exports = {
10+
install: 'never',
11+
reject: [
12+
// ? Reject any super-pinned dependencies (e.g. find-up~5 and execa~7)
13+
'*~*',
14+
// !
15+
// TODO: delete these
16+
// ? Pin the CJS version of strip-ansi
17+
'strip-ansi',
18+
// ? Pin the non-broken version of glob
19+
'glob',
20+
// ? Pin the CJS version of execa
21+
'execa'
22+
]
23+
};
24+
25+
debug('exported config: %O', module.exports);

.ncurc.js

-14
This file was deleted.

.prettierignore

+55-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,59 @@
1-
# Paths below are ignored by prettier as well as remark and doctoc when called
2-
# with npm run format)
3-
build
4-
external-scripts/bin
5-
node_modules
1+
# * Paths below are ignored by prettier, remark, doctoc when called
2+
# * with `symbiote format` and `symbiote lint`. To have eslint ignore
3+
# * certain files, add them to an "ignores" block in eslint.config.js. To have
4+
# * tsc ignore certain files, exclude them from the appropriate tsc.*.json file.
5+
# * See symbiote's help text for more details.
6+
7+
# ! Note that any pattern with a / in the beginning OR MIDDLE (but not end) will
8+
# ! be considered relative to this file ONLY. Matching subdirs will NOT match!
9+
# ! Otherwise, patterns will match entities in any directory or subdirectory.
10+
# ! Prepend ** (or **/) if advanced subdir matching of complex paths is desired.
11+
# ! See https://git-scm.com/docs/gitignore#_pattern_format
12+
13+
# Ignore temporary files in any subdir by giving them a special name
14+
*.ignore
15+
*.ignore.*
16+
ignore.*
17+
18+
# Ignore sensitive files in any subdir
19+
.env
20+
.npmrc
21+
*.local
22+
23+
# Ignore transpiled source in any subdir (used for advanced debugging)
24+
.transpiled
25+
26+
# Ignore relevant build artifacts in any subdir (with exceptions)
27+
*.tsbuildinfo
28+
# ? Preceding AND proceeding asterisks (**) are needed to match any build subdir
29+
# ? in monorepos and allow subsequent negations to be interpreted properly.
30+
**/build/**
31+
# ? This negation must end in "/**" to be interpreted properly.
32+
!**/src/**/build/**
33+
docs
634
dist
735
coverage
8-
package-lock.json
9-
fixtures
10-
docs
36+
.vercel
37+
.next
38+
next-env.d.ts
1139
CHANGELOG.md
12-
bundle-stats.ignore.json
40+
LICENSE
41+
LICENSE.md
42+
43+
# Ignore relevant NPM artifacts in any subdir
44+
node_modules
45+
package-lock.json
46+
47+
# Ignore test fixtures in any subdir (which may depend on remaining as they are)
48+
**/test/**/fixtures/**
49+
__*__
50+
51+
# Ignore things that prettier isn't good at in any subdir
52+
*.hbs
53+
54+
# Ignore random nothingness in any subdir
55+
.DS_Store
56+
57+
# Custom
58+
external-scripts/bin
1359
test/integration/assets/output-1.js

0 commit comments

Comments
 (0)