@agrarium/core
Agrarium core engine
Last updated 8 months ago by awinogradov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @agrarium/core 
SYNC missed versions from official npm registry.

Agrarium Core

Agrarium stream engine wich provides interface for microplugins infrastructure. Every plugin can get any data from any resource. Usually it is file system, but it also can be remote resource or whatewhere you want ;) Read more about plugins API here and write your own the best plugin!

Usage

$ npm i agrarium

Or use it standalone:

npm i @agrarium/core

Anywhere in your code:

const { agrarium, PluginDTS } = require('agrarium');

agrarium({
    src: ['./src/components'],
    plugins: [
        new PluginDTS({/* options */})
    ]
});

Options

src: string[]

Set of paths to the sources.

plugins: IPlugin[]

Set of plugins or presets.

transform?: (chunk: IChunk) => {}

Use this function if you need to transform chunk. For example you can add or remove any data from every chunk.

cwd?: string

Custom path to project cwd.

groupBy?: (file: BEMSDK.IFile) => string

Use this function to sort and group found entties. Grouped by component by default.

Types Definitions

All interfaces defined in the public package [@agrarium/types](../types/index.d.ts).

License MIT

Current Tags

  • 2.0.2                                ...           latest (8 months ago)

7 Versions

  • 2.0.2                                ...           8 months ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 2.0.0-0                                ...           a year ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 0
Last Month 3
Dependencies (6)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |