Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Mar 12, 2024
1 parent 3876f15 commit c3ff88e
Show file tree
Hide file tree
Showing 14 changed files with 264 additions and 221 deletions.
12 changes: 6 additions & 6 deletions .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
# Generated data.
# <generated:start>

# Last generated Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

[production]
node >= 20.9.0
and_chr >= 92
chrome >= 92
and_ff >= 90
android >= 121
android >= 122
edge >= 92
samsung >= 16.0
safari >= 15.4
Expand All @@ -48,7 +48,7 @@ node >= 20.9.0
and_chr >= 92
chrome >= 92
and_ff >= 90
android >= 121
android >= 122
edge >= 92
samsung >= 16.0
safari >= 15.4
Expand All @@ -72,7 +72,7 @@ node >= 20.9.0
and_chr >= 92
chrome >= 92
and_ff >= 90
android >= 121
android >= 122
edge >= 92
samsung >= 16.0
safari >= 15.4
Expand Down Expand Up @@ -107,7 +107,7 @@ not dead
and_chr >= 92
chrome >= 92
and_ff >= 90
android >= 121
android >= 122
edge >= 92
samsung >= 16.0
safari >= 15.4
Expand All @@ -130,7 +130,7 @@ not dead
and_chr >= 92
chrome >= 92
and_ff >= 90
android >= 121
android >= 122
edge >= 92
samsung >= 16.0
safari >= 15.4
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 Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

# 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 Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

# 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 Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

# 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 Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

# 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 Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .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` Mar 4, 2024 9:05 AM UTC.
* Last generated using `./settings.mjs` Mar 12, 2024 8:33 AM UTC.
*/
{
"editor.formatOnType": false,
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 Mar 4, 2024 9:05 AM UTC.
# Last generated Mar 12, 2024 8:33 AM UTC.

# Locals

Expand Down
2 changes: 2 additions & 0 deletions dev/.files/madrun/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import fsp from 'node:fs/promises';
import path from 'node:path';
import url from 'node:url';
import { $chalk, $cmd } from '../../../node_modules/@clevercanyon/utilities.node/dist/index.js';
import { $version } from '../../../node_modules/@clevercanyon/utilities/dist/index.js';
import u from '../bin/includes/utilities.mjs';
import wranglerSettings from '../wrangler/settings.mjs';
import events from './includes/events.mjs';
Expand All @@ -29,6 +30,7 @@ const nodeEnvVars = {
NODE_OPTIONS: $cmd.quote(
[
// `--disable-warning ExperimentalWarning`, // v21.3.0+; {@see https://o5p.me/ZKO1Cq}.
...($version.compare(process.versions.node, '>=', '21.3.0') ? ['--disable-warning ExperimentalWarning'] : []),
`--require ${$cmd.esc(nodeIncludeFile)}`, // Currently empty, but for future use.
].join(' '),
),
Expand Down
26 changes: 13 additions & 13 deletions dev/.files/vite/includes/c10n/post-processing.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import fs from 'node:fs';
import fsp from 'node:fs/promises';
import path from 'node:path';
import { $http as $cfpꓺhttp } from '../../../../../node_modules/@clevercanyon/utilities.cfp/dist/index.js';
import { $build as $cfpꓺbuild } from '../../../../../node_modules/@clevercanyon/utilities.cfp/dist/index.js';
import { $chalk, $fs, $glob, $prettier } from '../../../../../node_modules/@clevercanyon/utilities.node/dist/index.js';
import { $crypto, $json, $mm, $obp, $preact, $str } from '../../../../../node_modules/@clevercanyon/utilities/dist/index.js';
import { StandAlone as StandAlone404 } from '../../../../../node_modules/@clevercanyon/utilities/dist/preact/components/404.js';
Expand Down Expand Up @@ -178,55 +178,55 @@ export default async ({ mode, wranglerMode, inProdLikeMode, command, isSSRBuild,
fileContents = fileContents.replace(new RegExp($str.escRegExp(key), 'gu'), staticDefs[key]);
}
if (['.well-known/gpc.json'].includes(fileRelPath)) {
const cfpDefaultWellKnownGPCJSON = $cfpꓺhttp.prepareDefaultWellKnownGPCJSON({ appType, baseURL, brand, isC10n });
const cfpDefaultWellKnownGPCJSON = $cfpꓺbuild.prepareDefaultWellKnownGPCJSON({ appType, baseURL, brand, isC10n });
fileContents = fileContents
.replace('"$$__APP_CFP_DEFAULT_WELL_KNOWN_GPC_JSON__$$"', cfpDefaultWellKnownGPCJSON) //
.replace('$$__APP_CFP_DEFAULT_WELL_KNOWN_GPC_JSON__$$', cfpDefaultWellKnownGPCJSON);
//
} else if (['.well-known/gpg.txt'].includes(fileRelPath)) {
const cfpDefaultWellKnownGPGTxt = $cfpꓺhttp.prepareDefaultWellKnownGPGTxt({ appType, baseURL, brand, isC10n });
const cfpDefaultWellKnownGPGTxt = $cfpꓺbuild.prepareDefaultWellKnownGPGTxt({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_WELL_KNOWN_GPG_TXT__$$', cfpDefaultWellKnownGPGTxt);
//
} else if (['.well-known/security.txt'].includes(fileRelPath)) {
const cfpDefaultWellKnownSecurityTxt = $cfpꓺhttp.prepareDefaultWellKnownSecurityTxt({ appType, baseURL, brand, isC10n });
const cfpDefaultWellKnownSecurityTxt = $cfpꓺbuild.prepareDefaultWellKnownSecurityTxt({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_WELL_KNOWN_SECURITY_TXT__$$', cfpDefaultWellKnownSecurityTxt);
//
} else if (['_headers'].includes(fileRelPath)) {
const cfpDefaultHeaders = $cfpꓺhttp.prepareDefaultHeaders({ appType, baseURL, brand, isC10n });
const cfpDefaultHeaders = $cfpꓺbuild.prepareDefaultHeaders({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_HEADERS__$$', cfpDefaultHeaders);
//
} else if (['_redirects'].includes(fileRelPath)) {
const cfpDefaultRedirects = $cfpꓺhttp.prepareDefaultRedirects({ appType, baseURL, brand, isC10n });
const cfpDefaultRedirects = $cfpꓺbuild.prepareDefaultRedirects({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_REDIRECTS__$$', cfpDefaultRedirects);
//
} else if (['_routes.json'].includes(fileRelPath)) {
const cfpDefaultRoutesJSON = $cfpꓺhttp.prepareDefaultRoutesJSON({ appType, baseURL, brand, isC10n });
const cfpDefaultRoutesJSON = $cfpꓺbuild.prepareDefaultRoutesJSON({ appType, baseURL, brand, isC10n });
fileContents = fileContents
.replace('"$$__APP_CFP_DEFAULT_ROUTES_JSON__$$"', cfpDefaultRoutesJSON) //
.replace('$$__APP_CFP_DEFAULT_ROUTES_JSON__$$', cfpDefaultRoutesJSON);
//
} else if (['manifest.json'].includes(fileRelPath)) {
const cfpDefaultManifestJSON = $cfpꓺhttp.prepareDefaultManifestJSON({ appType, baseURL, brand, isC10n });
const cfpDefaultManifestJSON = $cfpꓺbuild.prepareDefaultManifestJSON({ appType, baseURL, brand, isC10n });
fileContents = fileContents
.replace('"$$__APP_CFP_DEFAULT_MANIFEST_JSON__$$"', cfpDefaultManifestJSON) //
.replace('$$__APP_CFP_DEFAULT_MANIFEST_JSON__$$', cfpDefaultManifestJSON);
//
} else if (['ads.txt'].includes(fileRelPath)) {
const cfpDefaultAdsTxt = $cfpꓺhttp.prepareDefaultAdsTxt({ appType, baseURL, brand, isC10n });
const cfpDefaultAdsTxt = $cfpꓺbuild.prepareDefaultAdsTxt({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_ADS_TXT__$$', cfpDefaultAdsTxt);
//
} else if (['humans.txt'].includes(fileRelPath)) {
const cfpDefaultHumansTxt = $cfpꓺhttp.prepareDefaultHumansTxt({ appType, baseURL, brand, isC10n });
const cfpDefaultHumansTxt = $cfpꓺbuild.prepareDefaultHumansTxt({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_HUMANS_TXT__$$', cfpDefaultHumansTxt);
//
} else if (['robots.txt'].includes(fileRelPath)) {
const cfpDefaultRobotsTxt = $cfpꓺhttp.prepareDefaultRobotsTxt({ appType, baseURL, brand, isC10n, allow: false });
const cfpDefaultRobotsTxt = $cfpꓺbuild.prepareDefaultRobotsTxt({ appType, baseURL, brand, isC10n, allow: false });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_ROBOTS_TXT__$$', cfpDefaultRobotsTxt);

const cfpDefaultAllowRobotsTxt = $cfpꓺhttp.prepareDefaultRobotsTxt({ appType, baseURL, brand, isC10n, allow: true });
const cfpDefaultAllowRobotsTxt = $cfpꓺbuild.prepareDefaultRobotsTxt({ appType, baseURL, brand, isC10n, allow: true });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_ALLOW_ROBOTS_TXT__$$', cfpDefaultAllowRobotsTxt);

const cfpDefaultSitemapsForRobotsTxt = $cfpꓺhttp.prepareDefaultSitemapsForRobotsTxt({ appType, baseURL, brand, isC10n });
const cfpDefaultSitemapsForRobotsTxt = $cfpꓺbuild.prepareDefaultSitemapsForRobotsTxt({ appType, baseURL, brand, isC10n });
fileContents = fileContents.replace('$$__APP_CFP_DEFAULT_SITEMAPS_FOR_ROBOTS_TXT__$$', cfpDefaultSitemapsForRobotsTxt);
//
} else if (['404.html'].includes(fileRelPath)) {
Expand Down
Loading

0 comments on commit c3ff88e

Please sign in to comment.