I've implemented a primitive build script. At the moment it just concatenates our functions, but we can make it do more stuff in the future as needed.
Since we're concatenating, I removed the functions.php file. It's of course no longer necessary to manually add functions there.
To run the script:
composer run-script build
You should see a new file dist/zubr.php with all functions. If everything works, we can enable building automatically via Travis I have also enabled building automatically via Travis, must check if everything works smoothly.
NOTE: I'm assuming PHP is php (not sure if we should support other configurations, I'm open to suggestions).
I've implemented a primitive build script. At the moment it just concatenates our functions, but we can make it do more stuff in the future as needed.
Since we're concatenating, I removed the
functions.php
file. It's of course no longer necessary to manually add functions there.To run the script:
You should see a new file dist/zubr.php with all functions.
If everything works, we can enable building automatically via TravisI have also enabled building automatically via Travis, must check if everything works smoothly.NOTE: I'm assuming PHP is
php
(not sure if we should support other configurations, I'm open to suggestions).