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 Dec 13, 2023
1 parent e74f5f0 commit 8994536
Show file tree
Hide file tree
Showing 14 changed files with 120 additions and 85 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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 AM UTC.

[production]
node >= 20.9.0
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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 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` Dec 13, 2023 5:03 AM UTC.
* Last generated using `./settings.mjs` Dec 13, 2023 5:23 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 Dec 13, 2023 5:03 AM UTC.
# Last generated Dec 13, 2023 5:23 AM UTC.

# Locals

Expand Down
2 changes: 2 additions & 0 deletions dev/.files/bin/includes/extensions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const asRegExpFrag = (exts) => {

/**
* Defines extensions.
*
* @review Consider removing the `.` in our exported extensions, it’s unexpected here, yes?
*/
const extensions = {
/**
Expand Down
33 changes: 33 additions & 0 deletions dev/.files/vite/includes/ihtml/updates.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* `./index.html` build-related tag updates.
*
* Vite is not aware of this config file's location.
*
* @note PLEASE DO NOT EDIT THIS FILE!
* @note This entire file will be updated automatically.
* @note Instead of editing here, please review <https://github.com/clevercanyon/skeleton>.
*/

import fs from 'node:fs';
import path from 'node:path';
import { $chalk } from '../../../../../node_modules/@clevercanyon/utilities.node/dist/index.js';
import { $mm, $obj } from '../../../../../node_modules/@clevercanyon/utilities/dist/index.js';
import extensions from '../../../bin/includes/extensions.mjs';
import u from '../../../bin/includes/utilities.mjs';

/**
* Prepares `./index.html` build-related tag updates.
*
* @param props Props from vite config file driver.
*
* @returns Build-related property updates.
*/
export default async ({ command, isSSRBuild, projDir, appType, appEntries }) => {
const updates = {}; // Initialize.

if (!isSSRBuild && 'build' === command /* Only when building the app. */) {
u.log($chalk.gray('Updating `baseURL` in `./index.html`.'));
await u.updatePkg({ $set: { type: updates.type, sideEffects: updates.sideEffects } });
}
return updates;
};
Loading

0 comments on commit 8994536

Please sign in to comment.