holidayextras/jsonapi-client

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@holidayextras/jsonapi-client",
  "version": "1.0.0",
  "description": "A clientside module designed to make it really easy to consume a json:api service.",
  "keywords": [
    "jsonapi",
    "json:api",
    "api"
  ],
  "main": "lib/Client.js",
  "author": "Oliver Rumbelow",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/holidayextras/jsonapi-client.git"
  },
  "dependencies": {
    "async": "2.5.0",
    "object-assign": "4.1.1",
    "promise": "8.0.1",
    "qs": "^6.2.0",
    "superagent": "3.5.2"
  },
  "devDependencies": {
    "blanket": "1.2.3",
    "browserify": "14.4.0",
    "coveralls": "2.13.1",
    "eslint": "4.2.0",
    "eslint-config-eslint": "4.0.0",
    "flow-bin": "0.50.0",
    "jscpd": "^0.6.1",
    "jsonapi-server": "3.0.2",
    "karma": "1.7.0",
    "karma-chrome-launcher": "2.2.0",
    "karma-firefox-launcher": "1.0.1",
    "karma-mocha": "1.3.0",
    "karma-phantomjs-launcher": "1.0.4",
    "karma-sauce-launcher": "1.1.0",
    "karma-spec-reporter": "0.0.31",
    "mocha": "3.4.2",
    "mocha-lcov-reporter": "1.3.0",
    "phantomjs-prebuilt": "2.1.14",
    "plato": "1.7.0",
    "uglify-js": "3.0.24"
  },
  "engines": {
    "node": ">=4.5"
  },
  "scripts": {
    "build": "mkdir -p dist && ./node_modules/.bin/browserify lib/Client.js | ./node_modules/.bin/uglifyjs -cm -o dist/jsonapi-client.min.js 2> /dev/null && echo '✔ Assets built!'",
    "build:test": "npm run build && ./node_modules/.bin/browserify -i jsonapi-server/example/server.js test/*.js -o dist/jsonapi-client-test.js && echo '✔ Test assets built!'",
    "mocha": "./node_modules/mocha/bin/mocha -R spec ./test/*.js",
    "prekarmalocal": "DEBUG=* node ./node_modules/jsonapi-server/example/server.js &",
    "karmalocal": "sleep 1 && npm run build:test && ./node_modules/karma/bin/karma start ./karma.local.conf.js",
    "postkarmalocal": "killall node",
    "prekarmaremote": "DEBUG=* node ./node_modules/jsonapi-server/example/server.js &",
    "karmaremote": "sleep 1 && npm run build:test && ./node_modules/karma/bin/karma start ./karma.saucelabs.conf.js || true",
    "postkarmaremote": "killall node",
    "karma": "npm run karmalocal && npm run karmaremote",
    "test": "npm run mocha &&  npm run karma",
    "coveralls": "./node_modules/mocha/bin/mocha --require blanket --reporter mocha-lcov-reporter ./test/*.js | ./node_modules/coveralls/bin/coveralls.js",
    "coverage": "./node_modules/mocha/bin/mocha --require blanket --reporter html-cov ./test/*.js > coverage.html",
    "complexity": "./node_modules/plato/bin/plato -r -d complexity lib",
    "lint": "./node_modules/.bin/eslint ./lib/* ./test/*.js --quiet && echo '✔ All good!'",
    "flow": "node ./node_modules/flow-bin/cli.js && echo '✔ All good!'",
    "jscpd": "jscpd --blame -p ./lib/ || echo 'Finished!'",
    "ci": "npm run lint && npm run flow && npm run jscpd && npm run test"
  },
  "config": {
    "blanket": {
      "pattern": "/jsonapi-client/lib/",
      "data-cover-never": [
        "node_modules",
        "test",
        "example"
      ]
    }
  }
}