{"_id":"@andimeier/deploy-node","_rev":"12-8ae26f69067486cd1bab64f03ed92a03","time":{"0.0.2":"2019-05-07T22:01:17.384Z","created":"2019-05-07T22:07:08.547Z","0.0.3":"2019-05-07T22:07:08.676Z","modified":"2022-04-04T13:58:28.674Z","0.0.4":"2019-05-08T12:08:56.679Z","0.1.0":"2019-05-21T10:30:08.055Z","0.1.1":"2019-05-21T10:42:10.783Z"},"name":"@andimeier/deploy-node","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.4":{"name":"@andimeier/deploy-node","version":"0.0.4","description":"Deployment made easy for node projects","main":"lib/deploy.js","bin":{"deploy":"bin/deploy.js"},"repository":{"type":"git","url":"git+https://github.com/andimeier/deploy-node.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["deploy"],"author":{"name":"Alexander Eck-Zimmer"},"license":"ISC","dependencies":{"ansi-escape-sequences":"^4.1.0","camelcase":"^5.3.1","chalk":"^2.4.2","command-line-args":"^5.1.1","exit":"^0.1.2","eyes":"^0.1.8","fs":"0.0.1-security","fs-extra":"^7.0.1","jsonfile":"^5.0.0","lodash":"^4.3.0","moment":"^2.11.2","rimraf":"^2.5.1","shelljs":"^0.8.3","tar":"^4.4.8"},"gitHead":"73a34c039ff3bb719bad333f5245a01f6946b11f","bugs":{"url":"https://github.com/andimeier/deploy-node/issues"},"homepage":"https://github.com/andimeier/deploy-node#readme","_id":"@andimeier/deploy-node@0.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"andimeier","email":"andimeier@gmx.net"},"dist":{"integrity":"sha512-bgxz+rSdnKCF7tyChqcVs/NdLlte3cyJH1kkxPvMcm/bHgj9xf7GlbH59xP2r0Zai3mfK94bbmxVoIErhnNKNg==","shasum":"2e4f3993f0b596e8b6854915e127234f2b749eaf","tarball":"https://registry.npmjs.org/@andimeier/deploy-node/-/deploy-node-0.0.4.tgz","fileCount":10,"unpackedSize":19963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0sbZCRA9TVsSAnZWagAADn8P/Rc8tgdk1iJP1DtBzsrV\n442BspJ8aEofOmkTJ3qxTFR8Uszr7iBNrsJpxOa5cO5Gnbx4LnXnScLNGUo5\nvMxp25aFmwRHICKkpAcYiHC8b1JzfZggt6AggCI5QjmRT5zlGXlh8jtcgMAq\n4y9MGGXMk0Me+Ga1d8csrq/VqGgRw3ptUL2Zqk+mELC+KMKYejFlBs6zYfzb\ndb2qiKjfzJoR6v5JCq02qP1xmF8sUg42sRdkOu410/QoFqdMj3RvTQZGU3YB\niwqDvIzxJIl6Ebh6chvONG8UnrPD5WGlfP1y8bH1ljO0qKOGXDeIb62FRx4I\n4Pto/UB+9dLgdEFRGlhplCRavFzK8G7g3gByYk107EkYzHOUgpa3D7vHjt9P\nbl2Hwy8ce7pCWEzZO0u3OttZaVQcLkNq+/o8i4K5h1JuvsBCSHuWBNR3KPpE\nF+QffAwJokgl2s9TzvdVe/7Mq56b0JSChYKxZKqYS5KeAXWcO/nLAzBtHqah\nPm/P4fhtyA0lpZsVvDliFnIUiNTV1ThoKXU1Qpk3rXkRoFbTQJv2Si4JWjUG\nEUUcSgZ4R+33ssmL8f/bXYxzn1B+gDMmb5HDd5HXsFnlICOvrxScEXHoBRL4\nJGpv6IeAF7h54DF59xg6FORxJSEdB7gVccBTWLk9FEfweAl3lKoTHElgbl3z\nCDKN\r\n=nmiF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIATkSdfvr74+GTr2O6Dd/wVa5gqvgCV3+pDPUI4bgc0rAiAOuyS5unrYWozhtyD1FictM1CH3qWsNqVDtom93kdzrw=="}]},"maintainers":[{"name":"andimeier","email":"andimeier@gmx.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deploy-node_0.0.4_1557317336528_0.6803829423779646"},"_hasShrinkwrap":false},"0.1.1":{"name":"@andimeier/deploy-node","version":"0.1.1","description":"Deployment made easy for node projects","bin":{"deploy":"bin/deploy-node.js"},"repository":{"type":"git","url":"git+https://github.com/andimeier/deploy-node.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["deploy","build"],"author":{"name":"Alexander Eck-Zimmer"},"license":"ISC","dependencies":{"ansi-escape-sequences":"^4.1.0","camelcase":"^5.3.1","chalk":"^2.4.2","command-line-args":"^5.1.1","command-line-usage":"^5.0.5","exit":"^0.1.2","eyes":"^0.1.8","fs":"0.0.1-security","fs-extra":"^7.0.1","jsonfile":"^5.0.0","lodash":"^4.3.0","moment":"^2.11.2","rimraf":"^2.5.1","shelljs":"^0.8.3","tar":"^4.4.8"},"gitHead":"c1e547622f86db1e1b8ad2a31c87d55b909b968b","bugs":{"url":"https://github.com/andimeier/deploy-node/issues"},"homepage":"https://github.com/andimeier/deploy-node#readme","_id":"@andimeier/deploy-node@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"andimeier","email":"andimeier@gmx.net"},"dist":{"integrity":"sha512-HJoYSet9+6Q4CxYiJcHuc7BGT5kLdtYIWDxVSWpfrLZO8LKhdGmHFY4HIoeDjQGwnitGV4gTNs2PECwLj1S/sA==","shasum":"5ef470039a1a821d3f75de7239881ebd4abe71c1","tarball":"https://registry.npmjs.org/@andimeier/deploy-node/-/deploy-node-0.1.1.tgz","fileCount":10,"unpackedSize":16544,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc49YDCRA9TVsSAnZWagAA6FgP/A5f7/RtPZEbspCm/oY5\n5WonSBLV1l3GoNwXiv3hPg2DDz86VxFoQ0QHSKB3ppp17JbCJ02TkAPoL2Go\n66rViuE3IFJ65/IhLIOZROFOtKl6HF6cxSXLtBGNBIOm6NoYWpnTLh077My/\nQqWQQYARMH8R4XHtPNpVsJii9eLXmw0OwbPN0TOT7/wK9y5JnvD3vyPU87eA\nuuovnzrD7kGcLhZ9Z+Qo6iw0GCHSmRk7mwk/OTFFQN0xJKGCJkNj+FRInhND\nfpOrJvzBy5aGMfR1YsrtccIQbgppOne2WztWqRNHMgn8z7cS2qgZRcAyqbPP\nnEojiUnga2nysGBaas1pqyYgCOVkkwpzQ0bbl1Ob+nF0K8kCOXhxDrKPD1XY\njeesNVA3TfTzXO+W5UzFCeLV8eGBUjWeTm2PoO4gD9x7ieGlSSTV73e2RraV\n5fjSRon1ICxfOvIMNyJmbdCgYz6q+aPNY0fEgVclnADMwcKAJBjXqEjX+jwS\nnLzpqT0jfM7mag/PzwpTafAR3yyzHssDVtj1RhybSKEidoRg0b/e6P2tOHI2\n+o89NnF4VqpaiJ8H+RaCrctAmciXLCuhcub26EBb7V1oIbF9DzNtnFBPdJCP\nNRq7FoHyHrZ2qpHTQ1EluHVZAZjjprjkusP+qHz7BlAOt4WWDCMh8xBHY+Pi\nY5C0\r\n=vaGz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9GDvS3bY9JWEzcfNuvmLXaCRlJaDr2DNjIEKul4TOxAiAqvRxP9V/6+F1oaQ6THRHP8kGHZ2EnHoY3l4zh+robVQ=="}]},"maintainers":[{"name":"andimeier","email":"andimeier@gmx.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deploy-node_0.1.1_1558435330684_0.8780522642051771"},"_hasShrinkwrap":false}},"maintainers":[{"name":"andimeier","email":"andimeier@gmx.net"}],"description":"Deployment made easy for node projects","homepage":"https://github.com/andimeier/deploy-node#readme","keywords":["deploy","build"],"repository":{"type":"git","url":"git+https://github.com/andimeier/deploy-node.git"},"author":{"name":"Alexander Eck-Zimmer"},"bugs":{"url":"https://github.com/andimeier/deploy-node/issues"},"license":"ISC","readme":"# deploy-node\n\nDeploys Javascript applications. To be used as a npm script because some properties will be drawn\nfrom the environment variables which `npm` adds for the scripts.\n\nAt the moment, it simply builds a node application, the result being:\n\n- a build folder cointaining the executable application\n- a tar.gz file containing the targz'ed build folder (this is the \"deployment package\")\n\n## Folder structure\n\nThe specified build folder (the \"dist\" folder) will be populated with the following items:\n\n1. an application folder\n2. the targz'ed application folder\n\nThe filename of both is:\n\n    PROJECT_VERSION+TIMESTAMP\n\nSo, the folder is e.g.:\n\n    spectre_v1.2.3/\n\nwhile the deployment package is\n\n    spectre_v1.2.3.tar.gz\n\n## Steps\n\n`deploy-node` will perform the following steps:\n\n- copy all source files to the `dist` folder in a subfolder named after the project, e.g. `dist/PROJECT_v1.0.0`\n- install `node_modules` with `--production` flag, so only the production dependencies are installed\n- generate a version file\n- targz the folder\n\n## Installation\n\nInclude the deploy scripts using:\n\n    npm install --save-dev deploy-node\n\nThis will install the `deploy-node` libs into your `node_modules` and a binary named `deploy` in `node_modules/.bin`, so that npm scripts can use the `deploy` command.\n\n## Usage\n\nTypical usage is to include `deploy-node` in your npm scripts in `package.json` like this:\n\n```json\n{\n  ...\n  \"scripts\": {\n\t\"build\": \"deploy --version-file version.json\"\n  }\n}\n```\n\nList all available options with `deploy --help`, the output will be something like this:\n\n```\ndeploy.js\n\n  Deployment script for node and Angular apps.\n\nOptions\n\n  -v, --verbose                Verbose output\n  -m, --message message        Deployment message\n  --timestamp                  Add timestamp to filename of output file\n  --detect-config-changes      Warn if the config files have changed since the last tagged version\n  --print-last-commit          Print the log message of the last commit\n  -p, --project name           Name of the project as it. This will be used as a prefix for the filename of\n                               the deployment package. If omitted, the script tries to retrieve the project\n                               name from the environment (this only works if the script was invoked via 'npm\n                               run'). In this case, the project name specified in the package.json file will\n                               be used.\n  --workdir-clean              Warn if the work directory is dirty\n  --version-file filename      File name of version file to be written. If omitted, no version file will be\n                               generated.\n  -b, --batch                  Enable batch mode. There are no interactions, no user confirmations etc.\n                               Suitable for e.g. a build triggered by a CI server\n  -o, --build-folder folder    Folder in which the build takes place. The contents of this folder will then\n                               be packaged to the output file. Default is `dist`.\n  -s, --source-folder folder   Folder containing the source file to be packaged. The contents of this folder\n                               will be transferred to the build folder, then packaged to the output file.\n                               Default is `src`.\n  -z, --tar-gz                 Tarzip the result. When this option is given, the build folder will contain\n                               a folder with\n  -h, --help                   Display this help message\n```\n","readmeFilename":"README.md"}