workspace:
  packageSet:
    registry: 50.11.0
  extraPackages:
    # garganscript packages
    d3:
      git: https://github.com/garganscript/purescript-d3.git
      ref: v0.11.0
    string-search:
      git: https://gitlab.iscpif.fr/gargantext/purescript-string-search.git
      ref: spago-next

    # custom forks
    data-default:
      git: https://github.com/garganscript/purescript-data-default.git
      ref: v0.4.0
    graphql-client:
      git: https://github.com/garganscript/purescript-graphql-client.git
      ref: spago-next-9.3.2
    markdown-it:
      git: https://github.com/garganscript/purescript-markdown-it.git
      ref: spago-next
    sequences:
      git: https://github.com/garganscript/purescript-sequences.git
      ref: v3.0.2-spago-next
    simple-json-generics: 0.2.1
    tuples-native:
      git: https://github.com/garganscript/purescript-tuples-native.git
      ref: v2.3.0-spago-next

    # for tests
    spec-discovery:
      git: https://github.com/garganscript/purescript-spec-discovery.git
      ref: v8.2.0-spago-next

package:
  name: gargantext
  dependencies:
    # debugging
    # - debug: ">=6.0.2 <7.0.0"
    # - psci-support: ">=6.0.0 <7.0.0"
    
    - aff
    - aff-promise: ">=4.0.0 <5.0.0"
    - affjax: ">=13.0.0 <14.0.0"
    - affjax-web: ">=1.0.0 <2.0.0"
    - argonaut: ">=9.0.0 <10.0.0"
    - argonaut-codecs: ">=9.1.0 <10.0.0"
    - argonaut-core: ">=7.0.0 <8.0.0"
    - arraybuffer-types: ">=3.0.2 <4.0.0"
    - arrays: ">=7.3.0 <8.0.0"
    - bifunctors: ">=6.0.0 <7.0.0"
    - colors: ">=7.0.1 <8.0.0"
    - console: ">=6.1.0 <7.0.0"
    - control: ">=6.0.0 <7.0.0"
    - convertable-options: ">=1.0.0 <2.0.0"
    - css: ">=6.0.0 <7.0.0"
    - d3: "*"
    - data-default: "*"
    - datetime: ">=6.1.0 <7.0.0"
    - dom-filereader: ">=7.0.0 <8.0.0"
    - dom-simple: ">=0.4.0 <0.5.0"
    - effect: ">=4.0.0 <5.0.0"
    - either: ">=6.1.0 <7.0.0"
    - enums: ">=6.0.1 <7.0.0"
    - exceptions: ">=6.0.0 <7.0.0"
    - ffi-simple: ">=0.5.1 <0.6.0"
    - foldable-traversable: ">=6.0.0 <7.0.0"
    - foreign: ">=7.0.0 <8.0.0"
    - foreign-object: ">=4.1.0 <5.0.0"
    - form-urlencoded: ">=7.0.0 <8.0.0"
    - formatters: ">=7.0.0 <8.0.0"
    - functions: ">=6.0.0 <7.0.0"
    - graphql-client: "*"
    - heterogeneous: ">=0.6.0 <0.7.0"
    - http-methods: ">=6.0.0 <7.0.0"
    - integers: ">=6.0.0 <7.0.0"
    - js-timers: ">=6.1.0 <7.0.0"
    - lists: ">=7.0.0 <8.0.0"
    - markdown-it: "*"
    - maybe: ">=6.0.0 <7.0.0"
    - media-types: ">=6.0.0 <7.0.0"
    - milkis: ">=9.0.0 <10.0.0"
    - newtype: ">=5.0.0 <6.0.0"
    - nonempty: ">=7.0.0 <8.0.0"
    - now: ">=6.0.0 <7.0.0"
    - nullable: ">=6.0.0 <7.0.0"
    - numbers: ">=9.0.1 <10.0.0"
    - ordered-collections: ">=3.2.0 <4.0.0"
    - orders: ">=6.0.0 <7.0.0"
    - parallel: ">=7.0.0 <8.0.0"
    - partial: ">=4.0.0 <5.0.0"
    - prelude: ">=6.0.1 <7.0.0"
    - profunctor-lenses: ">=8.0.0 <9.0.0"
    - random: ">=6.0.0 <7.0.0"
    - react: ">=11.0.0 <12.0.0"
    - reactix: ">=0.6.0 <0.7.0"
    - record: ">=4.0.0 <5.0.0"
    - record-extra: ">=5.0.1 <6.0.0"
    - routing: ">=11.0.0 <12.0.0"
    - sequences: "*"
    - simple-json: ">=9.0.0 <10.0.0"
    - simple-json-generics: "*"
    - string-search: "*"
    - strings: ">=6.0.1 <7.0.0"
    - strings-extra: ">=4.0.0 <5.0.0"
    - stringutils: ">=0.0.12 <0.0.13"
    - these: ">=6.0.0 <7.0.0"
    - toestand: ">=0.9.0 <0.10.0"
    - transformers: ">=6.0.0 <7.0.0"
    - tuples: ">=7.0.0 <8.0.0"
    - tuples-native: "*"
    - typelevel: ">=6.0.0 <7.0.0"
    - typelevel-prelude: ">=7.0.0 <8.0.0"
    - unfoldable: ">=6.0.0 <7.0.0"
    - unordered-collections: ">=3.1.0 <4.0.0"
    - unsafe-coerce: ">=6.0.0 <7.0.0"
    - uri: ">=9.0.0 <10.0.0"
    - uuid: ">=9.0.0 <10.0.0"
    - validation: ">=6.0.0 <7.0.0"
    - web-file: ">=4.0.0 <5.0.0"
    - web-html: ">=4.1.0 <5.0.0"
    - web-storage: ">=5.0.0 <6.0.0"
    - web-url: ">=2.0.0 <3.0.0"
    - web-xhr: ">=5.0.1 <6.0.0"

  build:
    # Be strict about missing packages
    # https://github.com/purescript/spago/issues/1211#issuecomment-2066083651
    pedanticPackages: true
    # convert compiler warnings to errors:
    # strict:
    #   true
    censorProjectWarnings:
      - UnusedDctorExplicitImport
      - UnusedDctorImport
      - UnusedDeclaration
      - UnusedExplicitImport
      - UnusedImport
      - UnusedName
      - UnusedTypeVar


  test:
    main: Test.Main
    dependencies:
      - spec
      - spec-discovery
      - spec-quickcheck