@frontman-ai/astro 0.1.0 → 0.1.2
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/dist/cli.js
CHANGED
|
@@ -220,7 +220,7 @@ export const onRequest = defineMiddleware(async (context, next) => {
|
|
|
220
220
|
function configTemplate(host) {
|
|
221
221
|
return `import { defineConfig } from 'astro/config';
|
|
222
222
|
import node from '@astrojs/node';
|
|
223
|
-
import { frontmanIntegration } from '@frontman-ai/astro
|
|
223
|
+
import { frontmanIntegration } from '@frontman-ai/astro';
|
|
224
224
|
|
|
225
225
|
const isProd = process.env.NODE_ENV === 'production';
|
|
226
226
|
|
|
@@ -239,7 +239,7 @@ function config(fileName, _host) {
|
|
|
239
239
|
` + bar + ` ` + purple("1.") + ` Add imports at the top of the file:
|
|
240
240
|
` + bar + `
|
|
241
241
|
` + bar + ` ` + dim("import node from '@astrojs/node';") + `
|
|
242
|
-
` + bar + ` ` + dim("import { frontmanIntegration } from '@frontman-ai/astro
|
|
242
|
+
` + bar + ` ` + dim("import { frontmanIntegration } from '@frontman-ai/astro';") + `
|
|
243
243
|
` + bar + `
|
|
244
244
|
` + bar + ` ` + purple("2.") + ` Add SSR config for dev mode ` + dim("(needed for middleware routes)") + `:
|
|
245
245
|
` + bar + `
|
|
@@ -296,7 +296,7 @@ Add the following to your ` + fileName + `:
|
|
|
296
296
|
1. Add imports at the top of the file:
|
|
297
297
|
|
|
298
298
|
import node from '@astrojs/node';
|
|
299
|
-
import { frontmanIntegration } from '@frontman-ai/astro
|
|
299
|
+
import { frontmanIntegration } from '@frontman-ai/astro';
|
|
300
300
|
|
|
301
301
|
2. Add SSR config for dev mode (needed for middleware routes):
|
|
302
302
|
|
|
@@ -409,7 +409,7 @@ function buildSystemPrompt(fileType, host) {
|
|
|
409
409
|
ErrorMessages.configManualSetup("astro.config.mjs", host),
|
|
410
410
|
configTemplate(),
|
|
411
411
|
`- Add the import for '@astrojs/node' at the top of the file
|
|
412
|
-
- Add the import for '@frontman-ai/astro
|
|
412
|
+
- Add the import for '@frontman-ai/astro' (frontmanIntegration) at the top of the file
|
|
413
413
|
- Add frontmanIntegration() to the integrations array
|
|
414
414
|
- Add SSR dev mode config: ...(isProd ? {} : { output: 'server', adapter: node({ mode: 'standalone' }) })
|
|
415
415
|
- Add const isProd = process.env.NODE_ENV === 'production'; before defineConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontman-ai/astro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Astro integration for Frontman",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Frontman AI",
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"build:cli": "tsup",
|
|
48
48
|
"prepublishOnly": "yarn build && yarn build:cli"
|
|
49
49
|
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@rescript/runtime": "12.0.0-beta.14"
|
|
52
|
+
},
|
|
50
53
|
"peerDependencies": {
|
|
51
54
|
"astro": "^5.0.0"
|
|
52
55
|
},
|
|
@@ -28,7 +28,7 @@ let buildSystemPrompt = (~fileType: fileType, ~host: string): string => {
|
|
|
28
28
|
Templates.ErrorMessages.configManualSetup("astro.config.mjs", host),
|
|
29
29
|
Templates.configTemplate(host),
|
|
30
30
|
`- Add the import for '@astrojs/node' at the top of the file
|
|
31
|
-
- Add the import for '@frontman-ai/astro
|
|
31
|
+
- Add the import for '@frontman-ai/astro' (frontmanIntegration) at the top of the file
|
|
32
32
|
- Add frontmanIntegration() to the integrations array
|
|
33
33
|
- Add SSR dev mode config: ...(isProd ? {} : { output: 'server', adapter: node({ mode: 'standalone' }) })
|
|
34
34
|
- Add const isProd = process.env.NODE_ENV === 'production'; before defineConfig
|
|
@@ -23,7 +23,7 @@ function buildSystemPrompt(fileType, host) {
|
|
|
23
23
|
FrontmanAstro__Cli__Templates$FrontmanAiAstro.ErrorMessages.configManualSetup("astro.config.mjs", host),
|
|
24
24
|
FrontmanAstro__Cli__Templates$FrontmanAiAstro.configTemplate(host),
|
|
25
25
|
`- Add the import for '@astrojs/node' at the top of the file
|
|
26
|
-
- Add the import for '@frontman-ai/astro
|
|
26
|
+
- Add the import for '@frontman-ai/astro' (frontmanIntegration) at the top of the file
|
|
27
27
|
- Add frontmanIntegration() to the integrations array
|
|
28
28
|
- Add SSR dev mode config: ...(isProd ? {} : { output: 'server', adapter: node({ mode: 'standalone' }) })
|
|
29
29
|
- Add const isProd = process.env.NODE_ENV === 'production'; before defineConfig
|
|
@@ -40,7 +40,7 @@ let configTemplate = (host: string) => {
|
|
|
40
40
|
ignore(host)
|
|
41
41
|
`import { defineConfig } from 'astro/config';
|
|
42
42
|
import node from '@astrojs/node';
|
|
43
|
-
import { frontmanIntegration } from '@frontman-ai/astro
|
|
43
|
+
import { frontmanIntegration } from '@frontman-ai/astro';
|
|
44
44
|
|
|
45
45
|
const isProd = process.env.NODE_ENV === 'production';
|
|
46
46
|
|
|
@@ -67,7 +67,7 @@ module ManualInstructions = {
|
|
|
67
67
|
${bar} ${s("1.")} Add imports at the top of the file:
|
|
68
68
|
${bar}
|
|
69
69
|
${bar} ${d("import node from '@astrojs/node';")}
|
|
70
|
-
${bar} ${d("import { frontmanIntegration } from '@frontman-ai/astro
|
|
70
|
+
${bar} ${d("import { frontmanIntegration } from '@frontman-ai/astro';")}
|
|
71
71
|
${bar}
|
|
72
72
|
${bar} ${s("2.")} Add SSR config for dev mode ${d("(needed for middleware routes)")}:
|
|
73
73
|
${bar}
|
|
@@ -130,7 +130,7 @@ Add the following to your ${fileName}:
|
|
|
130
130
|
1. Add imports at the top of the file:
|
|
131
131
|
|
|
132
132
|
import node from '@astrojs/node';
|
|
133
|
-
import { frontmanIntegration } from '@frontman-ai/astro
|
|
133
|
+
import { frontmanIntegration } from '@frontman-ai/astro';
|
|
134
134
|
|
|
135
135
|
2. Add SSR config for dev mode (needed for middleware routes):
|
|
136
136
|
|
|
@@ -34,7 +34,7 @@ export const onRequest = defineMiddleware(async (context, next) => {
|
|
|
34
34
|
function configTemplate(host) {
|
|
35
35
|
return `import { defineConfig } from 'astro/config';
|
|
36
36
|
import node from '@astrojs/node';
|
|
37
|
-
import { frontmanIntegration } from '@frontman-ai/astro
|
|
37
|
+
import { frontmanIntegration } from '@frontman-ai/astro';
|
|
38
38
|
|
|
39
39
|
const isProd = process.env.NODE_ENV === 'production';
|
|
40
40
|
|
|
@@ -54,7 +54,7 @@ function config(fileName, _host) {
|
|
|
54
54
|
` + bar + ` ` + FrontmanAstro__Cli__Style$FrontmanAiAstro.purple("1.") + ` Add imports at the top of the file:
|
|
55
55
|
` + bar + `
|
|
56
56
|
` + bar + ` ` + FrontmanAstro__Cli__Style$FrontmanAiAstro.dim("import node from '@astrojs/node';") + `
|
|
57
|
-
` + bar + ` ` + FrontmanAstro__Cli__Style$FrontmanAiAstro.dim("import { frontmanIntegration } from '@frontman-ai/astro
|
|
57
|
+
` + bar + ` ` + FrontmanAstro__Cli__Style$FrontmanAiAstro.dim("import { frontmanIntegration } from '@frontman-ai/astro';") + `
|
|
58
58
|
` + bar + `
|
|
59
59
|
` + bar + ` ` + FrontmanAstro__Cli__Style$FrontmanAiAstro.purple("2.") + ` Add SSR config for dev mode ` + FrontmanAstro__Cli__Style$FrontmanAiAstro.dim("(needed for middleware routes)") + `:
|
|
60
60
|
` + bar + `
|
|
@@ -114,7 +114,7 @@ Add the following to your ` + fileName + `:
|
|
|
114
114
|
1. Add imports at the top of the file:
|
|
115
115
|
|
|
116
116
|
import node from '@astrojs/node';
|
|
117
|
-
import { frontmanIntegration } from '@frontman-ai/astro
|
|
117
|
+
import { frontmanIntegration } from '@frontman-ai/astro';
|
|
118
118
|
|
|
119
119
|
2. Add SSR config for dev mode (needed for middleware routes):
|
|
120
120
|
|