Generate the browser contract from ProductApi

This commit is contained in:
ms2k 2026-07-20 03:20:08 +09:00
commit c9642f4067

View file

@ -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