apeman-proto-serverlib
v2.0.2
Published
Prototype of server-lib
Downloads
6
Readme
apeman-proto-serverlib
Prototype of server-lib
Installation
$ npm install apeman-proto-serverlib --save
Usage
/** This is an example Apemanfile.js */
'use strict'
module.exports = {
$ctx: {
// Project context
},
$pkg: { /* ... */ },
$proto: [
// Inherit apeman-proto-nodelib project.
require('apeman-proto-nodelib')
],
$tmpls: { /* ... */ },
$tasks: { /* ... */ }
}
Apemanfile Configurations
$pkg
| Name | Value | | --- | ---- | | name | apeman-proto-serverlib | | version | 2.0.2 | | description | Prototype of server-lib |
$proto
$tmpls
| Path | Force | Mode | Tmpl | Data |
| ---- | ---- | ---- | --- | --- |
| requesting/.extension.js.bud | false | '644' | #!/usr/bin/env node /** * Bud file ...
| {"year":2016,"params":{"type":"extens... |
| responding/.extension.js.bud | false | '644' | #!/usr/bin/env node /** * Bud file ...
| {"year":2016,"params":{"type":"extens... |
| tests/requesting_tests/.test.js.bud | false | '644' | #!/usr/bin/env node /** * Bud file ...
| {"year":2016,"params":{"type":"extens... |
| tests/responding_test/.test.js.bud | false | '644' | #!/usr/bin/env node /** * Bud file ...
| {"year":2016,"params":{"type":"extens... |
$tasks
| Name | Description | | ---- | --- | | fs:chmod | Change file permissions. | | fs:mkdir | Generate directories. | | fs:sweep | Remove empty directories. | | fs:unlink | | | mocha:mkdir | Generate directories for project with mocha. | | mocha:render | Render files for project with mocha. | | mocha:run | Run mocha tests. | | serverlib:mkdir | Generate directories for serverlib. | | serverlib:render | Render coz bud files. | | serverlib:test | ["mocha:run"] | | test:mkdir | Generate directories. | | test:render | Render coz bud files. |
$wtchs
| Name | Description | | ---- | --- | | serverlib.render | {"pattern":"+(requesting|responding|tests)//.*.bud"} | | test:render | {"pattern":["test//.*.bud"]} |
$needs
| Bin | How to install |
| --- | ----- |
| apeman | npm install -g apeman
|
| mocha | npm install -g mocha
|
License
This software is released under the MIT License.