3.0.2 • Published 10 years ago

apeman-proto-adminapi v3.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

apeman-proto-adminapi

Build Status Code Climate Code Coverage npm Version JS Standard

Prototype for admin api projects.

Installation

$ npm install apeman-proto-adminapi --save

Usage

/** This is an example Apemanfile.js */

'use strict'

module.exports = {
    $ctx: {
        // Project context
    },
    $pkg: {/* ... */},
    $proto: [
        // Inherit apeman-proto-adminapi project.
        require('apeman-proto-adminapi')
    ],
    $tmpls: {/* ... */},
    $tasks: {/* ... */}
}

Apemanfile Configurations

$pkg

NameValue
nameapeman-proto-adminapi
version3.0.2
descriptionPrototype for admin api projects.

$proto

$tmpls

PathForceModeTmplData
constants/.constants.js.budfalse'644'#!/usr/bin/env node /** * Bud file ...{"year":2016,"params":{"type":"consts...
constants/index.jsfalse'644'/** * Exports constants modules. * ...{"params":{},"generator":"apeman-tmpl...
errors/.html.budfalse'644'/** * Bud file for error * Executin...{"year":2016,"params":{"type":"error"...
middlewares/.middleware.js.budfalse'644'#!/usr/bin/env node /** * Bud file ...{"year":2016,"params":{"type":"apiMid...
middlewares/index.jsfalse'644'/** * Exports middleware modules. *...{"params":{},"generator":"apeman-tmpl...
public/humans.txtfalse'644'{{! apeman-tmpl-humans }} /* TEAM */ ...{"params":{},"generator":"apeman-tmpl...
public/robots.txtfalse'644'{{! apeman-tmpl-robot }}# robot.txt #...{"params":{"disallow":["errors","tmp"...
routes/.route.js.budfalse'644'#!/usr/bin/env node /** * Bud file ...{"year":2016,"params":{"type":"adminA...
routes/index.jsfalse'644'/** * Exports route modules. * * G...{"params":{},"generator":"apeman-tmpl...
schemas/.schema.js.budfalse'644'#!/usr/bin/env node /** * Bud file ...{"year":2016,"params":{"type":"schema...
schemas/index.jsfalse'644'/** * Exports schema settings{{#if n...{"params":{},"generator":"apeman-tmpl...
settings/.setting.json.budfalse'644'#!/usr/bin/env node /** * Bud file ...{"year":2016,"params":{"type":"settin...
settings/index.jsfalse'644'/** * Project settings. * * Genera...{"params":{},"generator":"apeman-tmpl...
tests/.test.js.budfalse'644'#!/usr/bin/env node /** * Bud file ...{"year":2016,"params":{"type":"route-...

$apps

NameDescription
adminapi:dynamicServe dynamic content
adminapi:staticServe static files
api:dynamicServe dynamic content
api:middleware{"/":[]}
api:staticServe static files
dynamic:body{}
dynamic:delayAdd delay.
dynamic:envSet env header to response.
dynamic:logLog requests.
dynamic:middleware{"/":[]}
public:staticServe static files.
session:enableEnable session feature.
session:flushAdd flush message support with session

$tasks

NameDescription
adminapi:mkdirGenerate directories for API app.
adminapi:renderRender bud files.
api:mkdirGenerate directories for API app.
api:renderRender bud files.
app:fmtFormat a json file.
app:mkdirGenerate directories for app.
app:renderRender bud files.
app:test"mocha:run"
mocha:mkdirGenerate directories for project with mocha.
mocha:renderRender files for project with mocha.
mocha:runRun mocha tests.
test:mkdirGenerate directories.
test:renderRender coz bud files.
wtch:listList available watches.
wtch:startStart all watches.

$wtchs

NameDescription
api:render{"pattern":"+(schemas)/*/..bud"}
app:render{"pattern":"+(errorsconstantspublicroutestestssettings)/*/..bud"}
test:render{"pattern":"test/*/..bud"}

$needs

BinHow to install
apemannpm install -g apeman
mochanpm install -g mocha

License

This software is released under the MIT License.

Links

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago