This repository contains a demo application showing how to use Puli in a Silex application together with Twig and Gulp JS.
Run the following commands after cloning the repository:
$ npm install
$ gulp
$ composer install
$ vendor/bin/puli publish --install
If you want to build this demo application from scratch, follow these steps:
- Create the basic directory layout
- Copy
composer.json
,package.json
andGulpfile.js
to the project - Run
npm install
- Run
composer install
- Put your SCSS files into
res/scss/
- Put your Javascript files into
res/js/
- Run
gulp
- Download
puli.phar
- Run
php puli.phar map /app res
to map the Puli path/app
to theres
directory - Run
php puli.phar server --add localhost web
to add the server "local" for the directoryweb
- Run
php puli.phar publish /app/public localhost
to publish your public resources to localhost. - Run
php puli.phar publish --install
to install the public resources on the server.