Skip to content

Instantly share code, notes, and snippets.

@skinnyjames
Last active September 4, 2020 23:15
Show Gist options
  • Save skinnyjames/d5f397c7bbbf352f552c6dc73f666574 to your computer and use it in GitHub Desktop.
Save skinnyjames/d5f397c7bbbf352f552c6dc73f666574 to your computer and use it in GitHub Desktop.
deps
-- sales.dep
@import common from 'commmon/deps'
@import billing from 'billing/deps'
@import preferences from 'preferences/deps
!scenario/edit-customer
description: editing a customer
deps:
>api/load-customer
>api/save-customer
!api/load-customer
description: load a customer for edit
deps:
>billing|api/get-customers-bill
>preferences|api/get-customers-favorite-color
>common|db/get-colors
>common|db/get-states
>db/get-customer-details
!api/save-customer
description: save a customers personal and billing details
deps:
>db/save-customer-details
>billing|api/save-customer-billing-address
-- preferences.spec
@import common from 'common/deps'
!api/get-customers-favorite-color
description: get the customers color id
deps:
>db/get-customer-color
>common|db/get-colors
-- billing.dep
@import common from 'common/deps'
!db/select-bill-for-customer
description: get a customers bill
!db/save-billing-address
description: save a customers billing address
!api/billing-get-customers-bill
description: get a customers bill
deps:
>db/select-bill-for-customer
>common|db/get-currencies
!api/save-customer-billing-address
description: save a billing address
deps:
>db/save-billing-address
-- common.dep
!db/get-colors
description: get all the colors
!db/get-currencies
description: get currencies for localization
!db/get-states
description: get a list of states
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment