2016-10-10 03:43:44 +02:00
|
|
|
{
|
2016-11-03 01:33:53 +01:00
|
|
|
"name": "when",
|
|
|
|
"version": "3.7.7",
|
|
|
|
"description": "A lightweight Promises/A+ and when() implementation, plus other async goodies.",
|
|
|
|
"keywords": [
|
|
|
|
"cujo",
|
|
|
|
"Promises/A+",
|
|
|
|
"promises-aplus",
|
|
|
|
"promise",
|
|
|
|
"promises",
|
|
|
|
"deferred",
|
|
|
|
"deferreds",
|
|
|
|
"when",
|
|
|
|
"async",
|
|
|
|
"asynchronous",
|
|
|
|
"ender"
|
2016-10-10 03:43:44 +02:00
|
|
|
],
|
2016-11-03 01:33:53 +01:00
|
|
|
"homepage": "http://cujojs.com",
|
|
|
|
"license": "MIT",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/cujojs/when"
|
2016-10-10 03:43:44 +02:00
|
|
|
},
|
2016-11-03 01:33:53 +01:00
|
|
|
"bugs": "https://github.com/cujojs/when/issues",
|
|
|
|
"maintainers": [
|
|
|
|
{
|
|
|
|
"name": "Brian Cavalier",
|
|
|
|
"web": "http://hovercraftstudios.com"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "John Hann",
|
|
|
|
"web": "http://unscriptable.com"
|
|
|
|
}
|
2016-10-10 03:43:44 +02:00
|
|
|
],
|
|
|
|
"contributors": [
|
|
|
|
{
|
|
|
|
"name": "Brian Cavalier",
|
2016-11-03 01:33:53 +01:00
|
|
|
"web": "http://hovercraftstudios.com"
|
2016-10-10 03:43:44 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "John Hann",
|
2016-11-03 01:33:53 +01:00
|
|
|
"web": "http://unscriptable.com"
|
2016-10-10 03:43:44 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Scott Andrews"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"devDependencies": {
|
|
|
|
"benchmark": "~1",
|
|
|
|
"browserify": "~2",
|
|
|
|
"buster": "~0.7",
|
|
|
|
"exorcist": "~0.4",
|
|
|
|
"jshint": "~2",
|
|
|
|
"json5": "~0.2",
|
|
|
|
"microtime": "~0",
|
|
|
|
"optimist": "~0.6",
|
|
|
|
"poly": "^0.6.1",
|
|
|
|
"promises-aplus-tests": "~2",
|
|
|
|
"rest": "1.1.x",
|
|
|
|
"sauce-connect-launcher": "~0.4",
|
|
|
|
"uglify-js": "~2",
|
|
|
|
"wd": "~0.2"
|
|
|
|
},
|
2016-11-03 01:33:53 +01:00
|
|
|
"main": "when.js",
|
2016-10-10 03:43:44 +02:00
|
|
|
"ender": {
|
|
|
|
"files": [
|
|
|
|
"*.js",
|
|
|
|
"lib/*.js",
|
|
|
|
"node/*.js",
|
|
|
|
"unfold/*.js",
|
|
|
|
"monitor/*.js",
|
|
|
|
"lib/decorators/*.js"
|
|
|
|
]
|
|
|
|
},
|
2016-11-03 01:33:53 +01:00
|
|
|
"browser": {
|
|
|
|
"when": "./dist/browser/when.js",
|
|
|
|
"vertx": false
|
|
|
|
},
|
|
|
|
"directories": {
|
|
|
|
"test": "test"
|
2016-10-10 03:43:44 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
2016-11-03 01:33:53 +01:00
|
|
|
"test": "jshint . && buster-test -e node && promises-aplus-tests test/promises-aplus-adapter.js",
|
2016-10-10 03:43:44 +02:00
|
|
|
"build-browser-test": "browserify ./node_modules/poly/es5.js -o test/browser/es5.js && browserify ./test/*-test.js ./test/**/*-test.js -o test/browser/tests.js -x buster ",
|
2016-11-03 01:33:53 +01:00
|
|
|
"browser-test": "npm run build-browser-test && buster-static -e browser -p 8080",
|
2016-10-10 03:43:44 +02:00
|
|
|
"ci": "npm test && node test/sauce.js",
|
2016-11-03 01:33:53 +01:00
|
|
|
"tunnel": "node test/sauce.js -m",
|
|
|
|
"start": "buster-static -e browser",
|
|
|
|
"benchmark": "node benchmark/promise && node benchmark/map",
|
2016-10-10 03:43:44 +02:00
|
|
|
"prepublish": "npm run browserify && npm run uglify",
|
|
|
|
"preversion": "npm run browserify && npm run uglify",
|
2016-11-03 01:33:53 +01:00
|
|
|
"browserify": "npm run browserify-es6 && npm run browserify-when && npm run browserify-debug",
|
|
|
|
"browserify-es6": "browserify -s Promise es6-shim/Promise.browserify-es6.js --no-detect-globals --debug | exorcist -b . -r https://raw.githubusercontent.com/cujojs/when/`git rev-parse HEAD` es6-shim/Promise.js.map >es6-shim/Promise.js",
|
|
|
|
"browserify-when": "mkdir -p dist/browser && browserify -s when build/when.browserify.js --no-detect-globals --debug | exorcist -b . -r https://raw.githubusercontent.com/cujojs/when/`git rev-parse HEAD` dist/browser/when.js.map >dist/browser/when.js",
|
|
|
|
"browserify-debug": "mkdir -p dist/browser && browserify -s when build/when.browserify-debug.js --no-detect-globals --debug | exorcist -b . -r https://raw.githubusercontent.com/cujojs/when/`git rev-parse HEAD` dist/browser/when.debug.js.map >dist/browser/when.debug.js",
|
2016-10-10 03:43:44 +02:00
|
|
|
"uglify": "npm run uglify-es6 && npm run uglify-when",
|
|
|
|
"uglify-es6": "cd es6-shim; uglifyjs Promise.js --compress --mangle --in-source-map Promise.js.map --source-map Promise.min.js.map -o Promise.min.js; cd ../..",
|
|
|
|
"uglify-when": "cd dist/browser; uglifyjs when.js --compress --mangle --in-source-map when.js.map --source-map when.min.js.map -o when.min.js; cd ../.."
|
2016-11-03 01:33:53 +01:00
|
|
|
}
|
2016-10-10 03:43:44 +02:00
|
|
|
}
|