exhibit-core
The engine used by Exhibit.js
Last updated 5 years ago by callumlocke .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exhibit-core 
SYNC missed versions from official npm registry.

exhibit-core

NPM version Build Status Dependency Status

This is the engine at the core of Exhibit.js.

The main exhibit module is essentially a wrapper around this engine, adding things that make it more user friendly: watch-triggered batches, logging events, writing out changes to a destination directory, default importers, server and BrowserSync integration etc.

The engine itself is just a manually operated functional system for processing incremental batches of changes to a set of files. It remembers state so it can process subsequent batches quicker. You configure it with builders (without which it would just output whatever you put in) and importers (which are made available to builders for importing external files).

Usage

import Engine from 'exhibit-core';

const engine = new Engine({builders, importers});

engine.batch(files, changedExternalPaths).then(results => {
  // e.g. save results to disk

}).catch(err => console.error(err));

// (then do further, incremental .batch() calls, passing only changed source files)

Options

  • builders - array of builder functions
  • importers - array of importer functions

Current Tags

  • 0.6.1                                ...           latest (5 years ago)

19 Versions

  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.2                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.2                                ...           5 years ago
  • 0.3.1                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (16)
Dev Dependencies (12)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |