Coder Social home page Coder Social logo

kirby-gulpfile's Introduction

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

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, sass and autoprefixer gulp plugins. Refer to the correspondic documentations if you need more fine tuning.

kirby-gulpfile's People

Contributors

thomas-lebeau avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.