Appendix D. Breakdown of package.json properties
{ "name": "nodejs-rest-http", "version": "1.1.1", "author": "Red Hat, Inc.", "license": "Apache-2.0", "scripts": { "test": "tape test/*.js | tap-spec", "lint": "eslint test/*.js app.js bin/*", "prepare": "nsp check", "coverage": "nyc npm test", "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls", "ci": "npm run lint && npm run coveralls", "dependencyCheck": "szero . --ci", "release": "standard-version", "openshift": "nodeshift --strictSSL=false --nodeVersion=8.x", "postinstall": "license-reporter report && license-reporter save --xml licenses.xml", "start": "node ." }, "main": "./bin/www", "repository": { "type": "git", "url": "git://github.com/nodeshift-starters/nodejs-rest-http.git" }, "files": [ "package.json", "app.js", "public", "bin", "LICENSE", "licenses" ], "bugs": { "url": "https://github.com/nodeshift-starters/nodejs-rest-http/issues" }, "homepage": "https://github.com/nodeshift-starters/nodejs-rest-http", "devDependencies": { "coveralls": "^3.0.0", "nodeshift": "^1.3.0", "nsp": "~3.1.0", "nyc": "~11.4.1", "standard-version": "^4.2.0", "supertest": "^3.0.0", "szero": "^1.0.0", "tap-spec": "~4.1.1", "tape": "~4.8.0", "xo": "~0.20.3" }, "dependencies": { "body-parser": "^1.18.2", "debug": "^3.1.0", "express": "^4.16.0", "license-reporter": "^1.1.3" } }
{
"name": "nodejs-rest-http",
"version": "1.1.1",
"author": "Red Hat, Inc.",
"license": "Apache-2.0",
"scripts": {
"test": "tape test/*.js | tap-spec",
"lint": "eslint test/*.js app.js bin/*",
"prepare": "nsp check",
"coverage": "nyc npm test",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
"ci": "npm run lint && npm run coveralls",
"dependencyCheck": "szero . --ci",
"release": "standard-version",
"openshift": "nodeshift --strictSSL=false --nodeVersion=8.x",
"postinstall": "license-reporter report && license-reporter save --xml licenses.xml",
"start": "node ."
},
"main": "./bin/www",
"repository": {
"type": "git",
"url": "git://github.com/nodeshift-starters/nodejs-rest-http.git"
},
"files": [
"package.json",
"app.js",
"public",
"bin",
"LICENSE",
"licenses"
],
"bugs": {
"url": "https://github.com/nodeshift-starters/nodejs-rest-http/issues"
},
"homepage": "https://github.com/nodeshift-starters/nodejs-rest-http",
"devDependencies": {
"coveralls": "^3.0.0",
"nodeshift": "^1.3.0",
"nsp": "~3.1.0",
"nyc": "~11.4.1",
"standard-version": "^4.2.0",
"supertest": "^3.0.0",
"szero": "^1.0.0",
"tap-spec": "~4.1.1",
"tape": "~4.8.0",
"xo": "~0.20.3"
},
"dependencies": {
"body-parser": "^1.18.2",
"debug": "^3.1.0",
"express": "^4.16.0",
"license-reporter": "^1.1.3"
}
}
- 1
- A
npm
script for running unit tests. Run withnpm run test
. - 2
- A
npm
script for deploying this application to Minishift or CDK. Run withnpm run openshift
. ThestrictSSL
option allows us to deploy to Minishift or CDK instances with self-signed certificates. - 3
- A
npm
script for starting this application. Run withnpm start
. - 4
- The primary entrypoint for the application when run with
npm start
. - 5
- Specifies the files to be included in the binary that is uploaded to Minishift or CDK.
- 6
- A list of development dependencies to be installed from the
npm
registry. These are used for testing and deployment to Minishift or CDK. - 7
- A list of dependencies to be installed from the
npm
registry.