Module host for nail build enviroments.
nail-core serves as a module host for nail build enviroments.
- create classes from structured objects
- create custom builders with modules
- relevant meta data is added to all constructors
- optional [namespace][About.namespaces] support
- lean API
To create a new build enviroment use NailApi.use:
myNail = require'nail-core'use myModulemyOtherModule
It is recomended to define your nail builder in a seperate file and load it with require:
module.exports = requirenail-coreuse myModulemyOtherModule
Once you have created a nail builder you can create new classes with the "NailApi.to" function.
myNailto "myNamespace"MyClass:properties:name: 'anon'methods:: "hello "
For a quick start use the nail bundle.
It already contains some modules and illustartes how to use nail builders to create new classes.
##Setup Install with npm:
npm install nail-core
Clone with GIT:
git clone git://github.com/noptic/nail-core.git
##Documentation Head here → docs
- underscore ~1.5.1