Leech tool for NodeBB
Add a button to leech content from many sources and convert to NodeBB posts.
Admin guide
Installation
Install it from ACP > Plugins > Install Plugins > Find Plugins, or using CLI:
npm install nodebb-plugin-leech-tool
Setup
After installing this plugin and restarting NodeBB:
- Navigate to ACP > Extend > Widgets.
- Select Leech Button in Available widgets.
- Drag and drop it to whichever widget area you want. You may drop it in global, the button will only show up in appropriate pages (category and topic).
Settings
(developing)
Navigate to ACP > Plugins > Leech Tool. Here you can customize parsing and rendering behaviors.
Note: using leech tool on a category page will create new topic in that category, on a topic page will reply to that topic.
Development
Hot-reload
Watch for source changes and rebuild es5 code by babel(for now watching not working)
npm start dev
- Watch for es5 code changes and reload NodeBB
cd path/to/NodeBB
grunt
test
Lint (eslint):
npm start lint
Unittest:
npm start test
Code coverage:
npm start coverage
Test driven development:
npm start tdd
Note: grunt
won't watch for config files change, every time you change plugin.json
or language file, stop and start grunt
again.