component-hooks

0.4.3 • Public • Published

Install

$ npm install component-hooks

Usage

component.json (local component)


{
  "name": "app",
  "jade": [
    "templates/index"
  ],
  "styl": [
    "style"
  ],
  "coffee": [
    "index",
    "collections",
    "views"
  ],
  "scripts": [
    "other-script.js"
  ],
  "styles": [
    "other-style.css"
  ]
  ...
}

server.js

var builder = require('component-hooks');
var express = require('express');

var app = express();

app.get('/', function(req, res){

  builder(__dirname)
    .dev()
    .end(function(err){
      if (err) return res.send(500, err.message);
      res.render('index');
    });

});
 
app.listen(3000);

Example

$ make example

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.4.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.4.30
0.4.20
0.4.10
0.4.00
0.3.90
0.3.80
0.3.70
0.3.60
0.3.50
0.3.40
0.3.30
0.3.20
0.3.10
0.3.00
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i component-hooks

Weekly Downloads

0

Version

0.4.3

License

MIT

Last publish

Collaborators

  • kelonye