Skip to content

Commit

Permalink
Add more context to the console output during the build and type gene…
Browse files Browse the repository at this point in the history
…ration so we can tell which contracts are currently being built.
  • Loading branch information
dallasjohnson committed Oct 7, 2019
1 parent 24e9d97 commit dd7ffb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ export const build = async (contractPath: string) => {
// Compile contract at path
await compileContract(contractPath);
// Generate Typescript definitions for contract
spinner.create(`Generating type definitions`);
spinner.create(`Generating type definitions:` + contractPath);
try {
await generateTypes(pathToIdentifier(contractPath));
spinner.end(`Generated type definitions`);
spinner.end(`Generated type definitions: ` + contractPath);
} catch (error) {
spinner.fail(`Failed to generate type definitions`);
spinner.fail(`Failed to generate type definitions: ` + contractPath);
console.log(` --> ${error.message}`);
}
};
Expand All @@ -396,7 +396,7 @@ export const outputPathForContract = (contractPath: string) =>
*/
export const compileContract = async (contractPath: string) => {
// Begin logs
spinner.create(`Compiling contract`);
spinner.create(`Compiling contract: ` + contractPath);

const basename = path.basename(contractPath, '.cpp');

Expand Down Expand Up @@ -428,5 +428,5 @@ export const compileContract = async (contractPath: string) => {
throw err;
});
// Notify build task completed
spinner.end(`Compiled contract`);
spinner.end(`Compiled contract output into folder: ` + outputPath);
};

0 comments on commit dd7ffb6

Please sign in to comment.