Rishi Satsangi's website
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
configs
public
scripts
src
.editorconfig
.env.shadow
.gitignore
README.md
composer.json
package.json

README.md

Rishi Satsangi's website

A Slim PHP based website with Backbone.js and Twig thrown in

initialize

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

build help

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

build production:

php build.php -cache -configs -js -npm -php -ugly

build dev js:

php build.php -js