Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Latest commit

 

History

History
47 lines (32 loc) · 1.23 KB

Plugins.md

File metadata and controls

47 lines (32 loc) · 1.23 KB

Plugins

Using a plugin

Add the plugin you want to your dependencies in package.json, e.g. if you need the aero-ajax plugin:

"dependencies": {
	"aero": "*",
	"aero-ajax": "*"
}

Making your own plugin

A plugin is just an npm package with the name prefix aero- which defines a simple API. The following 3 methods can be used to define a plugin:

As a function

module.exports = app => console.log('My awesome plugin got loaded!')

List of scripts

exports.scripts = ['lib/jquery'] // lib/jquery.js

List of styles

exports.styles = ['html-reset'] // html-reset.styl

Available plugins

Official plugins are hosted on the Aero organization page.

Highly recommended plugins

These plugins are a must-have for any modern site and they synergize well with Aero:

Including the ajax plugin will also change the behaviour of LiveReload to reload your pages via AJAX calls instead of a full browser reload.

You can also use:

  • aero-git to instantly see changes on a git push