UNPKG

3.56 kBJSONView Raw
1{
2 "name": "when",
3 "version": "3.7.6",
4 "description": "A lightweight Promises/A+ and when() implementation, plus other async goodies.",
5 "keywords": [
6 "cujo",
7 "Promises/A+",
8 "promises-aplus",
9 "promise",
10 "promises",
11 "deferred",
12 "deferreds",
13 "when",
14 "async",
15 "asynchronous",
16 "ender"
17 ],
18 "homepage": "http://cujojs.com",
19 "license": "MIT",
20 "repository": {
21 "type": "git",
22 "url": "https://github.com/cujojs/when"
23 },
24 "bugs": "https://github.com/cujojs/when/issues",
25 "maintainers": [
26 {
27 "name": "Brian Cavalier",
28 "web": "http://hovercraftstudios.com"
29 },
30 {
31 "name": "John Hann",
32 "web": "http://unscriptable.com"
33 }
34 ],
35 "contributors": [
36 {
37 "name": "Brian Cavalier",
38 "web": "http://hovercraftstudios.com"
39 },
40 {
41 "name": "John Hann",
42 "web": "http://unscriptable.com"
43 },
44 {
45 "name": "Scott Andrews"
46 }
47 ],
48 "devDependencies": {
49 "benchmark": "~1",
50 "browserify": "~2",
51 "buster": "~0.7",
52 "exorcist": "~0.4",
53 "jshint": "~2",
54 "json5": "~0.2",
55 "microtime": "~0",
56 "optimist": "~0.6",
57 "poly": "^0.6.1",
58 "promises-aplus-tests": "~2",
59 "rest": "1.1.x",
60 "sauce-connect-launcher": "~0.4",
61 "uglify-js": "~2",
62 "wd": "~0.2"
63 },
64 "main": "when",
65 "ender": {
66 "files": [
67 "*.js",
68 "lib/*.js",
69 "node/*.js",
70 "unfold/*.js",
71 "monitor/*.js",
72 "lib/decorators/*.js"
73 ]
74 },
75 "browser": {
76 "when": "./dist/browser/when.js",
77 "vertx": false
78 },
79 "directories": {
80 "test": "test"
81 },
82 "scripts": {
83 "test": "jshint . && buster-test -e node && promises-aplus-tests test/promises-aplus-adapter.js",
84 "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 ",
85 "browser-test": "npm run build-browser-test && buster-static -e browser -p 8080",
86 "ci": "npm test && node test/sauce.js",
87 "tunnel": "node test/sauce.js -m",
88 "start": "buster-static -e browser",
89 "benchmark": "node benchmark/promise && node benchmark/map",
90 "prepublish": "npm run browserify && npm run uglify",
91 "preversion": "npm run browserify && npm run uglify",
92 "browserify": "npm run browserify-es6 && npm run browserify-when && npm run browserify-debug",
93 "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",
94 "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",
95 "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",
96 "uglify": "npm run uglify-es6 && npm run uglify-when",
97 "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 ../..",
98 "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 ../.."
99 }
100}