@cedarjs/cli 4.0.0-canary.13776 → 4.0.0-canary.13779
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/commands/build/buildHandler.js +12 -0
- package/dist/commands/dev/devHandler.js +9 -0
- package/dist/commands/setup/cache/cacheHandler.js +2 -1
- package/dist/commands/setup/i18n/i18nHandler.js +2 -1
- package/dist/commands/setup/jobs/jobsHandler.js +2 -1
- package/dist/commands/setup/tsconfig/tsconfigHandler.js +2 -1
- package/dist/commands/setup/uploads/uploadsHandler.js +2 -1
- package/package.json +12 -12
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import { runBin } from "@cedarjs/cli-helpers/packageManager/exec";
|
|
13
13
|
import { buildApi, cleanApiBuild } from "@cedarjs/internal/dist/build/api";
|
|
14
14
|
import { generate } from "@cedarjs/internal/dist/generate/generate";
|
|
15
|
+
import { generateGqlormArtifacts } from "@cedarjs/internal/dist/generate/gqlormSchema";
|
|
15
16
|
import { loadAndValidateSdls } from "@cedarjs/internal/dist/validateSchema";
|
|
16
17
|
import { detectPrerenderRoutes } from "@cedarjs/prerender/detection";
|
|
17
18
|
import {} from "@cedarjs/project-config";
|
|
@@ -142,6 +143,17 @@ Run ` + c.info(formatCedarCommand(["build"])) + " (without specifying a workspac
|
|
|
142
143
|
title: gqlFeaturesTaskTitle,
|
|
143
144
|
task: generate
|
|
144
145
|
},
|
|
146
|
+
workspace.includes("web") && {
|
|
147
|
+
title: "Generating gqlorm schema...",
|
|
148
|
+
task: async () => {
|
|
149
|
+
const { errors } = await generateGqlormArtifacts();
|
|
150
|
+
if (errors.length > 0) {
|
|
151
|
+
for (const { message } of errors) {
|
|
152
|
+
console.warn(`Warning: ${message}`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
145
157
|
workspace.includes("api") && {
|
|
146
158
|
title: "Verifying graphql schema...",
|
|
147
159
|
task: loadAndValidateSdls
|
|
@@ -4,6 +4,7 @@ import { Writable } from "node:stream";
|
|
|
4
4
|
import concurrently from "concurrently";
|
|
5
5
|
import { recordTelemetryAttributes, colors as c } from "@cedarjs/cli-helpers";
|
|
6
6
|
import { shutdownPort } from "@cedarjs/internal/dist/dev";
|
|
7
|
+
import { generateGqlormArtifacts } from "@cedarjs/internal/dist/generate/gqlormSchema";
|
|
7
8
|
import { getConfig, getConfigPath } from "@cedarjs/project-config";
|
|
8
9
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
9
10
|
import { exitWithError } from "../../lib/exit.js";
|
|
@@ -111,6 +112,14 @@ const handler = async ({
|
|
|
111
112
|
);
|
|
112
113
|
}
|
|
113
114
|
}
|
|
115
|
+
if (generate && workspace.includes("web")) {
|
|
116
|
+
try {
|
|
117
|
+
await generateGqlormArtifacts();
|
|
118
|
+
} catch (e) {
|
|
119
|
+
const message = getErrorMessage(e);
|
|
120
|
+
console.error(c.error(`Error generating gqlorm schema: ${message}`));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
114
123
|
const cedarConfigPath = getConfigPath();
|
|
115
124
|
const streamingSsrEnabled = getConfig().experimental?.streamingSsr?.enabled;
|
|
116
125
|
process.env.VITE_CJS_IGNORE_WARNING = "true";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
|
+
import { terminalLink } from "termi-link";
|
|
4
5
|
import { addEnvVarTask, colors as c } from "@cedarjs/cli-helpers";
|
|
5
6
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
6
7
|
import { addPackagesTask, getPaths, writeFile } from "../../../lib/index.js";
|
|
@@ -50,7 +51,7 @@ const handler = async ({ client, force }) => {
|
|
|
50
51
|
task.title = `One more thing...
|
|
51
52
|
|
|
52
53
|
${c.tip("Check out the Service Cache docs for config and usage:")}
|
|
53
|
-
${
|
|
54
|
+
${terminalLink("", "https://cedarjs.com/docs/services#caching")}
|
|
54
55
|
`;
|
|
55
56
|
}
|
|
56
57
|
}
|
|
@@ -2,6 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "path";
|
|
3
3
|
import execa from "execa";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
|
+
import { terminalLink } from "termi-link";
|
|
5
6
|
import { colors as c } from "@cedarjs/cli-helpers";
|
|
6
7
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
7
8
|
import extendStorybookConfiguration from "../../../lib/configureStorybook.js";
|
|
@@ -149,7 +150,7 @@ const handler = async ({ force }) => {
|
|
|
149
150
|
|
|
150
151
|
${c.tip("Quick link to the docs:")}
|
|
151
152
|
|
|
152
|
-
${
|
|
153
|
+
${terminalLink("react-i18next quick start guide", "https://react.i18next.com/guides/quick-start/")}
|
|
153
154
|
`;
|
|
154
155
|
}
|
|
155
156
|
}
|
|
@@ -2,6 +2,7 @@ import * as fs from "node:fs";
|
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import prismaInternals from "@prisma/internals";
|
|
4
4
|
import { Listr } from "listr2";
|
|
5
|
+
import { terminalLink } from "termi-link";
|
|
5
6
|
import { addApiPackages, colors as c } from "@cedarjs/cli-helpers";
|
|
6
7
|
import { getSchemaPath, getPrismaSchemas } from "@cedarjs/project-config";
|
|
7
8
|
import { getPaths, transformTSToJS, writeFile } from "../../../lib/index.js";
|
|
@@ -102,7 +103,7 @@ const tasks = async ({ force }) => {
|
|
|
102
103
|
Execute jobs with: ${c.highlight("yarn cedar jobs work\n")}
|
|
103
104
|
|
|
104
105
|
Check out the docs for more info:
|
|
105
|
-
${
|
|
106
|
+
${terminalLink("", "https://cedarjs.com/docs/background-jobs")}
|
|
106
107
|
|
|
107
108
|
`;
|
|
108
109
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { Listr } from "listr2";
|
|
3
|
+
import { terminalLink } from "termi-link";
|
|
3
4
|
import { colors as c } from "@cedarjs/cli-helpers";
|
|
4
5
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
5
6
|
import {
|
|
@@ -39,7 +40,7 @@ const handler = async ({ force }) => {
|
|
|
39
40
|
task.title = `One more thing...
|
|
40
41
|
|
|
41
42
|
${c.tip("Quick link to the docs on configuring TypeScript")}
|
|
42
|
-
${
|
|
43
|
+
${terminalLink("", "https://cedarjs.com/docs/typescript")}
|
|
43
44
|
`;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -2,6 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { Listr } from "listr2";
|
|
4
4
|
import { format } from "prettier";
|
|
5
|
+
import { terminalLink } from "termi-link";
|
|
5
6
|
import {
|
|
6
7
|
addApiPackages,
|
|
7
8
|
getPrettierOptions,
|
|
@@ -126,7 +127,7 @@ const handler = async ({ force }) => {
|
|
|
126
127
|
Remember to add UPLOADS_SECRET to your .env file. You can generate one with ${c.highlight("yarn cedar generate secret")}
|
|
127
128
|
|
|
128
129
|
Check out the docs for more info:
|
|
129
|
-
${
|
|
130
|
+
${terminalLink("", "https://cedarjs.com/docs/uploads")}
|
|
130
131
|
|
|
131
132
|
`;
|
|
132
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13779+0c5740a9f",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/parser": "7.29.2",
|
|
35
35
|
"@babel/preset-typescript": "7.28.5",
|
|
36
|
-
"@cedarjs/api-server": "4.0.0-canary.
|
|
37
|
-
"@cedarjs/cli-helpers": "4.0.0-canary.
|
|
38
|
-
"@cedarjs/fastify-web": "4.0.0-canary.
|
|
39
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
40
|
-
"@cedarjs/prerender": "4.0.0-canary.
|
|
41
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
42
|
-
"@cedarjs/structure": "4.0.0-canary.
|
|
43
|
-
"@cedarjs/telemetry": "4.0.0-canary.
|
|
44
|
-
"@cedarjs/utils": "4.0.0-canary.
|
|
45
|
-
"@cedarjs/web-server": "4.0.0-canary.
|
|
36
|
+
"@cedarjs/api-server": "4.0.0-canary.13779",
|
|
37
|
+
"@cedarjs/cli-helpers": "4.0.0-canary.13779",
|
|
38
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13779",
|
|
39
|
+
"@cedarjs/internal": "4.0.0-canary.13779",
|
|
40
|
+
"@cedarjs/prerender": "4.0.0-canary.13779",
|
|
41
|
+
"@cedarjs/project-config": "4.0.0-canary.13779",
|
|
42
|
+
"@cedarjs/structure": "4.0.0-canary.13779",
|
|
43
|
+
"@cedarjs/telemetry": "4.0.0-canary.13779",
|
|
44
|
+
"@cedarjs/utils": "4.0.0-canary.13779",
|
|
45
|
+
"@cedarjs/web-server": "4.0.0-canary.13779",
|
|
46
46
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "0c5740a9f02db6aa1583c5d8212702deb910d175"
|
|
112
112
|
}
|