Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Node build script for Lava Plugins
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
src
.gitattributes
.gitignore
compile.bat
lofty
lofty-build.sublime-project
lofty-build.sublime-workspace
package.json
readme.md

readme.md

Lofty

Lofty (named after the character from Bob The Builder) is a build script for WordPress plugins created using the Lava framework.

Features

  • Compiles, concatenates and minifies coffeescript
  • Compiles, concatenates and minifies LESS
  • Namespaces LAVA_ classes
  • Plugin header creation

Installation

$ npm install -g lofty

Configuration file

Lofty uses a configuration file (lofty.yaml)

test_server: C:\some location\

If you have a local wordpress installation you can set lofty to automatically copy the build files to the test server by specifying its path here.

Plugin Definition file

Plugin defintion file (plugin.yaml)

name: Blank Plugin
version: 1.0
description: Blank Plugin - update configuration in lava.yaml
url: http://www.google.com
author: Daniel Chatfield
author_url: http://www.volcanicpixels.com
license: GPLv2
class_namespace: Volcanic_Pixels_Blank_Plugin    

Building

This creates a development build (no minifying) and puts it in the build directory.

$ lofty

Distribution builds

When you are ready to distribute this will create a copy in the dist folder.

$ lofty -d

Verbose messaging

$ lofty -v
Something went wrong with that request. Please try again.