https://github.com/rumkin/hao
Hao is application manager powered with nodejs
https://github.com/rumkin/hao
Last synced: about 1 year ago
JSON representation
Hao is application manager powered with nodejs
- Host: GitHub
- URL: https://github.com/rumkin/hao
- Owner: rumkin
- Created: 2016-01-31T16:54:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-16T12:36:53.000Z (over 10 years ago)
- Last Synced: 2025-03-01T03:26:47.664Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Hao
Application management made easy with nodejs. Install application in `~/apps`
and link it in `~/bin` to make accessible from shell.
No more need to install application with `-g` flag. Just install it at home.
## Install
Install from npmjs.com
```
npm install hao -g
```
## Examples
Install npm hosted application:
```
hao install npm sample-app
```
Install github hosted application:
```
hao install github author/repo
```
Install local application:
```
hao install local ~/projects/hello-world
```
## Appfile
Application file name is `.app` it provide information about application, it's
dependencies and event callbacks.
Now appfile contains several directives:
* name
* description
* version
* bin
* beforeInstall
* afterInstall
* beforeUninstall
* afterUninstall
### Example
```yaml
# Application metadata
name: app
version: 0.1.0
description: Example application
# Application binary
bin: app.js
# Before installation event handler
beforeInstall:
- npm install .
- mkdir $HOME/data/app
# After uninstallation event handler
afterUninstall:
- rm -rf $HOME/data/app
```