Themis

Themis

  • Docs
  • Roadmap

›API

Getting Started

  • What is this about?
  • Installation
  • Create a Module

Guides

  • Remote Module
  • Nocks

API

  • Module
  • Remote Module
  • Transforms
  • Merge Strategy
  • CLI

Configuration

  • Configuration File
  • ENV

CLI

To get all options for the CLI use themis --help.

Usage

Themis takes a space separated set of paths to modules and options.

-c, --config [configPath]

Load a config file.

--strategy [mergeStrategy]

Path to a node module exposing a merge strategy. Read more about merge strategies here.

-b, --build

Fetch the introspection schemas for remote modules and store the locally with the module. Locally stored schemas will then be used at startup to derive the remote executable schema from.

--pretty

When fetching remote schemas they can be formatted to check them into SCM and track changes in the schemas more easily.

-t, --test

Run the tests in the current working directory (cwd) with jest and nock, by default matching tests with *.(test|spec).jsx? or in a __tests__ folder.

-m, --mock

Will add mock resolver functions with the mocks object exported from a module.

-n, --nock

Run in nock mode to replay recorded external requests by modules on a per query basis.

-r, --record

Use with --nock --record to record all external requests made by modules during a query. This can be used for offline development or testing.

← Merge StrategyConfiguration File →
  • Usage
    • -c, --config [configPath]
    • --strategy [mergeStrategy]
    • -b, --build
    • --pretty
    • -t, --test
    • -m, --mock
    • -n, --nock
    • -r, --record
Docs
Getting StartedModule API Reference
Copyright © 2019 Spring-Media