Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


1.3.3 • Public • Published

Octavius project

This is a simple Node.js project that use Gulp for precompile all assets:

  • Jade
  • SCSS with Autoprefixer
  • CoffeeScript
  • Generated iconsfont
  • Full Bower integration
  • Organize folder structure (copying fonts, sounds etc)
  • Production mode with minified assets
  • Express server for standalone static sites

Main features

  • Easy installation and ready to work after 3 commands
  • CoffeeScript based Gulpfile
  • Useful Gulpfiles structure with tasks, utils etc
  • Full bower support (Automatic concat and optimize bower components from bower.js)
  • BrowserSync support with * external link (no need Chrome extension)


  • *nix like OS (Mac OS is recommended)
  • Homebrew (Mac OS) or your operating system package manager
  • node.js as main engine
  • npm as node.js package manager

Installation (Mac OS)


brew install node

Node Package Manager (NPM)

Note: strongly unrecommended to install NPM via Homebrew, because there may be problems with access permissions

curl -L | sh

Install required NPM packages

npm install -g octavius

Work with Octavius

Start Octavius


Check Octavius version

octavius -v or octavius --version

Extend and override Octavius tasks

Octavius supports custom tasks. All you need is create octavius folder in your application and add tasks folder inside it. After that you can create your own tasks which extends core Octavius Task Class (or any existed Task). Here is example of simple sounds copy task:

CopyTask = require "#{__base}/core/tasks/copy"

class SoundsTask extends CopyTask
    destination: 'sounds'

module.exports = SoundsTask

After restart Octavius your custom task will be added into Tasks stack.

Bower components installation

All bower components automatically concatenates into one file libraries.js. Gulp get main file of each component by its 'main' attribute in bower.json. So if you want automatically attach new component to your project you shoud do it with this command:

bower install backbone --save

Important! Octavius does not find your component without dependency in bower.json. Flag --save means that the information about the component will be included in the main bower.json file.

Production mode

You can run Octavius in production mode with this simple environment variable:


Express server

Octavius can run server on specified port with this environment variable:


Now you can see your website without BrowserSync with this address:


It is very useful for Cloud Services, for example, Heroku. Just add package.json with this content in your project's root directory:

  "name": "Project Name",
  "version": "1.0.0",
  "description": "Project description",
  "scripts": {
    "start": "octavius"
  "dependencies": {
    "octavius": "^1.1.4"
  "engines": {
    "node": "5.0.0"

and push your project to heroku master branch.


npm i octavius

Downloadsweekly downloads









last publish


  • avatar