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.jsonandGulpfile.jsto 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 resto map the Puli path/appto theresdirectory - Run
php puli.phar server --add localhost webto add the server "local" for the directoryweb - Run
php puli.phar publish /app/public localhostto publish your public resources to localhost. - Run
php puli.phar publish --installto install the public resources on the server.