node-cloudfoundry-actuator-cli
Build time info file generation for Cloud Foundry actuator endpoints
Last updated 2 months ago by stfsy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-cloudfoundry-actuator-cli 
SYNC missed versions from official npm registry.

node-cloudfoundry-actuator-cli

Build Status Dependency Status DevDependency Status Npm downloads Npm Version Git tag Github issues License

Build time info file generation for Cloud Foundry actuator endpoints.

Generates a .json file, that can be consumed by Express Cloud Foundry Actuator Middleware to show build information in the Cloud Foundry Apps Manager.

The file is by default placed in .actuator and is called info.json.

See Express Actuator Middleware Example for an example application with full integration of this cli and Express Cloud Foundry Actuator Middleware.

Installation

npm install node-cloudfoundry-actuator-cli --save

Example

Add actuator script to your package.json:

{
    "scripts": {
        "actuator": "cloudfoundry-actuator-cli --git --npm"
    }
}

Available options are:

  • --git: Enables git repository information contribution
  • --npm: Enables npm build information contribution
  • --mvn: Enables maven build information contribution

No option is enabled by default.

Run actuator script:

npm run actuator

Voilà, see generated File .actuator/info.json:

{
  "git": {
    "branch": "dev",
    "tag": null,
    "remote": {
      "origin": {
        "type": "git",
        "url": "https://github.com/stfsy/node-cloudfoundry-actuator-cli.git"
      }
    },
    "commit": {
      "id": "fdaea68f36",
      "time": "2017-11-03T10:58:12.000Z",
      "message": {
        "short": "chore: ignore vs code files"
      }
    },
    "user": {
      "email": "none@gmail.com"
    }
  },
  "build": {
    "name": "express-cloudfoundry-actuator-middleware",
    "version": "0.1.0",
    "description": "Express actuator middleware for Cloud Foundry Applications"
  }
}

License

This project is distributed under the MIT license.

Current Tags

  • 2.3.0                                ...           latest (2 months ago)

15 Versions

  • 2.3.0                                ...           2 months ago
  • 2.2.0                                ...           a year ago
  • 2.1.0                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 15
Dependencies (4)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |