meta-dev
Meta dependency package for simple Node libraries
Last updated 3 years ago by ngryman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install meta-dev 
SYNC missed versions from official npm registry.

meta-dev

Meta package for devDependencies.

meta-dev is a meta package of devDependencies needed for a simple node library. For more details please see the associated article.

It includes the following packages:

It expose a meta binary which executes common tasks:

Command Task
meta build Build a commonjs version (rollup).
meta check-coverage Check coverage is at least 95% (nyc).
meta coverage Submit coverage report to codecov.io (codecov.io)
meta dev Watch for changes and run tests (ava).
meta docs Build documentation from jsdoc comments (jsdoc-to-markdown)
meta lint Lint source files using ngryman configuration (eslint).
meta see-coverage Open the browser to visualize coverage report (nyc).
meta test Run the test suite (ava, nyc).

Install

npm install --save meta-dev

Usage

package.json

{
  "main": "dist/${packageName}.node.js",
  "browser": "dist/${packageName}.browser.js",
  "module": "index.js",
  "jsnext:main": "index.js",
  "engines": {
    "node": ">=5"
  },
  "files": [
    "index.js",
    "dist/"
  ],
  "scripts": {
    "lint": "meta lint",
    "pretest": "npm run lint -s",
    "test": "meta test",
    "dev": "meta dev",
    "coverage": "meta coverage",
    "see-coverage": "meta see-coverage",
    "check-coverage": "meta check-coverage",
    "docs": "meta docs",
    "prebuild": "npm run lint -s",
    "build": "meta build",
    "prepublish": "npm run build -s"
  },
  "precommit": [
    "test",
    "check-coverage",
    "docs"
  ],
  "ava": {
    "require": [
      "babel-register"
    ]
  },
  "babel": {
    "env": {
      "test": {
        "presets": [
          "node5"
        ],
        "plugins": [
          "istanbul"
        ]
      }
    }
  },
  "eslintConfig": {
    "extends": "ngryman"
  },
  "nyc": {
    "require": [
      "babel-register"
    ],
    "sourceMap": false,
    "instrument": false
  },
  "dependencies": {},
  "devDependencies": {
    "meta-dev": "^0.4.0",
    "pre-commit": "^1.1.3"
  }
}

License

MIT © Nicolas Gryman

Current Tags

  • 0.4.2                                ...           latest (3 years ago)

17 Versions

  • 0.4.2                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.6                                ...           3 years ago
  • 0.3.5                                ...           3 years ago
  • 0.3.4                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 41
Last Day 0
Last Week 0
Last Month 19
Dependencies (13)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |