Quick development guide
- After app is installed disable cache and enable debug output.
- https://github.com/LiveHelperChat/livehelperchat/blob/master/lhc_web/settings/settings.ini.default.php#L13-L16
- Change the following values to
debug_output => true templatecache => false templatecompile => false modulecompile => false
- To compile JS from lhc_web folder execute. This will compile main JS and old widget javascript files.
npm install && gulp
- To compile new widget V2
- Recompile static JS/CSS files. This is required if you change core JS files. It also avoids missing CSS/JS files if more than one server is used.
php cron.php -s site_admin -c cron/util/generate_css -p 1 && gulp js-static
During development process make sure you disable network cache Network -> Disable cache
in Chrome developer toolbar.
More usefull links
- It's possible to override any image in web application without overriding default ones
- It's possible to override any CSS in web application without overriding default ones
- It's possible to override any template without overriding default ones
- It's possible to override any module, class etc.
- It's possible to override translations
- If you are not sure which template is used enable debug output
- If you change templates and nothing changes disable cache
- You can write your own extensions
- You can override default translations
- We are using bootstrap 4 CSS framework.