This repository has been archived by the owner on Jan 18, 2019. It is now read-only.
can now work with plugins;
opConfig changes:
- rules_file && asset_name => rules: ['assetName:path']
- plugins: ['assetName:path']
- selector_config => types
- removed actions, connection and index fields
Example:
{
type: 'transform',
rules: ['some/path', 'other/path')],
plugins: ['path/to/plugin']
types: { _created: 'date' }
};
Example Plugin:
import NoOp from './noop';
import Double from './double';
export default class Plugin {
init() {
return {
noop: NoOp,
double: Double
};
}
}