Add `yarn validate` for JSON testing
[incubator-annotator.git] / package.json
1 {
2   "name": "@annotator/annotator",
3   "private": true,
4   "description": "Apache Annotator provides annotation enabling code for browsers, servers, and humans.",
5   "homepage": "https://annotator.apache.org",
6   "license": "Apache-2.0",
7   "author": "Apache Software Foundation",
8   "repository": {
9     "type": "git",
10     "url": "https://gitbox.apache.org/repos/asf/incubator-annotator.git"
11   },
12   "scripts": {
13     "build": "yarn build:cjs && yarn build:esm",
14     "build:cjs": "cross-env BABEL_ENV=cjs yarn build:run",
15     "build:esm": "cross-env BABEL_ENV=esm yarn build:run --keep-file-extension",
16     "build:run": "lerna exec --parallel -- babel -d lib src --config-file ../../babel.config.js",
17     "clean": "lerna exec -- rimraf lib",
18     "precommit": "lint-staged",
19     "lint": "eslint . --ext js,mjs --fix --quiet",
20     "prepare": "lerna run prepare",
21     "start": "webpack-serve",
22     "test": "cross-env BABEL_ENV=test nyc mocha -r esm packages/*/test/**/*.mjs",
23     "validate": "cross-env BABEL_ENV=test nyc mocha -r esm test/**/*.mjs"
24   },
25   "devDependencies": {
26     "@babel/cli": "^7.0.0-beta.42",
27     "@babel/core": "^7.0.0-beta.42",
28     "@babel/plugin-transform-runtime": "^7.0.0-beta.42",
29     "@babel/polyfill": "^7.0.0-beta.42",
30     "@babel/preset-env": "^7.0.0-beta.42",
31     "@babel/register": "^7.0.0-beta.42",
32     "@babel/runtime": "^7.0.0-beta.42",
33     "ajv": "^6.5.0",
34     "babel-eslint": "^8.2.2",
35     "babel-loader": "^8.0.0-beta.2",
36     "babel-plugin-istanbul": "^4.1.5",
37     "babel-plugin-module-resolver": "^3.1.1",
38     "babel-plugin-preserve-comment-header": "^1.0.1",
39     "chai": "^4.1.2",
40     "cross-env": "^5.1.4",
41     "dom-highlight-range": "^1.0.1",
42     "eslint": "^4.19.1",
43     "eslint-config-prettier": "^2.9.0",
44     "eslint-import-resolver-babel-module": "^5.0.0-beta.0",
45     "eslint-plugin-import": "^2.9.0",
46     "eslint-plugin-node": "^6.0.1",
47     "eslint-plugin-prettier": "^2.6.0",
48     "esm": "^3.0.49",
49     "husky": "^0.14.0",
50     "lerna": "^2.9.0",
51     "lint-staged": "^7.0.0",
52     "mocha": "^5.0.5",
53     "mocha-loader": "^1.1.3",
54     "multi-entry-loader": "^1.1.2",
55     "nyc": "^11.6.0",
56     "prettier": "^1.11.1",
57     "rimraf": "^2.6.2",
58     "web-annotation-tests": "https://github.com/w3c/web-annotation-tests",
59     "webpack": "^4.2.0",
60     "webpack-serve": "^0.2.0"
61   },
62   "engines": {
63     "node": ">=8.0.0",
64     "yarn": "^1.5.0"
65   },
66   "workspaces": {
67     "packages": [
68       "packages/*"
69     ]
70   }
71 }