A floobits workspace/disk watcher with hooks.
JavaScript
Latest commit 44a1d37 Jan 14, 2017 @ggreer ggreer Eh. Better error message.
Permalink
Failed to load latest commit information.
bin Rename Jul 31, 2013
lib Eh. Better error message. Jan 14, 2017
.eslintrc
.floo
.gitignore
LICENSE Apache 2.0 License Jun 22, 2013
NOTICE Rename flegmatic to floomatic Jul 31, 2013
README.md Add badge. Aug 29, 2014
floomatic.conf Create floomatic.conf Apr 23, 2015
floomatic.js ES6 cleanup. Jan 14, 2017
package.json 0.5.5 Jan 13, 2017

README.md

floomatic

A headless Floobits workspace and disk watcher. Handy for shipping changes to a testing server.

NPM version

Setup

1. npm install floomatic

  1. Go to your Floobits user settings.
  2. Copy your ~/.floorc from that page. Save it locally to ~/.floorc.

Now you're all set!

Usage

Share a directory

floomatic --share /path/to/share

Join a workspace

floomatic --join https://floobits.com/owner_name/workspace_name

If you don't want to ship local changes to the Floobits server, use --read-only

floomatic --read-only --join https://floobits.com/owner_name/workspace_name

Hooks

floomatic reads hooks from .floo in the base path of the shared directory. The format of .floo is:

{
    "url": "https://floobits.com/owner/workspace",
    "hooks": {
        "**": "/etc/init.d/apache restart",
        "static/less/**": "less static/less/*"
    }
}

The hooks in this example will restart apache whenever any file in the workspace gets changed, and will regenerate css from less whenever less files change. Patterns are matched by minimatch.