Skip to content

Commit

Permalink
Upgrade vanguarde deps (#22)
Browse files Browse the repository at this point in the history
* Upgrade to Node 18

* Apply non-breaking audit fix

* Markup webpack TODOs

* Remove unreferenced deps and locate ones requiring updates

* Finish with deps cleanup and markup

* Bump dotenvs and update all minor versions

* Provide dev debug scenario

* Refresh store mgmt and related packages

* Repair test script

* Clean-up already covered TODO
  • Loading branch information
kostmetallist authored Feb 21, 2024
1 parent c12acd0 commit 970b14f
Show file tree
Hide file tree
Showing 8 changed files with 1,902 additions and 4,962 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Vanguarde (DEV)",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\vanguarde\\scripts\\start.js",
"cwd": "${workspaceFolder}\\vanguarde"
}
]
}
14 changes: 9 additions & 5 deletions vanguarde/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ const dotenvFiles = [
// https://github.com/motdotla/dotenv-expand
dotenvFiles.forEach(dotenvFile => {
if (fs.existsSync(dotenvFile)) {
require('dotenv-expand')(
require('dotenv').config({
path: dotenvFile,
})
);

const environment = require('dotenv').config({
path: dotenvFile,
});

const dotenvExpand = require('dotenv-expand');
if (dotenvExpand && dotenvExpand.expand) {
dotenvExpand.expand(environment);
}
}
});

Expand Down
2 changes: 1 addition & 1 deletion vanguarde/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ module.exports = function (webpackEnv) {
// match the requirements. When no loader matches it will fall
// back to the "file" loader at the end of the loader list.
oneOf: [
// TODO: Merge this config once `image/avif` is in the mime-db
// TODO: Merge this config once `image/avif` is in the mime-db (upstream issue)
// https://github.com/jshttp/mime-db
{
test: [/\.avif$/],
Expand Down
Loading

0 comments on commit 970b14f

Please sign in to comment.