package.json 1.49 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
{
  "name": "whatwg-url",
  "version": "7.1.0",
  "description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",
  "main": "lib/public-api.js",
  "files": [
    "lib/"
  ],
  "author": "Sebastian Mayr <github@smayr.name>",
  "license": "MIT",
  "repository": "jsdom/whatwg-url",
  "dependencies": {
    "lodash.sortby": "^4.7.0",
    "tr46": "^1.0.1",
    "webidl-conversions": "^4.0.2"
  },
  "devDependencies": {
    "browserify": "^16.2.2",
    "domexception": "^1.0.1",
    "eslint": "^5.4.0",
    "got": "^9.2.2",
    "jest": "^23.5.0",
    "recast": "^0.15.3",
    "webidl2js": "^9.0.1"
  },
  "scripts": {
    "build": "node scripts/transform.js && node scripts/convert-idl.js",
    "coverage": "jest --coverage",
    "lint": "eslint .",
    "prepublish": "node scripts/transform.js && node scripts/convert-idl.js",
    "pretest": "node scripts/get-latest-platform-tests.js && node scripts/transform.js && node scripts/convert-idl.js",
    "build-live-viewer": "browserify lib/public-api.js --standalone whatwgURL > live-viewer/whatwg-url.js",
    "test": "jest"
  },
  "jest": {
    "collectCoverageFrom": [
      "lib/**/*.js",
      "!lib/utils.js"
    ],
    "coverageDirectory": "coverage",
    "coverageReporters": [
      "lcov",
      "text-summary"
    ],
    "testEnvironment": "node",
    "testMatch": [
      "<rootDir>/test/**/*.js"
    ],
    "testPathIgnorePatterns": [
      "^<rootDir>/test/testharness.js$",
      "^<rootDir>/test/web-platform-tests/"
    ]
  }
}