0.1.0 • Published 9 years ago
related-articles-plugin v0.1.0
related articles plugin - Megadraft Plugin
Usage
Include the plugin in the plugins prop of your Megadraft instance.
import React from "react";
import ReactDOM from "react-dom";
import Megadraft from "megadraft";
import plugin from "related-articles-plugin";
class Example extends React.Component {
  render(){
    <Megadraft plugins={[plugin]} />
  }
}
ReactDOM.render(<Example />, document.getElementById("container"));Contributing
Install, run, test.
# Install npm dependencies
make setup
# Gulp dev-server task with webpack + sass running on http://localhost:8080/
make run
# Run mocha tests + eslint
make testIf you're constantly running tests, there's a faster alternative using mocha's watch feature:
make watch_unitReleasing
There's a prepublish script entry on package.json that runs build tasks
before publishing the package.
npm publishThird Party
The sample plugin uses the extension icon from https://design.google.com/icons/ under Apache License Version 2.0.
0.1.0
9 years ago