0.1.3 • Published 4 years ago

@liveaxle/mediafly v0.1.3

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

Liveaxle - Mediafly (LAMF)

This repository is to provide a module for common tasks involving Mediafly API's within Liveaxle applications.

Installing

npm install @liveaxle/mediafly;

Usage

ES6

import LAMF from '@liveaxle/mediafly';

LAMF.

Browser (and Angular 1.x)

import '@liveaxle/mediafly/bin/lamf.js'

or

<script src="node_modules/@liveaxle/mediafly/bin/lamf.js"></script>

Both of these reference options will give you:

window.LAMF

Reference

Models

Event

Intended for creating postEvent models.

RIGHT NOW (12/20) THIS IS COUPLED TO A MllerCoors MODEL

let event = new LAMF.Models.Event(<data {}>, <config {}>);

if(event.error) {
  // validation failed - y u do dis?
} else {
  // create post event
}

UViewEvent

Intended for creating postEvent models in NBCUView.

let event = new LAMF.Models.UViewEvent(<data {}>, <config {}>);

if(event.error) {
  // validation failed - y u do dis?
} else {
  // create post event
}

Developing

If you need to change the model simply add the new fields you need represented. Please also run npm run test:event after changing the model so we know there at least wont be any runtime errors.

Publishing

After making a change do the following to make your code available: 1. npm install 2. npm login follow the prompt and log in to npm 3. Make sure your repo is up to date with any remote changes or else later commands will break 4. npm run build 5. npm version patch 6. Commit the things 7. git push origin --tags 8. npm publish

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago