Closed bkak closed 11 years ago
No, but why do you want to do this?
Since the pattern of these files is similar, I was thinking of code generating them.
As long as the command handlers are just beginning is true, but passing the time the files become larger and more individual... you will see ;-)
Oh ya ok I get it.
Is there a way to merge these command handlers :
SalesCommandHandler.js module.exports = commandHandlerBase.extend({ aggregate: 'SalesAggregate', commands: ['CreateSale', 'UpdateSale', 'DeleteSale' ] });
JournalCommandHandler.js module.exports = commandHandlerBase.extend({ aggregate: 'JournalAggregate', commands: ['CreateJournal'] });
Can I merge them into single file?