A tool for generating a dependency list from a config file.
This tool can be used if you want to create a custom Comunica config and query engine.
This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.
Click here if you just want to query with Comunica.
$ yarn add @comunica/packager
$ comunica-package -c config/config-default.json
Example output:
{
"@comunica/actor-context-preprocess-source-to-destination": "^2.0.0",
"@comunica/actor-hash-bindings-sha1": "^2.0.0",
"@comunica/actor-http-fetch": "^2.0.0",
"@comunica/actor-http-proxy": "^2.0.0",
"@comunica/actor-init-query": "^2.0.0",
...
This will output a list of dependencies that can be included in your package.json
file.
$ comunica-package -c config/config-default.json -o my-sparql-engine
This will create a directory my-sparql-engine
containing new package.json
and index.js
files.
If you are extending from a config in @comunica/config-query-sparql
,
make sure to include @comunica/config-query-sparql
as a dependency as well.
If you include a bin/
directory, you may also want to include @comunica/runner-cli
as dependency.