Closed svizzari closed 7 years ago
@zendesk/vegemite 💇 This PR is now ready for some reviews. I'll be going through and annotating some of the code with comments of my own to help explain decisions/implementation
@zendesk/vegemite 💇
I've addressed all the comments we made during the walkthrough
✌️
Description
Instead of using a bunch of libraries for async behaviour, use ES* features transpiled by way of
Babel + Webpack +Typescript.The latter isn't strictly necessary, but types are cool. I found that just using Typescript is a good approach. The TS compiler supports everything we need for async control flow, including the newfor await (const thing of _iterable_) ...
. The build pipeline has been rebuilt so that the emit of the package would include Typescript type declarations alongside JS code. This would allow any potential consumer of the package to leverage types, if using TS themselves. To achieve the former, I moved all source and tests to the newsrc
directory, and madelib
, andlib/test
the new build artefacts. Testing can now be done by running something like (ifts-node
andtypescript
are globally installed)ts-node src/index.ts migrate --path ~/Code/zendesk/demo_apps/basic_ticket_sample_app
.References
This PR implements:
This PR also:
TODO