Home

Awesome

rollup-plugin-dmnlint

Build Status

Convert dmnlint config files to consumable modules.

import { Linter } from 'dmnlint';

import linterConfig from './.dmnlintrc';

const linter = new Linter(linterConfig);

Installation

npm i rollup-plugin-dmnlint -D

Usage

import { rollup } from 'rollup';

import dmnlint from 'rollup-plugin-dmnlint';

import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';

rollup({
  input: 'main.js',
  plugins: [
    nodeResolve(),
    commonjs(),
    dmnlint({
      // matching .dmnlintrc files per default
      include: '**/.dmnlintrc',

      // undefined per default
      exclude: [ ]
    })
  ]
});

Credits

The project is based on rollup-plugin-bpmnlint built by nikku.

License

MIT