Generate the browser contract from ProductApi
This commit is contained in:
parent
67cc0cb802
commit
c9642f4067
1 changed files with 2572 additions and 130 deletions
|
|
@ -9,6 +9,10 @@ category: Network
|
|||
build-type: Simple
|
||||
extra-source-files:
|
||||
sql/001_initial_schema.sql
|
||||
web/src/generated/contract.ts
|
||||
web/src/transport.ts
|
||||
web/test/contract-integration.mjs
|
||||
web/test/fixtures/contract.json
|
||||
|
||||
common shared
|
||||
default-language: Haskell2010
|
||||
|
|
@ -106,6 +110,7 @@ library
|
|||
Nuthatch.Config
|
||||
Nuthatch.Db
|
||||
Nuthatch.Http.Auth
|
||||
Nuthatch.Http.Contract
|
||||
Nuthatch.Http.Error
|
||||
Nuthatch.Http.Server
|
||||
Nuthatch.Mutation.Effects
|
||||
|
|
@ -136,6 +141,27 @@ executable nuthatch
|
|||
-rtsopts
|
||||
-with-rtsopts=-N
|
||||
|
||||
executable nuthatch-generate-web-contract
|
||||
import: shared
|
||||
main-is: GenerateContract.hs
|
||||
hs-source-dirs: app
|
||||
build-depends:
|
||||
, nuthatch
|
||||
, base
|
||||
|
||||
executable nuthatch-web-contract-integration
|
||||
import: shared
|
||||
main-is: WebContractIntegration.hs
|
||||
hs-source-dirs: test
|
||||
build-depends:
|
||||
, nuthatch
|
||||
, base
|
||||
, bytestring
|
||||
, process
|
||||
, text
|
||||
ghc-options:
|
||||
-threaded
|
||||
|
||||
executable nuthatch-storage-integration
|
||||
import: shared
|
||||
main-is: Integration.hs
|
||||
|
|
@ -381,6 +407,7 @@ test-suite nuthatch-unit
|
|||
other-modules:
|
||||
Nuthatch.Test.Config
|
||||
Nuthatch.Test.Http
|
||||
Nuthatch.Test.HttpContract
|
||||
Nuthatch.Test.Identity
|
||||
Nuthatch.Test.Oidc
|
||||
Nuthatch.Test.Path
|
||||
|
|
|
|||
Loading…
Reference in a new issue