This repository contains a demo showing how to use Puli in a reusable Composer package 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 package 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 /puli/demo-package resto map the Puli path/puli/demo-packageto theresdirectory