veryfront 0.1.1016 → 0.1.1018
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/esm/cli/commands/init/config-generator.d.ts +2 -0
- package/esm/cli/commands/init/config-generator.d.ts.map +1 -1
- package/esm/cli/commands/init/config-generator.js +8 -1
- package/esm/cli/commands/init/deno-config-generator.d.ts +2 -2
- package/esm/cli/commands/init/deno-config-generator.d.ts.map +1 -1
- package/esm/cli/commands/init/deno-config-generator.js +7 -5
- package/esm/cli/commands/init/init-command.d.ts.map +1 -1
- package/esm/cli/commands/init/init-command.js +1 -0
- package/esm/cli/templates/index.d.ts.map +1 -1
- package/esm/cli/templates/index.js +1 -0
- package/esm/cli/templates/types.d.ts +1 -0
- package/esm/cli/templates/types.d.ts.map +1 -1
- package/esm/deno.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface CreatePackageJsonOptions {
|
|
2
2
|
/** Template-owned dependencies that must be installed for generated apps. */
|
|
3
3
|
dependencies?: Record<string, string>;
|
|
4
|
+
/** Template-owned first-party extension packages aligned to the Veryfront version. */
|
|
5
|
+
firstPartyExtensions?: readonly string[];
|
|
4
6
|
/**
|
|
5
7
|
* Selected integrations whose `connector.json#npmDependencies` should be
|
|
6
8
|
* merged into the generated project's `package.json#dependencies`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-generator.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/config-generator.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC1C,CAAC,CAAC;CACJ;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"config-generator.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/config-generator.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,sFAAsF;IACtF,oBAAoB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC1C,CAAC,CAAC;CACJ;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,IAAI,CAAC,CAsEf"}
|
|
@@ -33,7 +33,14 @@ export async function createPackageJson(projectDir, projectName, options = {}) {
|
|
|
33
33
|
}
|
|
34
34
|
const dirName = projectDir.split(/[/\\]/).pop();
|
|
35
35
|
const veryfrontVersionRange = `^${VERSION}`;
|
|
36
|
-
const
|
|
36
|
+
const firstPartyExtensionPackages = [
|
|
37
|
+
...REQUIRED_INIT_EXTENSION_PACKAGES,
|
|
38
|
+
...(options.firstPartyExtensions ?? []),
|
|
39
|
+
];
|
|
40
|
+
const requiredExtensionDeps = Object.fromEntries([...new Set(firstPartyExtensionPackages)].map((packageName) => [
|
|
41
|
+
packageName,
|
|
42
|
+
veryfrontVersionRange,
|
|
43
|
+
]));
|
|
37
44
|
const packageJson = {
|
|
38
45
|
name: projectName ?? dirName ?? "veryfront-project",
|
|
39
46
|
version: "0.1.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Write a thin `deno.json` to the scaffolded project directory. Relies on
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* exact-version `npm:` specs so task execution stays hosted by Deno without
|
|
4
|
+
* drifting to a newer CLI than the scaffolded dependencies.
|
|
5
5
|
*
|
|
6
6
|
* Throws if `deno.json` already exists at the destination — no template
|
|
7
7
|
* ships one today, so an existing file means something unexpected.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deno-config-generator.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/deno-config-generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deno-config-generator.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/deno-config-generator.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOxE"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { VERSION } from "../../utils/index.js";
|
|
1
2
|
import { join } from "../../../src/platform/compat/path/index.js";
|
|
2
3
|
import { createFileSystem } from "../../../src/platform/index.js";
|
|
4
|
+
const VERYFRONT_DENO_SPEC = `npm:veryfront@${VERSION}`;
|
|
3
5
|
const DENO_CONFIG = {
|
|
4
6
|
nodeModulesDir: "auto",
|
|
5
7
|
tasks: {
|
|
6
|
-
dev:
|
|
7
|
-
build:
|
|
8
|
-
preview:
|
|
8
|
+
dev: `deno run -A ${VERYFRONT_DENO_SPEC} dev`,
|
|
9
|
+
build: `deno run -A ${VERYFRONT_DENO_SPEC} build`,
|
|
10
|
+
preview: `deno run -A ${VERYFRONT_DENO_SPEC} preview`,
|
|
9
11
|
},
|
|
10
12
|
};
|
|
11
13
|
/**
|
|
12
14
|
* Write a thin `deno.json` to the scaffolded project directory. Relies on
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
+
* exact-version `npm:` specs so task execution stays hosted by Deno without
|
|
16
|
+
* drifting to a newer CLI than the scaffolded dependencies.
|
|
15
17
|
*
|
|
16
18
|
* Throws if `deno.json` already exists at the destination — no template
|
|
17
19
|
* ships one today, so an existing file means something unexpected.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/init-command.ts"],"names":[],"mappings":"AAAA;;;iCAGiC;AAWjC,OAAO,KAAK,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAC;AA6PzE;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/init-command.ts"],"names":[],"mappings":"AAAA;;;iCAGiC;AAWjC,OAAO,KAAK,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAC;AA6PzE;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA8arE"}
|
|
@@ -377,6 +377,7 @@ export async function initCommand(options) {
|
|
|
377
377
|
if (!options.quiet) {
|
|
378
378
|
await createPackageJson(projectDir, projectName, {
|
|
379
379
|
dependencies: templateConfig?.npmDependencies,
|
|
380
|
+
firstPartyExtensions: templateConfig?.firstPartyExtensions,
|
|
380
381
|
integrations: loadedIntegrations.map((integration) => ({
|
|
381
382
|
name: integration.config.name,
|
|
382
383
|
npmDependencies: integration.config.npmDependencies,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,GACb,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,GACb,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,CAQzE,CAAC;AAIF,wBAAsB,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,CAmBpF;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,GAAG,IAAI,CAE3E;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAErE"}
|
|
@@ -10,6 +10,7 @@ import { STARTER_TEMPLATE_NAMES } from "./types.js";
|
|
|
10
10
|
export { AVAILABLE_FEATURES, featureExists, loadFeature, loadFeatureConfig, mergeConfig, mergeDependencies, mergeFiles, resolveFeatures, validateFeatures, } from "./feature-loader.js";
|
|
11
11
|
export const templateConfigs = {
|
|
12
12
|
"docs-agent": {
|
|
13
|
+
firstPartyExtensions: ["@veryfront/ext-document-kreuzberg"],
|
|
13
14
|
npmDependencies: {
|
|
14
15
|
"@kreuzberg/node": "^4.4.2",
|
|
15
16
|
"@kreuzberg/wasm": "4.5.2",
|
|
@@ -7,6 +7,7 @@ export interface TemplateFile {
|
|
|
7
7
|
export interface TemplateConfig {
|
|
8
8
|
envVars?: EnvVarConfig[];
|
|
9
9
|
npmDependencies?: Record<string, string>;
|
|
10
|
+
firstPartyExtensions?: string[];
|
|
10
11
|
}
|
|
11
12
|
export type TemplateName = "ai-agent" | "docs-agent" | "multi-agent-system" | "agentic-workflow" | "coding-agent" | "saas-starter" | "minimal" | "pages-router" | "app-router";
|
|
12
13
|
export declare const STARTER_TEMPLATE_NAMES: readonly ["minimal", "ai-agent", "docs-agent", "agentic-workflow", "multi-agent-system", "coding-agent", "saas-starter"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EAChB,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,UAAU,GACX,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EA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,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,WAAW,GACX,SAAS,GACT,QAAQ,GACR,QAAQ,CAAC;AAEb,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
package/esm/deno.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1018",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
"@types/react": "19.2.14",
|
|
327
327
|
"@types/react-dom": "19.2.3",
|
|
328
328
|
"ws": "8.21.0",
|
|
329
|
-
"@veryfront/ext-bundler-esbuild": "0.1.
|
|
329
|
+
"@veryfront/ext-bundler-esbuild": "0.1.1018"
|
|
330
330
|
},
|
|
331
331
|
"devDependencies": {
|
|
332
332
|
"@types/node": "20.9.0"
|