Chore: Upgrade to AIK
& Massive Overhaul to internal processing #78
|
@ -70,12 +70,12 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/rss": "^4.0.5",
|
"@astrojs/rss": "^4.0.5",
|
||||||
"@astrojs/sitemap": "^3.0.5",
|
"@astrojs/sitemap": "^3.1.1",
|
||||||
"@matthiesenxyz/astro-ghostcms-theme-default": "^0.1.13",
|
"@matthiesenxyz/astro-ghostcms-theme-default": "^0.1.13",
|
||||||
"@resvg/resvg-js": "^2.6.0",
|
"@resvg/resvg-js": "^2.6.0",
|
||||||
"@ts-ghost/core-api": "^6.0.0",
|
"@ts-ghost/core-api": "^6.0.0",
|
||||||
"@ts-ghost/content-api": "^4.0.12",
|
"@ts-ghost/content-api": "^4.0.12",
|
||||||
"astro-integration-kit": "^0.5.0",
|
"astro-integration-kit": "^0.5.1",
|
||||||
"astro-robots-txt": "^1.0.0",
|
"astro-robots-txt": "^1.0.0",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"package-json": "^10.0.0",
|
"package-json": "^10.0.0",
|
||||||
|
|
|
@ -200,6 +200,7 @@ export default defineIntegration({
|
||||||
|
|||||||
"@astrojs/sitemap",
|
"@astrojs/sitemap",
|
||||||
sitemap(options.Integrations?.sitemap)
|
sitemap(options.Integrations?.sitemap)
|
||||||
);
|
);
|
||||||
|
|
||||||
![]()
```suggestion
} else if (verbose) {
GhostIntegrationLogger.info(c.gray("Theme Provider is disabled"));
}
```
![]() same here same here
![]() same here same here
![]() same here same here
![]() is there a reason for not importing it at the top of the file? if yes, I think you can use is there a reason for not importing it at the top of the file? if yes, I think you can use `resolve` from `createResolver` for the path
![]() This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D
![]() ah this pulls the version from the user's project? ah this pulls the version from the user's project?
![]() I ALWAYS FORGET YOU CAN DO I ALWAYS FORGET YOU CAN DO `else if` vscode should complain if you do an `else { if()` lol
![]() i think if you have eslint you can enable such a rule i think if you have eslint you can enable such a rule
![]() grabs the current installed one from grabs the current installed one from `astro-ghostcms` local version and compares to the latestversion from NPM :P I did actually try to use the `resolve()` util but that just grabbed the playgrounds package.json ironically...
![]() Instead of all these manual checks for
Or could be a Florian special and return a console log function:
Instead of all these manual checks for `verbose` you'd probably be better off with a util function which checks it instead.
```ts
const log = message => {
if (verbose) {
console.log(...)
}
}
```
Or could be a Florian special and return a console log function:
```ts
const createLogger = verbose => message => {
if (verbose) {
console.log(...)
}
}
const log = createLogger(options.verbose)
log(whatever) // now you don't have to check everywhere
```
![]() added in new commit, since im not using console.log had to modify it for my usage a little added in new commit, since im not using console.log had to modify it for my usage a little
![]() Okay i fixed that issue. Now using Okay i fixed that issue. Now using `resolve()` properly 😄
![]() This logging function could also be extracted
This logging function could also be extracted
```ts
const formattedMessage = message => `${c.bold(c.blue("👻 Astro-GhostCMS"))}${c.gray("/")}${c.blue(message)}`
```
![]() Updated...
Updated...
```ts
// Configure Loggers
const GhostLogger = logger.fork(c.bold(c.blue("👻 Astro-GhostCMS")));
const loggerTagged = (message: string) => {
return logger.fork(`${c.bold(c.blue("👻 Astro-GhostCMS"))}${c.gray("/")}${c.blue(message)}`)
}
// Configure ENV Logger
const GhostENVLogger = loggerTagged("ENV Check");
// Configure Integration Loggers & verbose logging
const GhostIntegrationLogger = loggerTagged("Integrations");
// Configure Route Logger & verbose logging
const GhostRouteLogger = loggerTagged("Router");
```
|
|||||||
checkIntegration(
|
checkIntegration(
|
||||||
"astro-robots-txt",
|
"astro-robots-txt",
|
||||||
robotsTxt(options.Integrations?.robotsTxt)
|
robotsTxt(options.Integrations?.robotsTxt)
|
||||||
|
|
||||||
![]()
```suggestion
} else if (verbose) {
GhostIntegrationLogger.info(c.gray("Theme Provider is disabled"));
}
```
![]()
```suggestion
} else if (verbose) {
GhostIntegrationLogger.info(c.gray("Theme Provider is disabled"));
}
```
![]() same here same here
![]() same here same here
![]() same here same here
![]() same here same here
![]() same here same here
![]() same here same here
![]() is there a reason for not importing it at the top of the file? if yes, I think you can use is there a reason for not importing it at the top of the file? if yes, I think you can use `resolve` from `createResolver` for the path
![]() is there a reason for not importing it at the top of the file? if yes, I think you can use is there a reason for not importing it at the top of the file? if yes, I think you can use `resolve` from `createResolver` for the path
![]() This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D
![]() This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D
![]() ah this pulls the version from the user's project? ah this pulls the version from the user's project?
![]() ah this pulls the version from the user's project? ah this pulls the version from the user's project?
![]() I ALWAYS FORGET YOU CAN DO I ALWAYS FORGET YOU CAN DO `else if` vscode should complain if you do an `else { if()` lol
![]() I ALWAYS FORGET YOU CAN DO I ALWAYS FORGET YOU CAN DO `else if` vscode should complain if you do an `else { if()` lol
![]() i think if you have eslint you can enable such a rule i think if you have eslint you can enable such a rule
![]() i think if you have eslint you can enable such a rule i think if you have eslint you can enable such a rule
![]() grabs the current installed one from grabs the current installed one from `astro-ghostcms` local version and compares to the latestversion from NPM :P I did actually try to use the `resolve()` util but that just grabbed the playgrounds package.json ironically...
![]() grabs the current installed one from grabs the current installed one from `astro-ghostcms` local version and compares to the latestversion from NPM :P I did actually try to use the `resolve()` util but that just grabbed the playgrounds package.json ironically...
![]() Instead of all these manual checks for
Or could be a Florian special and return a console log function:
Instead of all these manual checks for `verbose` you'd probably be better off with a util function which checks it instead.
```ts
const log = message => {
if (verbose) {
console.log(...)
}
}
```
Or could be a Florian special and return a console log function:
```ts
const createLogger = verbose => message => {
if (verbose) {
console.log(...)
}
}
const log = createLogger(options.verbose)
log(whatever) // now you don't have to check everywhere
```
![]() Instead of all these manual checks for
Or could be a Florian special and return a console log function:
Instead of all these manual checks for `verbose` you'd probably be better off with a util function which checks it instead.
```ts
const log = message => {
if (verbose) {
console.log(...)
}
}
```
Or could be a Florian special and return a console log function:
```ts
const createLogger = verbose => message => {
if (verbose) {
console.log(...)
}
}
const log = createLogger(options.verbose)
log(whatever) // now you don't have to check everywhere
```
![]() added in new commit, since im not using console.log had to modify it for my usage a little added in new commit, since im not using console.log had to modify it for my usage a little
![]() added in new commit, since im not using console.log had to modify it for my usage a little added in new commit, since im not using console.log had to modify it for my usage a little
![]() Okay i fixed that issue. Now using Okay i fixed that issue. Now using `resolve()` properly 😄
![]() Okay i fixed that issue. Now using Okay i fixed that issue. Now using `resolve()` properly 😄
![]() This logging function could also be extracted
This logging function could also be extracted
```ts
const formattedMessage = message => `${c.bold(c.blue("👻 Astro-GhostCMS"))}${c.gray("/")}${c.blue(message)}`
```
![]() This logging function could also be extracted
This logging function could also be extracted
```ts
const formattedMessage = message => `${c.bold(c.blue("👻 Astro-GhostCMS"))}${c.gray("/")}${c.blue(message)}`
```
![]() Updated...
Updated...
```ts
// Configure Loggers
const GhostLogger = logger.fork(c.bold(c.blue("👻 Astro-GhostCMS")));
const loggerTagged = (message: string) => {
return logger.fork(`${c.bold(c.blue("👻 Astro-GhostCMS"))}${c.gray("/")}${c.blue(message)}`)
}
// Configure ENV Logger
const GhostENVLogger = loggerTagged("ENV Check");
// Configure Integration Loggers & verbose logging
const GhostIntegrationLogger = loggerTagged("Integrations");
// Configure Route Logger & verbose logging
const GhostRouteLogger = loggerTagged("Router");
```
![]() Updated...
Updated...
```ts
// Configure Loggers
const GhostLogger = logger.fork(c.bold(c.blue("👻 Astro-GhostCMS")));
const loggerTagged = (message: string) => {
return logger.fork(`${c.bold(c.blue("👻 Astro-GhostCMS"))}${c.gray("/")}${c.blue(message)}`)
}
// Configure ENV Logger
const GhostENVLogger = loggerTagged("ENV Check");
// Configure Integration Loggers & verbose logging
const GhostIntegrationLogger = loggerTagged("Integrations");
// Configure Route Logger & verbose logging
const GhostRouteLogger = loggerTagged("Router");
```
|
|
@ -30,8 +30,8 @@ importers:
|
||||||
specifier: ^4.0.5
|
specifier: ^4.0.5
|
||||||
version: 4.0.5
|
version: 4.0.5
|
||||||
'@astrojs/sitemap':
|
'@astrojs/sitemap':
|
||||||
specifier: ^3.0.5
|
specifier: ^3.1.1
|
||||||
version: 3.0.5
|
version: 3.1.1
|
||||||
'@matthiesenxyz/astro-ghostcms-theme-default':
|
'@matthiesenxyz/astro-ghostcms-theme-default':
|
||||||
specifier: ^0.1.13
|
specifier: ^0.1.13
|
||||||
version: link:../astro-ghostcms-theme-default
|
version: link:../astro-ghostcms-theme-default
|
||||||
|
@ -48,8 +48,8 @@ importers:
|
||||||
specifier: '>=4.4.1'
|
specifier: '>=4.4.1'
|
||||||
version: 4.4.9(@types/node@20.11.24)
|
version: 4.4.9(@types/node@20.11.24)
|
||||||
astro-integration-kit:
|
astro-integration-kit:
|
||||||
specifier: ^0.5.0
|
specifier: ^0.5.1
|
||||||
version: 0.5.0(astro@4.4.9)
|
version: 0.5.1(astro@4.4.9)
|
||||||
astro-robots-txt:
|
astro-robots-txt:
|
||||||
specifier: ^1.0.0
|
specifier: ^1.0.0
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
@ -464,8 +464,8 @@ packages:
|
||||||
kleur: 4.1.5
|
kleur: 4.1.5
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/sitemap@3.0.5:
|
/@astrojs/sitemap@3.1.1:
|
||||||
resolution: {integrity: sha512-60eLzNjMza3ABypiQPUC6ElOSZNZeY5CwSwgJ03hfeonl+Db9x12CCzBFdTw7A5Mq+O54xEZVUrR0tB+yWgX8w==}
|
resolution: {integrity: sha512-qPgdBIcDUaea98mTtLfi5z9oXZpzSjEn/kes70/Ex8FOZZ+DIHVKRYOLOtvy8p+FTXr/9oc7BjmIbTYmYLLJVg==}
|
||||||
dependencies:
|
dependencies:
|
||||||
sitemap: 7.1.1
|
sitemap: 7.1.1
|
||||||
zod: 3.22.4
|
zod: 3.22.4
|
||||||
|
@ -476,7 +476,7 @@ packages:
|
||||||
astro: ^4.2.7
|
astro: ^4.2.7
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/mdx': 2.1.1(astro@4.4.0)
|
'@astrojs/mdx': 2.1.1(astro@4.4.0)
|
||||||
'@astrojs/sitemap': 3.0.5
|
'@astrojs/sitemap': 3.1.1
|
||||||
'@pagefind/default-ui': 1.0.4
|
'@pagefind/default-ui': 1.0.4
|
||||||
'@types/hast': 3.0.4
|
'@types/hast': 3.0.4
|
||||||
'@types/mdast': 4.0.3
|
'@types/mdast': 4.0.3
|
||||||
|
@ -2649,6 +2649,13 @@ packages:
|
||||||
resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
|
resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/ast-types@0.16.1:
|
||||||
|
resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}
|
||||||
|
engines: {node: '>=4'}
|
||||||
|
dependencies:
|
||||||
|
tslib: 2.6.2
|
||||||
|
dev: false
|
||||||
|
|
||||||
/astring@1.8.6:
|
/astring@1.8.6:
|
||||||
resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==}
|
resolution: {integrity: sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -2683,8 +2690,8 @@ packages:
|
||||||
resolution: {integrity: sha512-dh5TX2uxwqdFq15DF9cbRZgEdE9o8q522MP6xZYs+rnd3dexfDsIJMeEIDNVO7rkRxwJ7sphhCqTmdWvUJaiDg==}
|
resolution: {integrity: sha512-dh5TX2uxwqdFq15DF9cbRZgEdE9o8q522MP6xZYs+rnd3dexfDsIJMeEIDNVO7rkRxwJ7sphhCqTmdWvUJaiDg==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/astro-integration-kit@0.5.0(astro@4.4.9):
|
/astro-integration-kit@0.5.1(astro@4.4.9):
|
||||||
resolution: {integrity: sha512-RbviqerotzLoVBGF8L1aFw5jIP40oWKScRXuzJNp399uDnPMPq7/cIh2x3MIS62U17h7o3d0S3kGt/Ael+tj1g==}
|
resolution: {integrity: sha512-ef309UUNOjxUe0jjsDP5O3p+jkt53HAcrKOsWJ2NIgdUTOp5P/YKnAjbatfyu3bAuLFDfj5xhXm/rrwSe9d/hw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@vitejs/plugin-react': ^4.2.1
|
'@vitejs/plugin-react': ^4.2.1
|
||||||
astro: ^4.4.1
|
astro: ^4.4.1
|
||||||
|
@ -2709,6 +2716,7 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: 4.4.9(@types/node@20.11.24)
|
astro: 4.4.9(@types/node@20.11.24)
|
||||||
pathe: 1.1.2
|
pathe: 1.1.2
|
||||||
|
recast: 0.23.5
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/astro-navbar@2.3.1:
|
/astro-navbar@2.3.1:
|
||||||
|
@ -6606,6 +6614,17 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
|
|
||||||
|
/recast@0.23.5:
|
||||||
|
resolution: {integrity: sha512-M67zIddJiwXdfPQRYKJ0qZO1SLdH1I0hYeb0wzxA+pNOvAZiQHulWzuk+fYsEWRQ8VfZrgjyucqsCOtCyM01/A==}
|
||||||
|
engines: {node: '>= 4'}
|
||||||
|
dependencies:
|
||||||
|
ast-types: 0.16.1
|
||||||
|
esprima: 4.0.1
|
||||||
|
source-map: 0.6.1
|
||||||
|
tiny-invariant: 1.3.3
|
||||||
|
tslib: 2.6.2
|
||||||
|
dev: false
|
||||||
|
|
||||||
/redent@3.0.0:
|
/redent@3.0.0:
|
||||||
resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
|
resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
@ -7096,6 +7115,11 @@ packages:
|
||||||
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
|
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
|
/source-map@0.6.1:
|
||||||
|
resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
|
||||||
|
engines: {node: '>=0.10.0'}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/source-map@0.7.4:
|
/source-map@0.7.4:
|
||||||
resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==}
|
resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==}
|
||||||
engines: {node: '>= 8'}
|
engines: {node: '>= 8'}
|
||||||
|
@ -7443,6 +7467,10 @@ packages:
|
||||||
resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==}
|
resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/tiny-invariant@1.3.3:
|
||||||
|
resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
|
||||||
|
dev: false
|
||||||
|
|
||||||
/tinybench@2.6.0:
|
/tinybench@2.6.0:
|
||||||
resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==}
|
resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -7518,7 +7546,6 @@ packages:
|
||||||
|
|
||||||
/tslib@2.6.2:
|
/tslib@2.6.2:
|
||||||
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
|
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
|
||||||
dev: true
|
|
||||||
|
|
||||||
/tty-table@4.2.3:
|
/tty-table@4.2.3:
|
||||||
resolution: {integrity: sha512-Fs15mu0vGzCrj8fmJNP7Ynxt5J7praPXqFN0leZeZBXJwkMxv9cb2D454k1ltrtUSJbZ4yH4e0CynsHLxmUfFA==}
|
resolution: {integrity: sha512-Fs15mu0vGzCrj8fmJNP7Ynxt5J7praPXqFN0leZeZBXJwkMxv9cb2D454k1ltrtUSJbZ4yH4e0CynsHLxmUfFA==}
|
||||||
|
|
same here
same here
same here
same here
same here
same here
is there a reason for not importing it at the top of the file? if yes, I think you can use
resolve
fromcreateResolver
for the pathis there a reason for not importing it at the top of the file? if yes, I think you can use
resolve
fromcreateResolver
for the pathThis is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D
This is simply to display any new version during dev-mode only... There is a check for latest version and it compares the local version :D
ah this pulls the version from the user's project?
ah this pulls the version from the user's project?
I ALWAYS FORGET YOU CAN DO
else if
vscode should complain if you do anelse { if()
lolI ALWAYS FORGET YOU CAN DO
else if
vscode should complain if you do anelse { if()
loli think if you have eslint you can enable such a rule
i think if you have eslint you can enable such a rule
grabs the current installed one from
astro-ghostcms
local version and compares to the latestversion from NPM :P I did actually try to use theresolve()
util but that just grabbed the playgrounds package.json ironically...grabs the current installed one from
astro-ghostcms
local version and compares to the latestversion from NPM :P I did actually try to use theresolve()
util but that just grabbed the playgrounds package.json ironically...Instead of all these manual checks for
verbose
you'd probably be better off with a util function which checks it instead.Or could be a Florian special and return a console log function:
Instead of all these manual checks for
verbose
you'd probably be better off with a util function which checks it instead.Or could be a Florian special and return a console log function:
added in new commit, since im not using console.log had to modify it for my usage a little
added in new commit, since im not using console.log had to modify it for my usage a little
Okay i fixed that issue. Now using
resolve()
properly 😄Okay i fixed that issue. Now using
resolve()
properly 😄This logging function could also be extracted
This logging function could also be extracted
Updated...
Updated...