A Gulp boilerplate for smoother Kirby CMS development workflow.
Main tasks are:
- styles: compile, minify, autoprefix and sourcemap your
scss
files - scripts: concat, minify and sourcemap your
js
files - lint: lint your
js
andscss
files - zip: makes and archive of your kirby installations, useful for theme developers.
- serve: launch a local php server and watch for sources changes.
- PHP 5.4.0 or more is required to run the local php server.
- Ruby and scss-lint is require to lint your scss files. see scss-lint
- Copy
gulpfile.js
,package.json
and.eslintrc
intoo yhe root of your kirby installation. - run
npm install
The script
variable allow you to configure the generation of your js
files. It takes advantage of the js()
helper in kirby to autoload template specific script files.
The config
variable contain the configuration for the connect-php, sass and autoprefixer gulp plugins. Refer to the correspondic documentations if you need more fine tuning.