Stores
Configure where the CLI exports index artifacts
Overview
Stores define where Peam writes the search index. The CLI currently supports fileBased stores.
File-based store
Writes a JSON index file to disk. It matches the file-based store behavior.
peam \
--source fileBased --projectDir . --sourceDir dist \
--store fileBased --indexPath .peam/index.jsonOptions
indexPath: path to the index file relative tobaseDir(default.peam/index.json).baseDir: base directory for the index file (defaults toprocess.cwd()).
Multiple stores
Repeat --store to export to multiple destinations:
peam \
--source fileBased --projectDir . --sourceDir dist \
--store fileBased --indexPath .peam/index.json \
--store fileBased --indexPath public/.peam/index.json