npm.io
8.0.0 • Published 10 years ago

apemanfile

Licence
MIT
Version
8.0.0
Deps
0
Vulns
0
Weekly
0

apemanfile

Build Status Code Climate Code Coverage npm Version JS Standard

Configuration file handler for apeman framework.

Installation

npm install apemanfile --save

Usage

Load an apemanfile for a project.

'use strict'

const apemanfile = require('apemanfile')

// Create an apemanfile instance
let configuration = apemanfile('my_project_dir/Apemanfile.js')

// Get property with keypath
let task = configuration.get('$task.build')
/* ... */

Spec

Properties in Apemanfile.js
Property Type Description
$api API interfaces
$children Child projects
$ctx Context values
$cwd Working directory path
$defaultCtx Default context values
$name Name of this apeman file
$needs Needed commands
$notes Description of properties
$parent Parent project
$pkg Package data
$proto Prototype projects
$src Path of loaded file
$ui User interface settings

License

This software is released under the MIT License.

Keywords