1.0.4 • Published 2 years ago

@ruleenginejs/rollup-plugin-rule v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@ruleenginejs/rollup-plugin-rule

Compile rule files to javascript.

Installation

npm install -D @ruleenginejs/rollup-plugin-rule

Add Runtime

npm install @ruleenginejs/runtime

Usage

// rollup.config.js
import rule from '@ruleenginejs/rollup-plugin-rule';

export default {
  input: './main.js',
  plugins: [
    rule()
  ]
}
// main.js
import rule from "./bar.rule";

rule.execute();

Options

NameTypeDefaultDescription
checkSchema{Boolean}trueEnables/disables the validation scheme for the rule files
runtimeModule{String}'@ruleenginejs/runtime'Runtime module name
moduleBaseDir{String}undefinedBase path for import modules in rule files
esModule{Boolean}trueEnable/disable ES modules syntax

License

Licensed under the MIT License.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago