https://github.com/onebeyond/make-manifest
Generates a manifest file for a node service
https://github.com/onebeyond/make-manifest
hacktoberfest
Last synced: about 1 year ago
JSON representation
Generates a manifest file for a node service
- Host: GitHub
- URL: https://github.com/onebeyond/make-manifest
- Owner: onebeyond
- License: mit
- Created: 2016-07-05T00:15:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-22T15:58:35.000Z (over 1 year ago)
- Last Synced: 2025-04-12T01:14:42.186Z (about 1 year ago)
- Topics: hacktoberfest
- Language: JavaScript
- Size: 467 KB
- Stars: 4
- Watchers: 12
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codeclimate.com/github/onebeyond/make-manifest/maintainability)
[](https://codeclimate.com/github/onebeyond/make-manifest/test_coverage)
# make-manifest
Generates a manfiest.json similar to...
```
{
"name": "make-manifest",
"version": "0.1.0",
"timestamp": "2016-07-05T00:21:41.308Z",
"scm": {
"remote": "git@github.com:guidesmiths/make-manifest.git",
"branch": "master",
"commit": "98d5460ad979b1b0300c6cf9fee4799abddf0ab6"
}
}
```
### Why?
It's good practice to ship some basic information about your application build in case you need to rebuild or debug it from source. It can also be useful to guarantee at least one new layer if you're deploying your application within a docker image. Copying a freshly generated manifest in the last step of your Dockerfile will achieve this.
### Usage
```
Usage: make-manifest [options]
Options:
-h, --help output usage information
-V, --version output the version number
-x --extra [string] colon separated key value pair
```
### Example
```
./bin/make-manifest --extra "build.url: $CIRCLE_BUILD_URL" --extra "build.number: $CIRCLE_BUILD_NUM"
{
"name": "make-manifest",
"version": "0.1.0",
"timestamp": "2016-07-05T00:21:41.308Z",
"scm": {
"remote": "git@github.com:guidesmiths/make-manifest.git",
"branch": "master",
"commit": "98d5460ad979b1b0300c6cf9fee4799abddf0ab6"
},
"build": {
"url": "https://circleci.com/gh/guidesmiths/make-manifest/48",
"number": "48"
}
}
```