0.3.5 • Published 9 years ago

promise-ext v0.3.5

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

promise-ext Build Status Bower version NuGet version NPM version

An Ecmascript 6 Polyfill strictly following specification. Also contains extensions like timeout Promise, Processing Queue...

Installation

Using Bower:

$ bower install promise-ext --save

Using NuGet:

$ Install-Package PromiseExt

Using NPM:

$ npm install promise-ext --save

Usage

You could use promise-ext in different context.

Browser (with built file)

Include built script in your HTML file.

<script type="text/javascript" src="path/to/promise.min.js"></script>

Browser (AMD from source)

Configure RequireJS.

requirejs.config({
    paths: {
        promise: 'path/to/promise'
    }
});

Then include promise in your dependencies.

define(["promise"], function() {
    var promise = new Promise(function(resolve, reject) {

    });
});

Almond

If you want to build using RequireJS r.js and almond along with your project, you have to add some configuration.

{
    paths: {
        'promise': 'path/to/promise',
        'promise-almond': 'path/to/promise-almond'
    },
    include: [
        "path/to/promise-almond",
        "path/to/promise/class",
        "path/to/promise/extensions" // not mandatory if your are referencing it in your app
    ]
}

Node (installed using NPM)

Call require to register Promise to global object

require("promise-ext");
var extensions = requrie("promise-ext/lib/promise/extensions");

var promise = new Promise(function(resolve, reject) {

});

Contribute

Preparation

Checkout repository and install dependencies

$ git clone https://github.com/spatools/promise.git 
$ npm install -g grunt-cli bower tsd
$ npm install

Documentation

You can find documentation about EcmaScript 6 Promise specification on some websites.

This library strictly follows EcmaScript 6 Specification which can be found on EcmaScript Wiki.

Build configurations

Test

Any changes should be tested. Any additions should have a new test associated with it.

$ grunt test

Build

$ grunt build
0.3.5

9 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago