Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomas-lebeau/kirby-gulpfile
🐹Gulpfile boilerplate for kirby CMS development workflow
https://github.com/thomas-lebeau/kirby-gulpfile
Last synced: 26 days ago
JSON representation
🐹Gulpfile boilerplate for kirby CMS development workflow
- Host: GitHub
- URL: https://github.com/thomas-lebeau/kirby-gulpfile
- Owner: thomas-lebeau
- License: mit
- Created: 2015-08-29T12:44:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T13:50:14.000Z (over 9 years ago)
- Last Synced: 2024-10-26T22:01:59.856Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kirby-gulpfile
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` and `scss` files
- **zip:** makes and archive of your kirby installations, useful for theme developers.
- **serve:** launch a local php server and watch for sources changes.## Getting Started
### Prerequisites
- **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](https://github.com/brigade/scss-lint)### Instalation
- Copy `gulpfile.js`, `package.json` and `.eslintrc` intoo yhe root of your kirby installation.
- run `npm install`# Usage
## Configuration
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](https://github.com/micahblu/gulp-connect-php), [sass](https://github.com/dlmanning/gulp-sass) and [autoprefixer](https://github.com/sindresorhus/gulp-autoprefixer) gulp plugins. Refer to the correspondic documentations if you need more fine tuning.