1.1.0 • Published 4 years ago

@knot/rollup-plugin v1.1.0

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

@knot/rollup-plugin

npm code style: prettier lerna semantic-release Commitizen friendly standard-readme compliant

CircleCI

A rollup plugin to automatically handle parsing and transforming knot code.

Integrate knot into your existing rollup build easily using this plugin.

Table of Contents

Install

npm install @knot/rollup-plugin
# or
yarn add @knot/rollup-plugin

Usage

In order to use knot modules with rollup, add the plugin to your existing configuration.

// rollup.config.js
import knotPlugin from '@knot/rollup-plugin';

export default {
  plugins: [
    // add the knot plugin to your existing configuration
    knotPlugin()
  ]
};

You will now be able to import a .kn file from any normal javascript file. When running rollup, these files will be automatically converted into native javascript modules.

There is also a more robust example.

Maintainers

@effervescentia

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2019 Ben Teichman