{"analyzedAt":"2022-07-10T12:35:37.061Z","collected":{"metadata":{"name":"deploy-app","scope":"unscoped","version":"1.0.3","description":"Deploy apps, projects or stuff using scp","keywords":["simple","deploy","deployment","scp","node","app","project","pre-deploy","post-deploy","ssh","easy","minimal"],"date":"2019-06-11T08:34:38.168Z","author":{"name":"Benjamin Reiersølmoen"},"publisher":{"username":"benjrei","email":"benrei.reg@gmail.com"},"maintainers":[{"username":"benjrei","email":"benrei.reg@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/benrei/deploy-app.git"},"links":{"npm":"https://www.npmjs.com/package/deploy-app","homepage":"https://github.com/benrei/deploy-app#readme","repository":"https://github.com/benrei/deploy-app","bugs":"https://github.com/benrei/deploy-app/issues"},"license":"MIT","dependencies":{"commander":"^2.18.0","jsonfile":"^5.0.0"},"releases":[{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2020-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"# deploy-app\n[![Build Status](https://travis-ci.org/benrei/deploy-app.svg?branch=master)](https://travis-ci.org/benrei/deploy-app)\n[![NPM version](https://img.shields.io/npm/v/deploy-app.svg)](https://www.npmjs.com/package/deploy-app)\n\n\nLightweight deployment solution for node apps, projects and stuff\n\n\n>$ deploy-app -d prod\n\n\n\n## Installation\n\n```sh\n$ npm install deploy-app\n```\n\n## Usage\n\n### Init\nRun in project root\n\n>$ deploy-app `init`\n\n\nAdds a `deploy-app-config.json` config file in your project folder\n\n\n```json\n{\n  \"prod\":{\n    \"user\": \"deploy\",\n    \"host\": \"192.168.0.1\",\n    \"port\": \"22\",\n    \"files\": \"build src *.json app.js\",\n    \"path\": \"~/projectFolder\",\n    \"pre-deploy-local\" : \"npm run build\",\n    \"pre-deploy-remote\" : \"mkdir projectFolder; cd projectFolder; foo bar\",\n    \"post-deploy\" : \"npm install --production; node app.js\"\n  },\n  \"dev\":{},\n  \"staging\":{}\n}\n```\n\n\n### Deploy\nTo deploy `prod`, simply run:\n\n\n>$ deploy-app `-d prod`\n\n\nThat's it.<br>\nHappy coding!\n\n### Help\nFor help see:\n>$ deploy-app -h\n\n##  Docs\n```js\n{\n  \"prod\":{\n    //  Used to connect to SSH and SCP\n    \"user\": \"deploy\",\n    \"host\": \"192.168.0.1\",\n    \"port\": \"22\",\n    //  Add files and folders seperated by \" \" space\n    \"files\": \"build src *.json app.js\",\n    // Path to project on target server\n    \"path\": \"~/projectFolder\",\n    // Can be multiple commands separated by the character \";\"\n    // Commands to execute locally before deploying\n    \"pre-deploy-local\" : \"npm run build\",\n    // Commands to execute remote before deploy\n    \"pre-deploy-remote\" : \"mkdir projectFolder; cd projectFolder; foo bar\",\n    // Commands to execute remote after deploy (in project root)\n    \"post-deploy\" : \"npm install --production; node app.js\"\n  },\n  //  Add multiple environments\n  \"dev\":{},\n  \"staging\":{}\n}\n```\n\n## License\n\n  [MIT](LICENSE)"},"npm":{"downloads":[{"from":"2022-07-09T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1},{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":5},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":42},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":258},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":450},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":1149}],"starsCount":0},"github":{"starsCount":3,"forksCount":2,"subscribersCount":2,"issues":{"count":4,"openCount":2,"distribution":{"3600":2,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":2},"isDisabled":false},"contributors":[{"username":"benrei","commitsCount":1}],"commits":[{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-06-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-04-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2022-01-11T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0},{"from":"2021-07-10T00:00:00.000Z","to":"2022-07-10T00:00:00.000Z","count":0}],"statuses":[{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":1836,"testsSize":30},"badges":[{"urls":{"original":"https://travis-ci.org/benrei/deploy-app.svg?branch=master","service":"https://api.travis-ci.org/benrei/deploy-app.svg?branch=master","shields":"https://img.shields.io/travis/benrei/deploy-app/master.svg","content":"https://img.shields.io/travis/benrei/deploy-app/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}},{"urls":{"original":"https://img.shields.io/npm/v/deploy-app.svg","shields":"https://img.shields.io/npm/v/deploy-app.svg","content":"https://img.shields.io/npm/v/deploy-app.json"},"info":{"service":"npm","type":"version","modifiers":{"type":"v"}}}],"outdatedDependencies":{"commander":{"required":"^2.18.0","stable":"9.3.0","latest":"9.3.0"},"jsonfile":{"required":"^5.0.0","stable":"6.1.0","latest":"6.1.0"}}}},"evaluation":{"quality":{"carefulness":0.71,"tests":0.295,"health":0.5,"branding":0.3},"popularity":{"communityInterest":8,"downloadsCount":86,"downloadsAcceleration":-0.5989726027397261,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9,"issuesDistribution":0.9}},"score":{"final":0.5994701772685176,"detail":{"quality":0.7847581343892059,"popularity":0.04024127161877657,"maintenance":0.9998808339576686}}}