gatsby-theme-q3 2.3.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/helpers/setup.js +18 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.3.8](https://github.com/3merge/q/compare/v2.3.7...v2.3.8) (2022-01-10)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package gatsby-theme-q3
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
## [2.3.7](https://github.com/3merge/q/compare/v2.3.6...v2.3.7) (2021-12-16)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package gatsby-theme-q3
|
package/helpers/setup.js
CHANGED
@@ -4,17 +4,25 @@ const { compact, get } = require('lodash');
|
|
4
4
|
const loadContent = require('./loadContent');
|
5
5
|
const loadTheme = require('./loadTheme');
|
6
6
|
|
7
|
-
const getFile =
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
const getFile =
|
8
|
+
(directory) =>
|
9
|
+
(possibleFileNames = []) =>
|
10
|
+
possibleFileNames.reduce((acc, curr) => {
|
11
|
+
if (acc) return acc;
|
12
|
+
const filename = path.resolve(directory, curr);
|
13
|
+
return fs.existsSync(filename) ? filename : undefined;
|
14
|
+
}, undefined);
|
13
15
|
|
14
|
-
module.exports = (
|
15
|
-
|
16
|
+
module.exports = (
|
17
|
+
siteMetadata,
|
18
|
+
plugins = [],
|
19
|
+
workingDirection = process.cwd(),
|
20
|
+
) => {
|
21
|
+
const f = getFile(workingDirection);
|
22
|
+
|
23
|
+
const locale = loadContent(f(['locale', 'lang']));
|
16
24
|
const theme = loadTheme(
|
17
|
-
|
25
|
+
f(['theme.js', 'gatsby-theme.js', 'mui.js']),
|
18
26
|
);
|
19
27
|
|
20
28
|
return {
|
@@ -30,7 +38,7 @@ module.exports = (siteMetadata, plugins = []) => {
|
|
30
38
|
{
|
31
39
|
resolve: 'gatsby-theme-q3',
|
32
40
|
options: {
|
33
|
-
icon:
|
41
|
+
icon: f([
|
34
42
|
'static/favicon.png',
|
35
43
|
'static/favicon.jpg',
|
36
44
|
]),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-theme-q3",
|
3
|
-
"version": "2.3.
|
3
|
+
"version": "2.3.8",
|
4
4
|
"main": "index.js",
|
5
5
|
"license": "MIT",
|
6
6
|
"peerDependencies": {
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"transform-loader": "^0.2.4",
|
43
43
|
"yarn": "^1.22.17"
|
44
44
|
},
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "10440b3c1da79868be52f4c5d7d403588476174d"
|
46
46
|
}
|