ultimate-jekyll-manager 0.0.229 → 0.0.231
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/CLAUDE.md
CHANGED
|
@@ -26,6 +26,16 @@ Ultimate Jekyll Manager is a template framework that consuming projects install
|
|
|
26
26
|
|
|
27
27
|
The local development server URL is stored in `.temp/_config_browsersync.yml` in the consuming project's root directory. Read this file to determine the correct URL for browsing and testing. By default, use "https://192.168.86.69:4000".
|
|
28
28
|
|
|
29
|
+
### Connecting to Local Firebase Emulators
|
|
30
|
+
|
|
31
|
+
Set the `FIREBASE_EMULATOR_CONNECT` environment variable to `true` to connect the frontend to local Firebase services (Auth, Firestore, Functions, etc.):
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
FIREBASE_EMULATOR_CONNECT=true npm start
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This value is written to `.temp/_config_browsersync.yml` under `web_manager.env.FIREBASE_EMULATOR_CONNECT` and made available to the frontend at build time.
|
|
38
|
+
|
|
29
39
|
## Asset Organization
|
|
30
40
|
|
|
31
41
|
### Ultimate Jekyll Manager Files (THIS project)
|
|
@@ -112,8 +112,8 @@ function redirect(url, returnUrl) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// Add authReturnUrl to all signup/signin links so users return to the current page after auth
|
|
115
|
+
// Uses click handler so the return URL always reflects the *current* location (e.g. after chat ID is added)
|
|
115
116
|
function updateAuthLinks() {
|
|
116
|
-
const currentUrl = window.location.href;
|
|
117
117
|
const authPaths = ['/signin', '/signup'];
|
|
118
118
|
|
|
119
119
|
document.querySelectorAll('a[href]').forEach(($link) => {
|
|
@@ -122,8 +122,11 @@ function updateAuthLinks() {
|
|
|
122
122
|
|
|
123
123
|
if (!authPaths.includes(href.pathname)) { return; }
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
$link.addEventListener('click', (e) => {
|
|
126
|
+
const url = new URL($link.href, window.location.origin);
|
|
127
|
+
url.searchParams.set('authReturnUrl', window.location.href);
|
|
128
|
+
$link.href = url.toString();
|
|
129
|
+
});
|
|
127
130
|
} catch (e) {}
|
|
128
131
|
});
|
|
129
132
|
}
|
package/dist/gulp/tasks/serve.js
CHANGED
|
@@ -69,7 +69,13 @@ module.exports = async function serve(complete) {
|
|
|
69
69
|
externalUrl = instance.options.get('urls').get('external');
|
|
70
70
|
|
|
71
71
|
// Write the config file
|
|
72
|
-
jetpack.write('.temp/_config_browsersync.yml',
|
|
72
|
+
jetpack.write('.temp/_config_browsersync.yml', [
|
|
73
|
+
`url: ${externalUrl}`,
|
|
74
|
+
'',
|
|
75
|
+
'web_manager:',
|
|
76
|
+
' env:',
|
|
77
|
+
` FIREBASE_EMULATOR_CONNECT: ${process.env.FIREBASE_EMULATOR_CONNECT === 'true'}`,
|
|
78
|
+
].join('\n'));
|
|
73
79
|
// jetpack.write('.temp/_config_browsersync.yml', `
|
|
74
80
|
// url: ${externalUrl}
|
|
75
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultimate-jekyll-manager",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.231",
|
|
4
4
|
"description": "Ultimate Jekyll dependency manager",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"sass": "^1.97.3",
|
|
100
100
|
"spellchecker": "^3.7.1",
|
|
101
101
|
"through2": "^4.0.2",
|
|
102
|
-
"web-manager": "^4.1.
|
|
102
|
+
"web-manager": "^4.1.7",
|
|
103
103
|
"webpack": "^5.104.1",
|
|
104
104
|
"wonderful-fetch": "^1.3.4",
|
|
105
105
|
"wonderful-version": "^1.3.2",
|