Skip to content

Commit

Permalink
Add progress messages to edgeql-js
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Oct 10, 2023
1 parent 550544d commit e4286f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/generate/src/edgeql-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,21 @@ export async function generateQueryBuilder(params: {
operators,
edgedbVersion: version,
};
console.log("Generating runtime spec...");
generateRuntimeSpec(generatorParams);
console.log("Generating cast maps...");
generateCastMaps(generatorParams);
console.log("Generating scalars...");
generateScalars(generatorParams);
console.log("Generating object types...");
generateObjectTypes(generatorParams);
console.log("Generating function types...");
generateFunctionTypes(generatorParams);
console.log("Generating operators...");
generateOperators(generatorParams);
console.log("Generating set impl...");
generateSetImpl(generatorParams);
console.log("Generating globals...");
generateGlobals(generatorParams);

// TODO: Fix 'fts' module generation properly, for now we just disable
Expand Down
1 change: 1 addition & 0 deletions packages/generate/src/edgeql-js/generateFunctionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function generateFuncopTypes<F extends FuncopDef>(
const implicitCastableRootTypes = getImplicitCastableRootTypes(casts);

for (const [funcName, _funcDefs] of funcops.entries()) {
console.log("Generating function type for", funcName);
const { mod, name } = splitName(funcName);

const code = dir.getModule(mod);
Expand Down

0 comments on commit e4286f9

Please sign in to comment.