amercier/promise-window

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "promise-window",
  "version": "1.2.1",
  "description": "Lightweight wrapper around window.open() that adds Promise and postMessage support",
  "keywords": [
    "popup",
    "window",
    "open",
    "window.open",
    "promise",
    "promise-aplus",
    "postMessage"
  ],
  "homepage": "http://amercier.github.io/promise-window/",
  "bugs": {
    "url": "https://github.com/amercier/promise-window/issues",
    "email": "pro.alexandre.mercier@gmail.com"
  },
  "license": "MIT",
  "author": "Alex Mercier <pro.alexandre.mercier@gmail.com> (http://amercier.com/)",
  "files": [
    "dist/*.js"
  ],
  "main": "dist/promise-window.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/amercier/promise-window/"
  },
  "scripts": {
    "dependencies": "bower install",
    "start": "http-server docs -o",
    "start-ssl": "npm run openssl && http-server docs --ssl --cors -o",
    "openssl": "[ -e cert.pem ] || openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/C=EX/ST=Example/L=Example/O=Example/OU=IT Department/CN=example.com'",
    "clean": "rm -rf docs/.git docs/api docs/bower_components tests/coverage",
    "lint": "jshint --reporter node_modules/jshint-stylish/stylish.js .",
    "list": "find tests -maxdepth 1 -type f -name *.html | while read f; do basename \"$f\" .html; done | sed 's/^test-//'",
    "tdd": "./node_modules/karma/bin/karma start",
    "report": "istanbul report && cat tests/coverage/summary.txt && echo",
    "test": "npm run lint && npm run clean && for suite in $([ \"$KARMA_ENV\" = \"\" ] && npm run -s list || echo $KARMA_ENV); do KARMA_ENV=$suite CI=true npm run tdd || exit 1; done && npm run report",
    "build": "gulp build",
    "docs": "(cd docs && bower install --production) && jsduck src/ --output docs/api --warnings-exit-nonzero"
  },
  "devDependencies": {
    "bower": "^1.3.12",
    "codeclimate-test-reporter": "0.0.4",
    "coveralls": "^2.11.2",
    "gulp": "^3.8.10",
    "gulp-rename": "^1.2.0",
    "gulp-size": "^1.2.0",
    "gulp-uglify": "^1.1.0",
    "http-server": "^0.10.0",
    "istanbul": "^0.3.5",
    "jshint": "^2.6.0",
    "jshint-stylish": "^1.0.0",
    "karma": "^0.12.31",
    "karma-chrome-launcher": "^0.1.7",
    "karma-coverage": "^0.2.7",
    "karma-phantomjs-launcher": "^0.1.4",
    "karma-qunit": "^0.1.4",
    "karma-sinon": "^1.0.4",
    "qunitjs": "^1.17.1",
    "sinon": "^1.12.2"
  }
}