megadraft-related-articles-plugin

0.2.5 • Public • Published

Related Articles Plugin - Megadraft Plugin Build Status

Usage

Include the plugin in the plugins prop of your Megadraft instance.

import React from "react";
import ReactDOM from "react-dom";
import {MegadraftEditor} from "megadraft";
 
import plugin from "related-articles-plugin";
 
class Example extends React.Component {
  render(){
    return (
      <MegadraftEditor 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 test

If you're constantly running tests, there's a faster alternative using mocha's watch feature:

make watch_unit

Releasing

There's a prepublish script entry on package.json that runs build tasks before publishing the package.

npm publish

Third Party

The sample plugin uses the extension icon from https://design.google.com/icons/ under Apache License Version 2.0.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.54latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.54
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.60
0.1.50
0.1.40
0.1.30
0.1.10
0.1.00

Package Sidebar

Install

npm i megadraft-related-articles-plugin

Homepage

globo.com

Weekly Downloads

4

Version

0.2.5

License

MIT

Unpacked Size

32.3 kB

Total Files

10

Last publish

Collaborators

  • celso.inacio_globo
  • matheus.lemes
  • fabiogsrj
  • igorgiusti
  • metal
  • wpjunior
  • mdionisio
  • sergiojorge
  • lousander
  • andre.gavino
  • markiing
  • ricobl
  • vierno