apeman-init
apeman CLI tool to initialize apeman project.
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-init 
SYNC missed versions from official npm registry.

apeman-init

Build Status Code Climate Code Coverage npm Version

apeman CLI tool to initialize apeman project.

Overview

apeman-init command initialize a directory as an apeman project.

After initialized, you'll be able to use various apeman command at the project root directory.

Installation

npm install apeman-init -g

Usage

Call apeman-init command at your project root directory to initialize as an apeman project.

$ apeman-init

CLI Options

$ apeman-init -h

  Usage: apeman-init [options] 

  Initialize a directory as an apeman project.

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -f, --force              Force to init.
    -d, --dirname <dirname>  Directory name to init.
    -s, --silent             Disable console logs
    -p, --pkg <pkg>          Path of package.json


Programmatic API

apeman-init also provide programmatic API.

Firstly, install the module locally.

$ npm install apeman-init --save-dev

Then,

#!/usr/bin/env node
'use strict'

const apemanInit = require('apeman-init')

apemanInit({}).then(() => {
  /* ... */
})

Programmatic Options

Key Description Default
force Force to init.
dirname Directory name to init. process.cwd()
silent Disable console logs
pkg Path of package.json './package.json'

License

This software is released under the MIT License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 62
Dependencies (4)
Dev Dependencies (8)
Dependents (3)

Copyright 2014 - 2016 © taobao.org |