NatLibFi/oai-pmh-server-backend-module-prototype

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
    "name": "@natlibfi/oai-pmh-server-backend-module-prototype",
    "description": "Backend module prototype for oai-pmh-server",
    "author": {
        "name": "The National Library of Finland"
    },
    "keywords": ["oai-pmh","harvest","marc","library","bibliography","bibliographic","archive"],
    "homepage": "https://github.com/natlibfi/oai-pmh-server-backend-module-prototype",
    "bugs": {
        "url": "https://github.com/natlibfi/oai-pmh-server-backend-module-prototype/issues"
    },
    "repository": {
        "type": "git",
        "url": "git@github.com:natlibfi/oai-pmh-server-backend-module-prototype.git"
    },
    "license": "AGPL-3.0+",
    "version": "1.0.0",
    "main": "./distribution/index.js",
    "scripts": {
        "prepublish": "npm run build",
        "lint": "xo --fix",
        "test": "cross-env NODE_ENV=test nyc mocha --compilers js:babel-register",
        "coverage": "nyc check-coverage",
        "clean": "rimraf build coverage .nyc_output distribution doc",
        "build:doc": "esdoc",
        "build:transpile": "babel source --source-maps --out-dir=distribution --minified",
        "build": "ncu && npm run build:transpile && npm run build:doc",
        "dev:": "npm run clean && npm run lint && npm run build",        
        "dev:check": "npm run clean && npm run lint && npm test;npm run coverage;npm run build",        
        "dev:watch": "chokidar source -c 'npm run dev'",
        "dev:check:watch": "chokidar source test -c 'npm run dev:check'",
        "check-and-build": "npm run lint && npm test && npm run coverage && npm run build",
        "travisci": "npm run check-and-build",
        "publish-to-npm": "npm install && npm run lint && npm test && npm run coverage && npm publish --access=public"
    },
    "dependencies": {
        "babel-polyfill": "^6.23.0"
    },
    "devDependencies": {
        "git-scripts": "^0.2.1",
        "validate-commit": "^3.2.1",
        "npm-check-updates": "^2.10.2",
        "rimraf": "^2.5.4",
        "mocha": "^3.2.0",
        "xo": "^0.18.2",    
        "istanbul": "^0.4.5",
        "chai": "^4.1.2",
        "nyc": "^11.2.1",
        "esdoc": "^1.0.2",
        "cross-env": "^5.0.5",
        "chokidar-cli": "^1.2.0",
        "babel-cli": "^6.22.2",
        "babel-preset-latest": "^6.22.0",
        "babel-register": "^6.22.0",
        "babel-polyfill": "^6.22.0",
        "babel-plugin-istanbul": "^4.0.0",
        "codeclimate-test-reporter": "^0.5.0"
    },
    "peerDependencies": {
        "@natlibfi/oai-pmh-server": "^1.0.0"
    },
    "xo": {
        "rules": {      
            "valid-jsdoc": ["error"],
            "prefer-arrow-callback": ["error"]
        }
    },
    "esdoc": {
        "source": "source",    
        "destination": "./doc"
    },
    "babel": {
        "presets": ["latest"],
        "env": {
            "test": {
                "plugins": ["istanbul"]
            }
        }
    },
    "nyc": {
        "reporter": ["lcov", "html"],
        "require": ["babel-register"],
        "sourceMap": false,
        "instrument": false,
        "lines": 100,
        "statements": 100,
        "functions": 100,
        "branches": 100
    },
    "git": {
        "scripts": {
            "commit-msg": "./node_modules/.bin/validate-commit-msg -p atom $1"
        }
    }
}