This repository contains Trecli website source files.
Tested on node v13. This version of node is fixed in .nvmrc file. To use it run command:
$ nvm use
$ npm
$ npm start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
$ npm run build
This command generates static content into the build
directory and can be served using any static contents hosting service.
$ npm run gif:record
$ npm run gif:play
$ npm run gif:render
During rendering you may experience OpenGl error.
Simplest solution is described by @barbossa in this issue.
- You need find the folder where terminalizer have been installed. In my case it was -
/home/barbossa/.nvm/versions/node/v10.13.0/lib/node_modules
- Open
terminalizer/render/index.js
and before this lineapp.on('ready', createWindow);
you need add new line:app.disableHardwareAcceleration();
After this edits, your file will be look like this:
// Hide the Dock for macOS if (os.platform() == 'darwin') { app.dock.hide(); } app.disableHardwareAcceleration(); // <-- new code line // When the app is ready app.on('ready', createWindow);
This option disabled GPU areacceleration, more info here https://electronjs.org/docs/api/app#appdisablehardwareacceleration.