• 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

npm scoped theme...

Scheduled Pinned Locked Moved Technical Support
4 Posts 2 Posters 1.8k 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.
  • F Offline
    F Offline
    Flemming Hansen
    wrote on last edited by
    #1

    Okay, cloned Lavender, made the template changes, published to npm as scoped module ("@username/[...]"), which is new to me, npm installed on server, restarted the forum, and 🐼

    Changed the Id in theme.json to not conflict with the original. And the theme name.

    What am I missing to get it onto the ACP plugins list?

    Bonus! Is there a way to effect template changes without having to restart the forum, daarn slow 🐪

    Cheers & thanks!

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

    This happens because npm puts the packages in a scoped folder, and NodeBB only checks the root node_modules folder. NBB would have to look in each directory that starts with @ for plugins. There may be other issues too.

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

    Using a renamed or namedspaced package name such as nodebb-theme-myname-lavender might be better until scoped support is added. (Although, it is ugly)

    1 Reply Last reply
    1
  • F Offline
    F Offline
    Flemming Hansen
    wrote on last edited by
    #4

    Yeah, I suddenly remembered how to do this the smart way, not using npm when developing, just git cloning the repo (to lazy to mount the server disk locally 😃

    I just found this https://github.com/NodeBB/nodebb-theme-quickstart, and it's quite strange that I didn't find it before, but now at least I know to search this forum instead of relying on Google =P

    Thanks for the reply!

    1 Reply Last reply
    1
  • Eduardo SilvaE Eduardo Silva referenced this topic on

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