All Projects → spoeken → gulp-craftcms

spoeken / gulp-craftcms

Licence: other
Gulp workflow for Craft

Programming Languages

CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language
PHP
23972 projects - #3 most used programming language
ApacheConf
554 projects

Workflow for Craft with Gulp

Requires Nodejs and Gulp

Getting started

Run npm install and bower install

Compass needs the compass ruby gem. If you don't already have it: gem update --system and gem install compass

Download the latest version of craft and move the craft folder to the root.

Tasks

note: Don't touch the templates folder in /craft it will be overwritten on build. Work on the ones in app/templates

  • gulp watch to start the watch task, at the moment you will have to use a browser extention for live reload.

  • gulp to build for production, all the magic happens and template files will be moved to craft/templates, resources (images/js/css) will be concatinated, minified and wrapped in silk before they end up in /public.

  • gulp bower Injects bower dependencies into _layout.html. This task will run on gulp watch as well. Remember to --save when installing components.

Set /app as server root on development and /public for production.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].