fish-extension
Build your own fish!
Last updated a year ago by julia.waltl .
ISC · Original npm · Tarball · package.json
$ cnpm install fish-extension 
SYNC missed versions from official npm registry.

Fish Node Module

Based on react-slingshot

Use

install package:

yarn add @create21st/fish-module

import module:

import FishModule from '@create21st/fish-module'

use:

<FishModule jsonData={content} onEnded={(next: boolean) => {} } onInspirationFound={(id: number) => {} } />

  • jsonData: mandatory. JSON Object containing the fish structure
  • onEnded(next: boolean): optional. callback to be executed when close element has finished. next boolean: indicates whether the next fish episode should be started.
  • onInspirationFound(id: number): optional. callback to be executed when correct answer is found by user. id: inspiration id, to be set in interaction object

Contribute

Install dependencies

https://code.facebook.com/posts/1840075619545360

If you don't have yarn jet, install it globally npm i -g yarn

Install Node Modules yarn

Development

To start Development Server & watcher simply run: npm start

Testing

To run all tests: npm run tests

Building

To build the whole Application run: npm run build

Publishing

Make sure you have your new version built and given it a new version number in the package-module.json file. Then, cd to build folder and run npm publish. (make sure you are logged in with your npm account)

Happy Developing! :)

Current Tags

  • 0.1.12                                ...           latest (a year ago)

1 Versions

  • 0.1.12                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |