Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bvalosek/billy-activities
A service that allows for use of activities for state management in Billy applications
https://github.com/bvalosek/billy-activities
Last synced: 10 days ago
JSON representation
A service that allows for use of activities for state management in Billy applications
- Host: GitHub
- URL: https://github.com/bvalosek/billy-activities
- Owner: bvalosek
- Created: 2014-09-16T00:19:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-16T03:13:33.000Z (over 10 years ago)
- Last Synced: 2024-04-29T21:10:30.972Z (8 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# billy-activities
[![Build Status](https://travis-ci.org/bvalosek/billy-activities.png?branch=master)](https://travis-ci.org/bvalosek/billy-activities)
[![NPM version](https://badge.fury.io/js/billy-activities.png)](http://badge.fury.io/js/billy-activities)A service that allows for the use of
[activities](https://github.com/bvalosek/activities) for state management in
[Billy](https://github.com/bvalosek/billy) Applications## Install
```
$ npm install billy-activities
```## Usage
```javascript
var Application = require('billy');
var ActivityService = require('billy-activities');
var HomeScreenActivity = require('./activities/HomeScreenActivity.js');var app = new Application();
app.service(ActivityService);
app.config('navigator.startup', HomeScreenActivity);app.start();
```## Injectables
New dependencies that you can use after adding this service:
tag | type |description | notes
-----|------|------------|-------
`navigator` | `Navigator` | The [activity navigator](https://github.com/bvalosek/activities/blob/master/lib/Navigator.js) interface | Use the navigator to `start` and `finish` activities across the application## Configs
Available config properties:
config | type | description | default value | notes
--------|------|-------------|---------------|------
`navigator.startup` | `Activity` | Activity to to launch at app startup | `null` | |## Testing
```
$ npm test
```## License
MIT