Skip to content

Commit

Permalink
feat(bundle): Add console log when a bundle is done being created
Browse files Browse the repository at this point in the history
resolves #23
  • Loading branch information
jcowman2 committed Feb 16, 2019
1 parent 33a7ef5 commit 3576cb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/regal-bundler.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ const bundle = (opts = {}) => __awaiter(undefined, void 0, void 0, function* ()
const build = yield rollup.rollup(inputOpts);
const outputOpts = makeOutputOpts(config);
yield build.write(outputOpts);
console.log(`Created a game bundle for '${config.game.name}' at ${outputOpts.file}`);
});

exports.bundle = bundle;
Expand Down
1 change: 1 addition & 0 deletions dist/regal-bundler.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ const bundle = (opts = {}) => __awaiter(undefined, void 0, void 0, function* ()
const build = yield rollup(inputOpts);
const outputOpts = makeOutputOpts(config);
yield build.write(outputOpts);
console.log(`Created a game bundle for '${config.game.name}' at ${outputOpts.file}`);
});

export { bundle, getConfig, ModuleFormat };
5 changes: 5 additions & 0 deletions src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,9 @@ export const bundle = async (opts: RecursivePartial<BundlerOptions> = {}) => {

const outputOpts = makeOutputOpts(config);
await build.write(outputOpts);

// tslint:disable-next-line:no-console
console.log(
`Created a game bundle for '${config.game.name}' at ${outputOpts.file}`
);
};

0 comments on commit 3576cb9

Please sign in to comment.