• 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

Supporting ES6 (in 2017)?

Scheduled Pinned Locked Moved NodeBB Development
es6
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.
  • 7kbot7 Offline
    7kbot7 Offline
    7kbot
    wrote on last edited by
    #1

    merry xmas to nodebb!

    async / await is the best syntax in ES6 to replace promise and async.waterfall. So I've searched the forum on whether nodebb development / plugin support ES6 but I can't seem to find the definite answer.

    so just to confirm if Nodebb (server-side) support ES6 natively? or do i need to transpile with babel?

    Thanks and wishes everyone a happy and peaceful new year in 2018.

    PitaJP 1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    replied to 7kbot on last edited by
    #2

    @7kbot first of all, async and await are not part of ES6 (ES2015). They are part of ES2016.

    Second of all, NodeBB only supports Node versions 6, 7, and 8. Node v6 supports all of ES6, but does not support async/await. Node 8 does support all of those things natively, so you can develop your plugin to use these things and tell people to use Node 8 if they want to use your plugin.

    7kbot7 1 Reply Last reply
    1
  • 7kbot7 Offline
    7kbot7 Offline
    7kbot
    replied to PitaJ on last edited by
    #3

    @pitaj Thanks for the correction!

    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