Build System
The build process is needed to download third party libraries, compile templates, minify and concatenate JavaScript files, etc. It means that you have to use build system whenever you want to modify the Core of Mibew Messenger and/or use the development version of Mibew Messenger from the repository.
Mibew Messenger utilizes Gulp.js as a build system. To make Gulp run node.js and npm are required. For most common build tasks PHP is required too.
There are several steps one should take before using the development version of Mibew Messenger from the repository:
- Obtain a local copy of the repository using
git clone
, download button, or in another way. - Make sure that PHP is installed and can be used in CLI mode.
- Install node.js and npm.
- Install Gulp.
- Navigate to
src/
directory of the local copy of the repository. - Install npm dependencies using
npm install
. - Run Gulp to build Mibew Messenger using
gulp default
.
Finally, .tar.gz
and .zip
archives of the ready-to-use development version
of Mibew Messenger will be available in src/release
directory.
The default
task that was given above is just one of many available build
tasks. The full list of build tasks can be obtained by running gulp -T
in
src/
directory of the repository. Here are descriptions of several most
frequently used tasks:
gulp rebuild
: installs all necessary dependencies and compile (minifies, concats, ...) all files that should be compiled. The result of the task is a redy-to-use development version of Mibew Messenger.gulp default
: the same asgulp rebuild
but also packs Mibew Messenger into the installation archives insrc/release/
directory.gulp phpcs
: runs PHP Code Sniffer to check whether the source code complies with the coding style.