A Slim PHP based website with Backbone.js and Twig thrown in
composer install required composer libs for the build script to function:
curl -sS https://getcomposer.org/installer | php
php composer.phar install
copy .env from .env.shadow and edit values
cp .env.shadow .#!/usr/bin/env
vim .env
php build.php --help
displays help:
--cache/--cache
Clear cache and reset permissions of cache directory
--configs/--configs
Publish configs from .env
--help
Show the help page for this command.
--js/--javascript
Broswerify and minify the js
--npm/--npm
Install node modules from package.json
--php/--php
PHP/Composer install
--ugly/--uglify
Uglify the compiled js (leave empty in dev)
build production:
php build.php -cache -configs -js -npm -php -ugly
build dev js:
php build.php -js