How to start working with Benchpress?
-
I do not have the theme nodebb-theme-rocket-master.
On the forum, I read that there is a Benchpress tool.
Can I use Benchpress to view the .tpl files from the theme
nodebb-theme-rocket-master
Is there a quick start for
Benchpress? Can someone advise how to get started and what to see with Benchpress? -
Benchpress is the template engine for NodeBB. It powers how templates are parsed and rendered.
There is an introduction on the GitHub page for the project: https://github.com/benchpressjs/benchpressjs
And there is complete documentation here: https://github.com/benchpressjs/benchpressjs/blob/master/docs/readme.md
-
I'm new to these technologies. Please write how you can use Benchpress. Make
Please give us a brief overview. Is there a way to see the topic nodebb-theme-rocket-master with Benchpress and understand why it does not work now? Can I use Benchpress for analysis, debugging, and modification
nodebb-theme-rocket-master?
How to do it? -
@rahmon
C:\woprk\atb\node_modules\benchpressjs>npm test[email protected] pretest C:\woprk\atb\node_modules\benchpressjs
grunt babel && eslint --cache .Running "babel:dist" (babel) task
Done.
Oops! Something went wrong!
ESLint: 4.18.1.
ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:eslint --init
ESLint looked for configuration files in C:\woprk\atb\node_modules\benchpressjs\build and its ancestors. If it found none, it then looked in your home directory.
If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint
npm ERR! Test failed. See above for more details.
How to fix this error?
-
@rahmon what are you trying to do? I think you have a serious misunderstanding of what benchpress is for and how it works.
-
@rahmon ok, but are you trying to use benchpress in your application? Are you trying to develop benchpress? Are you trying to install benchpress in NodeBB?
What are you trying to do with benchpress? Why are you installing it?
If you are trying to load up the benchpress project and run the benchpress tests, you should clone the benchpress repository. An npm install doesn't include the same files.
But there's no reason to do that unless you want to work on benchpress itself to improve the template engine in some way.
-
@julian said in How to start working with Benchpress?:
Benchpress
Please write how to use the template rendering engine NodeBB with Benchpress
Very much I ask the brief instruction.
I want to look at topic.tpl and category.tpl from the topic nodebb-theme-rocket-master or any other topic