NodeBB Grunt
-
@julian is planned
-
Awesome, this is really all I ever wanted for NodeBB plugin dev. Great work, I hope it will become the standard for all plugins to come
-
@frissdiegurke said:
@julian is planned
Yes please! I want to submit a design for the emoji plugin to make it awesome on both desktop and mobile (see: fb, slack, mobile interface) but coffeescript...
-
Going to give this a run next time I build a plugin or theme, looking forward to it. Is livereload part of your future plans, I didn't see it in your docs
-
Maybe I'm missing the point, but can't you do
nconf.get("something")
Instead of
One important (to me) compilation step is the meta-replace. Means every occurrences of @{...} within certain files get replaced with the respective meta data (either from within package.json or .meta.json or from some pre-defined values, details are planned for the wiki).
-
@psychobunny livereload would need to be triggered by the NodeBB core
grunt
task, since nodebb-grunt does only distribute the files for example into NodeBB/node_modules/nodebb-plugin-shortcuts/. From there on it relies on NodeBB Coregrunt
to notice those file changes and reload/restart NodeBB.
So livereload would need to trigger when NodeBB is fully restarted.@psychobunny said:
Maybe I'm missing the point, but can't you do
nconf.get("something")
Instead of
One important (to me) compilation step is the meta-replace. Means every occurrences of @{...} within certain files get replaced with the respective meta data (either from within package.json or .meta.json or from some pre-defined values, details are planned for the wiki).
- The compilation includes meta-data regarding the module without the need to
nconf.file()
at runtime. - The compilation works client-, server-side and everywhere else in your project (for example path names too) - as long as the files are matched by selectors within nodebb-grunt configuration.
- The compilation includes meta-data regarding the module without the need to
-
@frissdiegurke Are you moving away from coffeescript in general? or just for your nodebb plugins?
-
@yariplus in general
-
@frissdiegurke Good.