-- you can switch dependencies from dynamicDependenciesToAdd
variable inside di-autoload.generator.ts
file, you may use process.env inside it also.
ifts-node ./myFile.ts
does not work for, you can do this: 1) write:nano ~/.bash_profile
inside the terminal 2) write:alias esm-node="node --no-warnings --loader ts-node/esm"
, save and exit 3) write:nano ~/.zshrc
inside the terminal 4) write:alias esm-node="node --no-warnings --loader ts-node/esm"
5) reload the terminal then you can useesm-node ./my-file.ts
-- Example about Command Query Separation(CQS) principle:
billing/ └ useCases/ └ commands/ chargeCustomer.command refundCustomer.command └ queries/ getCustomerById.query getAllCustomers.query getCharges.query trading/ └ useCases/ └ commands/ approveOffer.command makeOffer.command rejectOffer.command └ queries/ getAllOffers.query catalog/ └ useCases/ └ commands/ addVinyl.command updateVinyl.command removeVinyl.command └ queries/ getVinylById.query getAllVinyl.query search.query
--
useful links about the about Command Query Separation(CQS): 1) https://khalilstemmler.com/articles/oop-design-principles/command-query-separation/ 2) https://khalilstemmler.com/articles/enterprise-typescript-nodejs/application-layer-use-cases/
note: when you executepnpm run test
, this filevitestSetupFiles.ts
will run once before each test file