@tuấn-nguyễn-xuân said in Google map plugin:
Build google map plugin for content? It's comming soon!
OpenStreetMap https://community.nodebb.org/topic/11772/nodebb-plugin-osm-map-openstreetmap-based-map-to-locate-users
I've created and published a tool for helping to generate new NodeBB plugins. I'd be interested in people's feedback on how well it works and additional functionality. Launching the tool prompts the user about necessary features and then generates a plugin .
The generator can currently help to:
I've tested this out in a variety of ways and it seems to work properly as of NodeBB 0.8.2
You can find the ReadMe with installation instructions here:
Thanks for any feedback!
Nice work!
Thank you!
Awesome. I think the term for this is a Yeoman Generator?
@psychobunny I had looked at the Yeoman/Grunt approach, but this uses Slush/Gulp.
To everyone who doesn't know what to say: The word you are looking for is wow!.
Ha! Cool. Thanks!
@jongarrison
You've got mail!
jongarrison/slush-nodebb-plugin#1
@rbeer Oh man, you're on it! I'll check out the pull request.
Any chances of this new tool being able to wire up javascripts to work with nodebb?
Opening up easy access to javascripts directly as nodebb plugins, rather than secondary installs, would be a giant leap forward.
@lulzdev Like what?
many javascripts would require a custom plugin to use with Nodebb, the more plugins you use the more expensive developing becomes. One that comes to mind offhand is the javascript meme generator. Just trying to understand the new hotness everyone is happy about.
@lulzdev You can include JavaScript in the custom HTML header section in the ACP
@pitaj
It was my understanding that that was a method that reduces the speed of your site. A reduction in speed that could be mitigated by using plugins.
@lulzdev I don't think so
Hmm, was it CSS in the custom section then?(rather than making template changes instead?) I remember someone talking about causing slowdowns in that custom section.
@lulzdev the generator can register a js file in the plugin.json and include a stub file for you. Give it a try and let me know how it goes.
Just a note that I updated this plugin to correctly do the two part NodeBB custom routes (api/rendered). If anyone has any feedback, I'd appreciate it.
@lulzdev Sorry for the late reply, but I just ran into a javascript/css inclusion case where I wanted both included as static files for dev. I think just overriding the header.tpl and then linking to static js/css files in your plugin can be good for dev purposes.