Check that garg-init has been executed at startup, abort with helpful error if not
[gargantext.git] / package.yaml
index 6c261963bc54427707e55b131c35a803e835a018..1ca2f00421af26970bf9265ec1d761021f79ad8c 100644 (file)
@@ -1,20 +1,46 @@
 name: gargantext
-version: '0.0.0.4'
+
+#         +------------ Layer 3
+#         | +--+------- Layer 2
+#         | | +-------- Layer 1  : New versions with API changes
+#         | | | +-----  Layers * : New versions with API additions
+#         | | | | +---  Layers * : New versions without API breaking changes
+#         | | | | |
+version: '0.0.6'
 synopsis: Search, map, share
 description: Please see README.md
 category: Data
 author: Gargantext Team
 maintainer: team@gargantext.org
 copyright:
-    - ! 'Copyright: (c) 2017-2018: see git logs and README'
-license: BSD3
+    - ! 'Copyright: (c) 2017-Present: see git logs and README'
+license: AGPL-3
 homepage: https://gargantext.org
 ghc-options: -Wall
-extra-libraries:
-- gfortran
 dependencies:
-- extra
-- text
+  - extra
+  - text
+default-extensions:
+  - DataKinds
+  - DeriveGeneric
+  - FlexibleContexts
+  - FlexibleInstances
+  - GeneralizedNewtypeDeriving
+  - MultiParamTypeClasses
+  - NamedFieldPuns
+  - NoImplicitPrelude
+  - OverloadedStrings
+  - RankNTypes
+  - RecordWildCards
+data-files:
+  - ekg-assets/index.html
+  - ekg-assets/monitor.js
+  - ekg-assets/monitor.css
+  - ekg-assets/jquery.flot.min.js
+  - ekg-assets/jquery-1.6.4.min.js
+  - ekg-assets/bootstrap-1.4.0.min.css
+  - ekg-assets/chart_line_add.png
+  - ekg-assets/cross.png
 library:
   source-dirs: src
   ghc-options:
@@ -24,73 +50,90 @@ library:
   - -Wunused-binds
   - -Wunused-imports
   - -Werror
+  - -freduction-depth=300
   exposed-modules:
   - Gargantext
   - Gargantext.API
-  - Gargantext.API.Auth
-  - Gargantext.API.Count
-  - Gargantext.API.FrontEnd
-  - Gargantext.API.Ngrams
+  - Gargantext.API.Dev
+  - Gargantext.API.HashedResponse
   - Gargantext.API.Node
-    #  - Gargantext.API.Orchestrator
-  - Gargantext.API.Search
-  - Gargantext.API.Settings
-  - Gargantext.API.Types
+  - Gargantext.API.Node.File
+  - Gargantext.API.Ngrams
+  - Gargantext.API.Ngrams.Tools
+  - Gargantext.API.Ngrams.Types
+  - Gargantext.API.Ngrams.Prelude
+  - Gargantext.API.Admin.Settings
+  - Gargantext.API.Admin.EnvTypes
+  - Gargantext.API.Admin.Auth.Types
+  - Gargantext.API.Admin.Types
+  - Gargantext.API.Prelude
+  - Gargantext.API.Client
   - Gargantext.Core
+  - Gargantext.Core.NodeStory
+  - Gargantext.Core.Methods.Distances
   - Gargantext.Core.Types
+  - Gargantext.Core.Types.Individu
   - Gargantext.Core.Types.Main
   - Gargantext.Core.Utils.Prefix
-  - Gargantext.Database
-  - Gargantext.Database.Init
-  - Gargantext.Database.Config
-  - Gargantext.Database.Flow
-  - Gargantext.Database.Schema.Node
-  - Gargantext.Database.Tree
-  - Gargantext.Database.Types.Node
-  - Gargantext.Database.Utils
-  - Gargantext.Database.Schema.User
-  - Gargantext.Prelude
-  - Gargantext.Text
-  - Gargantext.Text.Context
-  - Gargantext.Text.Corpus.Parsers
-  - Gargantext.Text.Corpus.API
-  - Gargantext.Text.Corpus.Parsers.CSV
-  - Gargantext.Text.Examples
-  - Gargantext.Text.List.CSV
-  - Gargantext.Text.Metrics
-  - Gargantext.Text.Metrics.TFICF
-  - Gargantext.Text.Metrics.CharByChar
-  - Gargantext.Text.Metrics.Count
-  - Gargantext.Text.Search
-  - Gargantext.Text.Terms
-  - Gargantext.Text.Terms.Mono
-  - Gargantext.Text.Terms.Multi.Lang.En
-  - Gargantext.Text.Terms.Multi.Lang.Fr
-  - Gargantext.Text.Terms.Multi.RAKE
-  - Gargantext.Text.Terms.WithList
-  - Gargantext.Text.Flow
-  - Gargantext.Viz.Graph
-  - Gargantext.Viz.Graph.Distances.Matrice
-  - Gargantext.Viz.Graph.Index
-  - Gargantext.Viz.Phylo
-  - Gargantext.Viz.AdaptativePhylo
-  - Gargantext.Viz.Phylo.PhyloMaker
-  - Gargantext.Viz.Phylo.Tools
-  - Gargantext.Viz.Phylo.PhyloTools
-  - Gargantext.Viz.Phylo.PhyloExport
-  - Gargantext.Viz.Phylo.SynchronicClustering
-  - Gargantext.Viz.Phylo.Example
-  - Gargantext.Viz.Phylo.LevelMaker
-  - Gargantext.Viz.Phylo.View.Export
-  - Gargantext.Viz.Phylo.View.ViewMaker
+  - Gargantext.Database.Action.Flow
+  - Gargantext.Database.Action.Flow.Types
+  - Gargantext.Database.Action.User.New
+  - Gargantext.Database.Query.Table.User
+  - Gargantext.Database.Query.Table.Node
+  - Gargantext.Database.Query.Table.Node.UpdateOpaleye
+  - Gargantext.Database.Query.Table.NgramsPostag
+  - Gargantext.Database.Schema.Ngrams
+  - Gargantext.Database.Prelude
+  - Gargantext.Database.Admin.Trigger.Init
+  - Gargantext.Database.Admin.Config
+  - Gargantext.Database.Admin.Types.Hyperdata
+  - Gargantext.Database.Admin.Types.Node
+  - Gargantext.Defaults
+  - Gargantext.Core.Text
+  - Gargantext.Core.Text.Context
+  - Gargantext.Core.Text.Corpus.Parsers
+  - Gargantext.Core.Text.Corpus.Parsers.Date.Parsec
+  - Gargantext.Core.Text.Corpus.API
+  - Gargantext.Core.Text.Corpus.Parsers.CSV
+  - Gargantext.Core.Text.List.Formats.CSV
+  - Gargantext.Core.Text.Metrics
+  - Gargantext.Core.Text.Metrics.TFICF
+  - Gargantext.Core.Text.Metrics.CharByChar
+  - Gargantext.Core.Text.Metrics.Count
+  - Gargantext.Core.Text.Search
+  - Gargantext.Core.Text.Terms
+  - Gargantext.Core.Text.Terms.Mono
+  - Gargantext.Core.Text.Terms.Multi.Lang.En
+  - Gargantext.Core.Text.Terms.Multi.Lang.Fr
+  - Gargantext.Core.Text.Terms.Multi.RAKE
+  - Gargantext.Core.Text.Terms.WithList
+  - Gargantext.Core.Viz.Graph
+  - Gargantext.Core.Viz.Graph.Tools
+  - Gargantext.Core.Viz.Graph.Tools.IGraph
+  - Gargantext.Core.Viz.Graph.Index
+  - Gargantext.Core.Viz.Phylo
+  - Gargantext.Core.Viz.Phylo.API
+  - Gargantext.Core.Viz.Phylo.API.Tools
+  - Gargantext.Core.Viz.Phylo.PhyloMaker
+  - Gargantext.Core.Viz.Phylo.PhyloTools
+  - Gargantext.Core.Viz.Phylo.PhyloExport
+  - Gargantext.Core.Viz.Phylo.SynchronicClustering
+  - Gargantext.Core.Viz.Types
   dependencies:
-  - array
+  - HSvm
+  - KMP
+  - MissingH
+  - MonadRandom
   - QuickCheck
+  - Unique
   - accelerate
+  - accelerate-arithmetic
+  - accelerate-llvm-native
+  - accelerate-utility
   - aeson
   - aeson-lens
   - aeson-pretty
-  - argon2
+  - array
   - async
   - attoparsec
   - auto-update
@@ -103,54 +146,67 @@ library:
   - bytestring
   - case-insensitive
   - cassava
-  #- charsetdetect-ae  # detect charset
-  - clock
-  - clustering-louvain
+  - cereal     # (IGraph)
+  - cborg
   - conduit
   - conduit-extra
   - containers
   - contravariant
-  - crawlerPubMed
-  - crawlerIsidore
+  - crawlerArxiv
   - crawlerHAL
   - crawlerISTEX
+  - crawlerIsidore
+  - crawlerPubMed
+  - cryptohash
   - data-time-segment
   - deepseq
   - directory
   - duckling
+  - ekg-core
+  - ekg-json
   - exceptions
-  - filepath
-  - formatting
-  - fullstop
+  - fast-logger
   - fclabels
   - fgl
-  - fast-logger
   - filelock
+  - filepath
+  - formatting
   - full-text-search
+  - fullstop
+  - gargantext-prelude
+  - gargantext-graph >= 0.1.0.0
   - graphviz
+  - hashable
   - haskell-igraph
+  - hlcm
+  - hsinfomap
+  - hsparql
+  - hstatistics
+  - http-api-data
   - http-client
   - http-client-tls
   - http-conduit
   - http-media
-  - http-api-data
   - http-types
-  - hsparql
-  - hstatistics
-  - HSvm
   - hxt
-  - hlcm
+  - ihaskell
   - ini
   - insert-ordered-containers
   - jose
-    #  - kmeans-vector
   - json-stream
-  - KMP
   - lens
+  - lifted-base
+  - listsafe
   - located-base
   - logging-effect
   - matrix
+  - monad-control
   - monad-logger
+  - monad-logger-aeson
+  - morpheus-graphql
+  - morpheus-graphql-app
+  - morpheus-graphql-core
+  - morpheus-graphql-subscriptions
   - mtl
   - natural-transformation
   - opaleye
@@ -164,69 +220,79 @@ library:
   - postgresql-simple
   - pretty-simple
   - probability
+  - process
   - product-profunctors
   - profunctors
   - protolude
   - pureMD5
-  - random-shuffle
-  - MonadRandom
-  - SHA
-  - simple-reflect
-  - cereal     # (IGraph)
-  - singletons # (IGraph)
   - quickcheck-instances
-  - random
   - rake
+  - random
+  - rdf4h
   - regex-compat
+  - regex-tdfa
+  - resource-pool
   - resourcet
-  - rdf4h
   - safe
+  - scientific
   - semigroups
+  - serialise
   - servant
   - servant-auth
+  - servant-auth-client
   - servant-auth-server >= 0.4.4.0
   - servant-auth-swagger
   - servant-blaze
+  - servant-cassava
   - servant-client
+  - servant-ekg
   - servant-flatten
   - servant-job
   - servant-mock
   - servant-multipart
   - servant-server
+  - servant-static-th
   - servant-swagger
   - servant-swagger-ui
-  - servant-static-th
-  - servant-cassava
-  - serialise
+  - servant-xml
+  - simple-reflect
+  - singletons # (IGraph)
   - split
   - stemmer
-  - string-conversions
   - swagger2
+  - taggy-lens
   - tagsoup
+  - template-haskell
   - temporary
+  - text-conversions
   - text-metrics
   - time
   - time-locale-compat
   - timezone-series
   - transformers
   - transformers-base
+  - tuple
   - unordered-containers
-  - Unique
+  - utf8-string
   - uuid
+  - uri-encode
   - validity
   - vector
   - wai
+  - wai-app-static
   - wai-cors
   - wai-extra
+  - wai-websockets
   - warp
+  - wikiparsec
+  - websockets
   - wreq
   - xml-conduit
   - xml-types
+  - xmlbf
   - yaml
   - zip
   - zlib
-#  - utc
-#  API external connections
 
 executables:
   gargantext-server:
@@ -239,10 +305,13 @@ executables:
     - -rtsopts
     - -threaded
     - -with-rtsopts=-N
+    - -with-rtsopts=-T
+    - -fprof-auto
     dependencies:
       - base
       - containers
       - gargantext
+      - gargantext-prelude
       - vector
       - cassava
       - ini
@@ -266,6 +335,7 @@ executables:
       - bytestring
       - containers
       - gargantext
+      - gargantext-prelude
       - vector
       - cassava
       - ini
@@ -274,34 +344,45 @@ executables:
       - unordered-containers
       - full-text-search
 
-  gargantext-phylo:
+
+  gargantext-client:
     main: Main.hs
-    source-dirs: bin/gargantext-phylo
+    source-dirs: bin/gargantext-client
     ghc-options:
+    - -Wall
     - -threaded
     - -rtsopts
     - -with-rtsopts=-N
     - -O2
     - -Wmissing-signatures
+    default-extensions:
+    - DataKinds
+    - DeriveGeneric
+    - FlexibleContexts
+    - FlexibleInstances
+    - GeneralizedNewtypeDeriving
+    - MultiParamTypeClasses
+    - NamedFieldPuns
+    - NoImplicitPrelude
+    - OverloadedStrings
+    - RankNTypes
+    - RecordWildCards
     dependencies:
-      - aeson
-      - async
-      - base
-      - bytestring
-      - containers
-      - directory
-      - gargantext
-      - vector
-      - parallel
-      - cassava
-      - ini
-      - optparse-generic
-      - split
-      - unordered-containers
+    - base
+    - extra
+    - servant
+    - text
+    - optparse-generic
+    - exceptions
+    - servant-client
+    - servant-auth-client
+    - gargantext
+    - ekg-json
+    - http-client
 
-  gargantext-adaptative-phylo:
+  gargantext-phylo:
     main: Main.hs
-    source-dirs: bin/gargantext-adaptative-phylo
+    source-dirs: bin/gargantext-phylo
     ghc-options:
     - -threaded
     - -rtsopts
@@ -316,13 +397,16 @@ executables:
       - containers
       - directory
       - gargantext
+      - gargantext-prelude
       - vector
       - parallel
       - cassava
       - ini
       - optparse-generic
       - split
-      - unordered-containers      
+      - unordered-containers
+      - cryptohash
+      - time 
 
   gargantext-import:
     main: Main.hs
@@ -335,6 +419,7 @@ executables:
     - -Wmissing-signatures
     dependencies:
       - gargantext
+      - gargantext-prelude
       - base
       - servant-server
 
@@ -349,40 +434,127 @@ executables:
     - -Wmissing-signatures
     dependencies:
       - gargantext
+      - gargantext-prelude
       - base
 
+  gargantext-invitations:
+    main: Main.hs
+    source-dirs: bin/gargantext-invitations
+    ghc-options:
+    - -threaded
+    - -rtsopts
+    - -with-rtsopts=-N
+    - -O2
+    - -Wmissing-signatures
+    dependencies:
+      - gargantext
+      - gargantext-prelude
+      - base
 
-tests:
-#   garg-test:
-#     main: Main.hs
-#     source-dirs: src-test
-#     ghc-options:
-#     - -threaded
-#     - -rtsopts
-#     - -with-rtsopts=-N
-#     dependencies:
-#     - base
-#     - gargantext
-#     - hspec
-#     - QuickCheck
-#     - quickcheck-instances 
-#     - time
-#     - parsec
-#     - duckling
-#     - text
-  garg-doctest:
+
+  gargantext-upgrade:
     main: Main.hs
-    source-dirs: src-doctest
+    source-dirs: bin/gargantext-upgrade
     ghc-options:
+    - -threaded
+    - -rtsopts
+    - -with-rtsopts=-N
     - -O2
-    - -Wcompat
     - -Wmissing-signatures
+    dependencies:
+      - gargantext
+      - gargantext-prelude
+      - base
+      - postgresql-simple
+
+  gargantext-admin:
+    main: Main.hs
+    source-dirs: bin/gargantext-admin
+    ghc-options:
+    - -threaded
     - -rtsopts
+    - -with-rtsopts=-N
+    - -O2
+    - -Wmissing-signatures
+    dependencies:
+      - gargantext
+      - gargantext-prelude
+      - base
+
+
+  gargantext-cbor2json:
+    main: Main.hs
+    source-dirs: bin/gargantext-cbor2json
+    ghc-options:
     - -threaded
+    - -rtsopts
     - -with-rtsopts=-N
+    - -O2
+    - -Wmissing-signatures
     dependencies:
-    - doctest
-    - Glob
-    - QuickCheck
-    - base
-    - gargantext
+      - gargantext
+      - gargantext-prelude
+      - base
+      - bytestring
+      - aeson
+      - serialise
+
+
+tests:
+   garg-test:
+     main: Main.hs
+     source-dirs: src-test
+     default-extensions:
+     - DataKinds
+     - DeriveGeneric
+     - FlexibleContexts
+     - FlexibleInstances
+     - GeneralizedNewtypeDeriving
+     - MultiParamTypeClasses
+     - NoImplicitPrelude
+     - OverloadedStrings
+     - RankNTypes
+     ghc-options:
+     - -threaded
+     - -rtsopts
+     - -with-rtsopts=-N
+     dependencies:
+     - base
+     - gargantext
+     - gargantext-prelude
+     - hspec
+     - QuickCheck
+     - quickcheck-instances
+     - time
+     - parsec
+     - duckling
+     - text
+     - unordered-containers
+#  garg-doctest:
+#    main: Main.hs
+#    source-dirs: src-doctest
+#    ghc-options:
+#    - -O2
+#    - -Wcompat
+#    - -Wmissing-signatures
+#    - -rtsopts
+#    - -threaded
+#    - -with-rtsopts=-N
+#    dependencies:
+#    - doctest
+#    - Glob
+#    - QuickCheck
+#    - base
+#    - gargantext
+#    default-extensions:
+#    - DataKinds
+#    - DeriveGeneric
+#    - FlexibleContexts
+#    - FlexibleInstances
+#    - GeneralizedNewtypeDeriving
+#    - MultiParamTypeClasses
+#    - NoImplicitPrelude
+#    - OverloadedStrings
+#    - RankNTypes
+#
+