apeman-tree
Inheritance tree inspector for apeman.
Installation
Install apeman-tree module via npm.
$ npm install apeman-tree -g
Usage
- Prepare an Apemanfile.js at your project root.
- Run the command via CLI.
Apemanfile.js
/** Example of Apemanfile.js */ 'use strict' moduleexports = $cwd: __dirname $pkg: /* ... */ $proto: $tmpls: /* ... */ $tasks: /* ... */ $apps: /* ... */ $wchs: /* ... */
Then,
$ apeman-tree my-demo-pkg├── apeman-proto-abstract└── apeman-proto-plain ├── apeman-proto-npm │ └── apeman-proto-abstract ├── apeman-proto-basic │ └── apeman-proto-abstract └── apeman-proto-abstract
CLI Options
$ apeman-tree -h Usage: apeman-tree [options] Show project inheritance in the tree. Options: -h, --help output usage information -V, --version output the version number -c, --configuration <configuration> Pathname of Apemanfile Examples: $ apeman-tree # Show inheritance tree of current project.
Programmatic API
apeman-tree also provide programmatic API.
Firstly, install the module locally.
$ npm install apeman-tree --save-dev
Then,
'use strict' const apemanTree =
Programmatic Options
Key | Description | Default |
---|---|---|
configuration | Pathname of Apemanfile |
License
This software is released under the MIT License.