@stencila/schema
Version:
Stencila schema and other specifications
155 lines (154 loc) • 4.58 kB
JSON
{
"name": "@stencila/schema",
"version": "0.37.3",
"description": "Stencila schema and other specifications",
"files": [
"dist"
],
"source": "ts/index.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"unpkg": "dist/index.umd.js",
"types": "dist/index.d.ts",
"scripts": {
"format": "npx prettier --write './**/*.{js,json,md,ts,yaml}'",
"lint": "npx eslint 'ts/**/*.{js,ts}' --fix",
"test": "npm run build:jsonschema && jest",
"test:cover": "npm run build:jsonschema && jest --coverage",
"build": "npm run build:jsonschema && npm run build:jsonld && npm run build:ts && npm run build:py && npm run build:r",
"build:jsonschema": "ts-node ts/schema.ts",
"build:jsonld": "ts-node ts/bindings/jsonld.ts",
"build:ts": "ts-node ts/bindings/typescript.ts && microbundle --tsconfig tsconfig.lib.json && cp public/*.schema.json dist && cp public/*.jsonld dist",
"build:py": "ts-node ts/bindings/python.ts",
"build:r": "ts-node ts/bindings/r.ts",
"docs": "npm run docs:readme && npm run docs:build && npm run docs:api",
"docs:readme": "markdown-toc -i --maxdepth=4 README.md",
"docs:build": "ts-node ts/docs.ts",
"docs:api": "ts-node ts/bindings/typescript.ts && typedoc --out ts/docs/ --mode file --exclude '**/*.test.ts' --exclude '**/__tests__/**' --exclude '**/__file_snapshots__/**'",
"docs:serve": "npx browser-sync ./public -f ./public --directory --no-ui --reload-debounce 750",
"clean": "rimraf dist/* public/* ts/types.ts"
},
"repository": {
"type": "git",
"url": "https://github.com/stencila/schema.git"
},
"author": "Contributors https://github.com/stencila/schema/contributors",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/stencila/schema/issues"
},
"homepage": "https://stencila.github.io/schema",
"devDependencies": {
"@stencila/dev-config": "1.4.11",
"@stencila/encoda": "0.85.2",
"@stencila/logga": "2.1.0",
"@stoplight/json-ref-resolver": "3.0.8",
"@types/fs-extra": "8.0.1",
"@types/jest": "25.1.2",
"@types/js-yaml": "3.12.2",
"@types/lodash.clonedeep": "4.5.6",
"@types/lodash.flatten": "4.4.6",
"@types/prettier": "1.19.0",
"@types/toposort": "2.0.3",
"ajv": "6.11.0",
"better-ajv-errors": "0.6.7",
"browser-sync": "2.26.7",
"del": "5.1.0",
"fs-extra": "8.1.0",
"globby": "11.0.0",
"jest": "25.1.0",
"jest-file-snapshot": "0.3.8",
"js-yaml": "3.13.1",
"json-schema": "0.2.5",
"lodash.clonedeep": "4.5.0",
"lodash.flatten": "4.4.0",
"markdown-toc": "1.2.0",
"microbundle": "0.12.0-next.8",
"object.fromentries": "2.0.2",
"rimraf": "3.0.2",
"toposort": "2.0.2",
"ts-jest": "25.2.0",
"ts-node": "8.6.2",
"typedoc": "0.16.9",
"typescript": "3.7.5"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"<rootDir>/ts/**/*.test.[jt]s?(x)"
],
"modulePathIgnorePatterns": [
"<rootDir>/dist"
],
"setupFilesAfterEnv": [
"<rootDir>/ts/__tests__/matchers.ts"
],
"collectCoverageFrom": [
"ts/**/*.ts",
"!ts/**/*.d.ts",
"!node_modules/**",
"!ts/types.ts",
"!ts/docs.ts",
"!ts/log.ts",
"!ts/**/__file_snapshots__/**",
"!ts/**/__tests__/**"
],
"watchPathIgnorePatterns": [
"__file_snapshots__",
"public",
"dist"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"scope-case": [
2,
"always",
"sentence-case"
],
"subject-case": [
2,
"always",
"sentence-case"
]
}
},
"eslintConfig": {
"extends": "@stencila/eslint-config",
"env": {
"es6": true,
"node": true,
"jest": true
}
},
"eslintIgnore": [
"public",
"dist",
"docs",
"__file_snapshots__"
],
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"prettier": "@stencila/dev-config/prettier-config.json",
"release": {
"extends": "@stencila/semantic-release-config",
"$comment": "With current CI setup is is necessary to override the message, so CI is not skipped on tag commits, so that Python package is released.",
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
},
"renovate": {
"extends": [
"@stencila"
],
"schedule": [
"before 1am on Monday"
]
}
}