Skip to content

Commit

Permalink
Updating dotfiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Sep 30, 2023
1 parent 1335071 commit 4ef278a
Show file tree
Hide file tree
Showing 27 changed files with 586 additions and 493 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:33 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

[production]
last 1 chrome versions
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:32 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:32 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

# Default

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:32 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:32 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:32 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

# Packages

Expand Down
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
/*
* Misc features.
*/
"PeterSchmalfeldt.explorer-exclude",
"ExodiusStudios.comment-anchors",
"rohit-gohri.format-code-action"
]
Expand Down
24 changes: 21 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review `./settings.mjs`.
*
* Last generated using `./settings.mjs` Fri, Sep 29, 2023, 7:03:32 PM EDT.
* Last generated using `./settings.mjs` Sat, Sep 30, 2023, 9:35:54 AM EDT.
*/
{
"editor.formatOnType": false,
Expand Down Expand Up @@ -126,14 +126,31 @@
"**/.Spotlight-V100": true,
"**/.DocumentRevisions-V100": true,
"**/Network Trash Folder": true,
"**/Temporary Items": true
"**/Temporary Items": true,
".*": true,
"*.tsbuildinfo": true,
"*.config.*": true,
"wrangler.*": true,
"tsconfig.*": true,
"dev-types.d.ts": true,
"config.gypi": true,
"dev/.files": true,
".yarn": true,
"vendor": true,
"node_modules": true,
"jspm_packages": true,
"bower_components": true,
"yarn.lock": true,
"composer.lock": true,
"package-lock.json": true,
"LICENSE.txt": true
},
"explorer.excludeGitIgnore": false,
"explorerExclude.backup": {},
"search.useIgnoreFiles": true,
"search.useGlobalIgnoreFiles": false,
"search.useParentIgnoreFiles": false,
"search.exclude": {
"/dev/.files": true,
"/.*": true,
"/*.tsbuildinfo": true,
"/*.config.*": true,
Expand All @@ -142,6 +159,7 @@
"/dev-types.d.ts": true,
"/package.json": true,
"/config.gypi": true,
"/dev/.files": true,
"/LICENSE.txt": true,
"**/yarn.lock": true,
"**/composer.lock": true,
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Fri, Sep 29, 2023, 7:03:32 PM EDT.
# Last generated Sat, Sep 30, 2023, 9:35:54 AM EDT.

# Locals

Expand Down
74 changes: 41 additions & 33 deletions dev/.files/bin/includes/exclusions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,45 @@ const asRegExpStrings = (globs) => [...new Set(globs)].map((glob) => $path.globT
*/
const asRegExps = (globs) => asRegExpStrings(globs).map((rxs) => new RegExp(rxs, 'ui'));

/**
* Converts an array of exclusions into negated globs.
*
* WARNING: This typically drops existing negations, based on options.
*
* @param globs Array of exclusion globs.
* @param options Explicit options required for acknowledgment of concerns.
*
* @returns Exclusions as negated globs; potentially dropping existing negations.
*
* @note If existing negations are not dropped, they become inclusions, typically causing problems.
* Normally, we don’t need to re-include the existing negations, as they are narrower in scope.
*/
const asNegatedGlobs = (globs, { dropExistingNegations }) => {
if (undefined === dropExistingNegations) {
throw new Error('Missing option: `dropExistingNegations`.');
}
if (dropExistingNegations) {
return [...new Set(globs)].filter((glob) => !/^!/u.test(glob)).map((glob) => '!' + glob);
}
return [...new Set(globs)].map((glob) => (/^!/u.test(glob) ? glob.replace(/^!/u, '') : '!' + glob));
};

/**
* Converts an array of exclusions into relative globs.
*
* @param from From path.
* @param globs Array of exclusion globs.
* @param options Default is `{ forceRelative: false }`.
* @param options Options related to relative globs.
*
* @returns Exclusions as relative globs.
*/
const asRelativeGlobs = (from, globs, { forceRelative = false } = {}) => {
const asRelativeGlobs = (from, globs, { forceRelative = false, forceNoLeadingSlash = false, headGreedy = true, tailGreedy = true } = {}) => {
return [...new Set(globs)].map((glob) => {
glob = glob.replace(/^(?:\*\*\/)+|(?:\/\*\*)+$/gu, '');
glob = headGreedy && !/\//u.test(glob) ? '**/' + glob : glob;
glob = tailGreedy ? glob + '/**' : glob;
glob = forceRelative ? glob.replace(/^(?:\*\*\/)+/u, '') : glob;
glob = forceNoLeadingSlash ? glob.replace(/^\/+/u, '') : glob;
return /^(?:\/|\*\*\/)/u.test(glob) ? glob : path.relative(from, glob);
});
};
Expand All @@ -48,40 +75,21 @@ const asRelativeGlobs = (from, globs, { forceRelative = false } = {}) => {
*
* @param from From path.
* @param globs Array of exclusion globs.
* @param options Default is `{ forceRootedRelative: false }`.
* @param options Options related to relative globs.
*
* @returns Exclusions as rooted relative globs.
*/
const asRootedRelativeGlobs = (from, globs, { forceRelative = false } = {}) => {
const asRootedRelativeGlobs = (from, globs, { forceRelative = false, forceNoLeadingSlash = false, headGreedy = true, tailGreedy = true } = {}) => {
return [...new Set(globs)].map((glob) => {
glob = glob.replace(/^(?:\*\*\/)+|(?:\/\*\*)+$/gu, '');
glob = headGreedy && !/\//u.test(glob) ? '**/' + glob : glob;
glob = tailGreedy ? glob + '/**' : glob;
glob = forceRelative ? glob.replace(/^(?:\*\*\/)+/u, '') : glob;
glob = forceNoLeadingSlash ? glob.replace(/^\/+/u, '') : glob;
return /^(?:\/|\*\*\/)/u.test(glob) ? glob : '/' + $str.lTrim(path.relative(from, glob), '/');
});
};

/**
* Converts an array of exclusions into negated globs.
*
* WARNING: This typically drops existing negations, based on options.
*
* @param globs Array of exclusion globs.
* @param options Explicit options required for acknowledgment of concerns.
*
* @returns Exclusions as negated globs; potentially dropping existing negations.
*
* @note If existing negations are not dropped, they become inclusions, typically causing problems.
* Normally, we don’t need to re-include the existing negations, as they are narrower in scope.
*/
const asNegatedGlobs = (globs, { dropExistingNegations }) => {
if (undefined === dropExistingNegations) {
throw new Error('Missing option: `dropExistingNegations`.');
}
if (dropExistingNegations) {
return [...new Set(globs)].filter((glob) => !/^!/u.test(glob)).map((glob) => '!' + glob);
}
return [...new Set(globs)].map((glob) => (/^!/u.test(glob) ? glob.replace(/^!/u, '') : '!' + glob));
};

/**
* Converts an array of exclusions into a braced glob.
*
Expand All @@ -93,22 +101,22 @@ const asNegatedGlobs = (globs, { dropExistingNegations }) => {
* @returns Exclusions as braced glob; potentially dropping negations & relative exclusions.
*
* @note `dropExistingNegations` can *only* be set as true. There’s no other way to handle.
* @note `dropExistingRelatives` can *only* be set as true. There’s no other way to handle.
* @note `maybeDropExistingRelatives` can *only* be set as true. There’s no other way to handle.
*/
const asBracedGlob = (globs, { dropExistingNegations, dropExistingRelatives, headGreedy = true, tailGreedy = true }) => {
const asBracedGlob = (globs, { dropExistingNegations, maybeDropExistingRelatives, headGreedy = true, tailGreedy = true }) => {
if (true !== dropExistingNegations) {
throw new Error('Missing option: `dropExistingNegations`; must be `true`.');
}
if (true !== dropExistingRelatives) {
throw new Error('Missing option: `dropExistingRelatives`; must be `true`.');
if (true !== maybeDropExistingRelatives) {
throw new Error('Missing option: `maybeDropExistingRelatives`; must be `true`.');
}
let bracedGlobs = []; // Initialize.

[...new Set(globs)].forEach((glob) => {
if (dropExistingNegations && /^!/u.test(glob)) return;

glob = glob.replace(/^(?:\*\*\/)+|(?:\/\*\*)+$/gu, '');
if (dropExistingRelatives && /\//u.test(glob)) return;
if (maybeDropExistingRelatives && headGreedy && /^\//u.test(glob)) return;

bracedGlobs.push(glob); // OK, we can add to braces below.
});
Expand Down Expand Up @@ -183,9 +191,9 @@ export default {
*/
asRegExps,
asRegExpStrings,
asNegatedGlobs,
asRelativeGlobs,
asRootedRelativeGlobs,
asNegatedGlobs,
asBracedGlob,
asBoolProps,
};
4 changes: 3 additions & 1 deletion dev/.files/bin/ssl-certs/generate.bash
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ subject=$(
ooo
)
# Browsers don’t acknowledge `*.tld`, because that would effectively
# cover everything on an entire TLD. That’s why we have `*.x.tld`.
# cover everything on an entire TLD. That’s why we also have `*.x.[tld]`.
# See: <https://o5p.me/YPcyex> for further details.
subject_alt_names=$(
tr -d '\n' <<- 'ooo'
IP:::,
IP:0.0.0.0,
IP:::1,
IP:127.0.0.1,
DNS:mac,
Expand Down
71 changes: 36 additions & 35 deletions dev/.files/bin/ssl-certs/i10e-ca-crt.pem
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
-----BEGIN CERTIFICATE-----
MIIH/zCCBeegAwIBAgIULOnxwkGlDFgpLyNx1Z24z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BQUHAwMGCCsGAQUF
BwMEBgRVHSUAMA0GCSqGSIb3DQEBDQUAA4ICAQCf60EIwZb7180en4a2R337xzOW
69wQ+X65FHsCbap5owvCZFoOjeS7m81l8dKSqSZsphmnJ+LJhx9+wDrpBmImgFcG
M7UgfLOf+9221h3iEkrIe/Iqxna/qaFkEAugTYAmMBXE+faat/PxvtdTYwHW+IoI
cS2eP3GIrviANy0IqvnYe2yC+cZSK7gCc8hkjj/JF9/RLDS6unSS1H6c+zJbCKre
QYkYyLP4zVU+kFeqs8eD8+qn4WlDihriSe5qhTWIFebFKZ2Ir3tpX+8fNhfnVf3s
iZAZdpREffDkZf/ekXc4KvoBYqULxwmV/R257mzLvo6ghRda+2JocUXO35+9Ru9p
ZqZlUeegW+jGSxyWJhU8i4eo8Jy69lXcqVRrvex2DbloY0LFBfRREo5gmCA07gnX
fn9oaimlsKKdvZs8mzm/gNPoWHVIzRvrqM2F8R4l56+A94rozS2REiArTyIXL6ay
DwfFoEhrNBRQTeA4mH0xCJGa+TydNtu6Jn+3s//AJP+3ZY/9y2zxmCSyBWpt41mG
24ntOpCY7MzLZzgf5Ec6Aq18oAoSJ/4ciIn+9/2GtsI9GQF4NP6T4k9ryRxjuaV+
ZPRViK1IgL11tu6R/DR3bceISssjqliKtHK3+x8waARwPoVTe4RmhtFECGzDIP6x
JImV5kCm/bsWBOAAxw==
-----END CERTIFICATE-----
Loading

0 comments on commit 4ef278a

Please sign in to comment.