Download the PHP package petemc/sculpin-gulp-bundle without Composer
On this page you can find all versions of the php package petemc/sculpin-gulp-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download petemc/sculpin-gulp-bundle
More information about petemc/sculpin-gulp-bundle
Files in petemc/sculpin-gulp-bundle
Package sculpin-gulp-bundle
Short Description Run gulp tasks with sculpin generate
License MIT
Informations about the package sculpin-gulp-bundle
Sculpin Gulp Bundle
This bundle will allow you to run gulp tasks from the sculpin generage
or sculpin generate --watch
commands.
For example, you might want to build some SASS files to CSS, minify or concat your asset files.
Pre-requisites
This package currently isn't as fancy as to install npm or gulp, that task is left up to the user. These commands will install gulp as an npm package.
First make sure you have a package.json
file with this command
$ [ -f package.json ] && echo "package.json exists" || echo "{}" > package.json
Require gulp as a dev dependancy
$ npm install gulp --save-dev
Check gulp is working
$ gulp
Create a gulpfile.js
in your project root and put your tasks in there. You should name one task sculpin
, as this will be run by the sculpin generate
command (see example further down).
Setup
Edit your sculpin.json
file to include this package, then install by running sculpin update
.
Create (or update an existing) app/SculpinKernel.php
file to require the package with the following code:
How to use
Create a gulpfile.js
in the root of your Sculpin project. Make sure you have a task called sculpin
. This will be executed after each regeneration of the Sculpin site, either with sculpin generate
or sculpin generate --watch
Example gulpfile.js
which runs one task to build sass: