• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Any efficient way on plugin development?

Scheduled Pinned Locked Moved NodeBB Plugins
3 Posts 2 Posters 1.0k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Bruce LeeB Offline
    Bruce LeeB Offline
    Bruce Lee Anime Lovers
    wrote on last edited by
    #1

    Hi, currently whenever I make any modification to my plugin, I will need to reload the entire list of plugins. The reloading process will take ~5 secs.

    Is there any efficient method to reload only my plugin or only the changes that I have made? (for rapid development).

    Any advice is appreciated. Thanks!

    1 Reply Last reply
    0
  • yariplusY Offline
    yariplusY Offline
    yariplus Community Rep
    wrote on last edited by
    #2

    Absolutely. This is what Grunt is for, Grunt will watch your plugin files and reload resources when necessary.

    Instead of starting your NodeBB with ./nodebb start, just run grunt. It runs in interactive mode, so make sure you keep the window/session open while developing.

    Now if you change a file, Grunt will see the change and you can watch as it reloads only the necessary resources, and it's much faster at it than in production mode.

    1 Reply Last reply
    2
  • Bruce LeeB Offline
    Bruce LeeB Offline
    Bruce Lee Anime Lovers
    wrote on last edited by
    #3

    Thank @yariplus, learn something new today. 👍

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development