{"_id":"@alexrah/ssh-watch-upload-webpack-plugin","_rev":"3-f8820bbd5da94fc786e1afe80f05ea5a","name":"@alexrah/ssh-watch-upload-webpack-plugin","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.5":{"name":"@alexrah/ssh-watch-upload-webpack-plugin","version":"1.0.5","description":"[Forked - published on NPM under @alexrah namespace] A webpack plugin that watches your changed files and uploads the newly compiled assets to an external server via SSH","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["webpack","plugin","ssh","upload","ssh-watch-upload-webpack-plugin"],"bugs":{"url":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin"},"homepage":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin","repository":{"type":"git","url":"git+https://github.com/alexrah/ssh-watch-upload-webpack-plugin.git"},"author":{"name":"Daniel Lerman","email":"dev@dlerman.com","url":"https://github.com/dlerm"},"license":"MIT","dependencies":{"chalk":"^4.1.0","node-ssh":"^11.1.1","open":"^7.3.0"},"gitHead":"8963335b772ccf8719a239727de64cb1effe09b3","_id":"@alexrah/ssh-watch-upload-webpack-plugin@1.0.5","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-L4G84NPtFAfgF7H/d96Z2lAOhYiLueXe/CHGgW7hcA+MbWQTX5VcKwlragmtUEER+VvB7LjM2Xyw3lpFNV/hWQ==","shasum":"4a917d2007bd3c8659dcca7dc441dcb9b9734b7f","tarball":"https://registry.npmjs.org/@alexrah/ssh-watch-upload-webpack-plugin/-/ssh-watch-upload-webpack-plugin-1.0.5.tgz","fileCount":4,"unpackedSize":8605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfnIpOxYj3cZT5VR1AJ05vibiycc/JSLMczWYxdqFrdAiEApQsnLfw00KE4UGekNtsvAtYPX57OP3IsPRn9BNm2z9M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH7mAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopXQ//fKihE/jl0b4XaUyt9NmlcXm7sBQAd6mtpbUmQScGxSuaS6uc\r\nlDzbQgUstgPNYVrcb/nEp0WoRqb/dOBPD1qJ7mUAuLrNEQ3LbVSHsqqCjyn/\r\n+HaLqhrqhK1+0SWfmznQZYcbUKXW7Wpxvdzdx1Z1Prgjs7F56Zur+pPVvWn1\r\nJ87t/j0TH/hcZ42sAqQy1j4Mq/Mizr5JuckOByVaq0eMriR1QoEtMNwryPug\r\nDZ801bX8hYzARQEVO5g1Uy0uvKKjPyuu8h7VFIVoGXB/T7Kro9YsCXqLpxr7\r\nH/eB1cWoAK0eMo6BBcKiZyTbpf+eJ0B2Hc7Ai1F3UmO0qHpE4oaQXlYIMUGT\r\nRepmrlyQXOpV9rrFw48jU9H3ADsmSioauLtHi3MCBiPqfPZih/dp6Zc2tpIP\r\n3DuLK8nx7ZE4QjkMeTki1yE6qVYcfzvtcLISSmf8VzwrIV1RdIvVelZRC5zg\r\nNARPPTblcUSEKyvzNAK4c43zMKYAOksgg2y9Cj1Mkw30Hsg5E4JhttMfjWPQ\r\nKIdhR2MneWL2tyIM2narPjz/5pGmcJX3eJf0i8PHxfkWC14BSbmYhtmjTFoM\r\nzCl6IsIVpsls3mtJYI2P4xMdlFHuQU/VOBfQieKIGIbNBELNugyLig0B/QIe\r\na6jIdw3FLnBPDVbzEyFCfeasaCY7RAOqy5M=\r\n=z1Oc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"directories":{},"maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssh-watch-upload-webpack-plugin_1.0.5_1663023487758_0.8602794623733299"},"_hasShrinkwrap":false},"1.0.6":{"name":"@alexrah/ssh-watch-upload-webpack-plugin","version":"1.0.6","description":"[Forked - published on NPM under @alexrah namespace] A webpack plugin that watches your changed files and uploads the newly compiled assets to an external server via SSH","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["webpack","plugin","ssh","upload","ssh-watch-upload-webpack-plugin"],"bugs":{"url":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin"},"homepage":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin","repository":{"type":"git","url":"git+https://github.com/alexrah/ssh-watch-upload-webpack-plugin.git"},"author":{"name":"Daniel Lerman","email":"dev@dlerman.com","url":"https://github.com/dlerm"},"license":"MIT","dependencies":{"chalk":"^4.1.0","node-ssh":"^11.1.1","open":"^7.3.0"},"gitHead":"761543bccb67214b8dd8e088b475a20b2a200d3c","_id":"@alexrah/ssh-watch-upload-webpack-plugin@1.0.6","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-5/Jqi+ZFhouorHrFOgmlAfP9Oywh3aBLhd9TlWYdnblHb/Zd3F8kKKoLcWPAvQQ+3gHj2JxUwmjO3N8NyICb2w==","shasum":"9b1c564aca9d14dbdeed3a1dc8302d3a94d3d21b","tarball":"https://registry.npmjs.org/@alexrah/ssh-watch-upload-webpack-plugin/-/ssh-watch-upload-webpack-plugin-1.0.6.tgz","fileCount":4,"unpackedSize":8605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNnH6pFBPA3AMBimyZb1tabMgUna2CgT5N8dfRD1+QDgIgJ27P4u0bcwR1FX74wM3PHp91lZCM5WukI7Vua8LRZnY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH7ojACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCHA/+OnS87VHsmjtSJGxIO1Jsu4HleItZSfrfmNeaGJ12Ilo6s7I6\r\nhPSZ/Sybhv/pc2zBS4Px4puV8SHbk/XkVt4amA0GNISUyRX2hjprIa6sXNfB\r\nr2Tcjf7+u7HccPAEoiCeaeHzPR6AviQgKRidRyC7bhekWBM0WyMFGrVpzGeR\r\nTmuZ8cMok3dp7SNcaKIr6j3rq4CuhsivwQcmPhHKVi1iAXNgcYiO+j4gaHkR\r\nyNy6B6Jbj/4JtLtc5QZl6diANmRbXYPK7Hsl1MTBOCC9byC6JfSma7EGT4pY\r\ncMB3cRba93Hc9mf/+uth/3gFPJ2TxtIXjqKtsdBfzopUGPlp9VPKnD+RDL+3\r\n1BSRw9BlYbc4ZWEGuiqFitsKKl3Ef7E6RsgC+kIn0y8cU2IK/oOWQpRv2see\r\nE8eyCPrf3l5YTsQCm1lGUdmOQgNSsshBGcQFhZV2ov5zE8jFGHAul4O9Q9f8\r\nd1OdEeLUVItaLKtWOi1PkW66RSJUO+SEdNglZSvXvGvERalC/Gz4eGNkEk58\r\nblJIY41O8VrXY4a+8mZKrSV5KkJn0GccY5QnafyfR9WTNsnJIoryzY1RnfnQ\r\nNrIcQO60qa1mwIiXqDp3c2ubM6JqqHVFEt3N14OdhafEFT/9PBzpC+52LB1B\r\nfI4/FGSkoOzMrWHbOgcFMQqtiZqv+DOnutI=\r\n=WsmC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"directories":{},"maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssh-watch-upload-webpack-plugin_1.0.6_1663023651772_0.5240914776289547"},"_hasShrinkwrap":false},"1.1.0":{"name":"@alexrah/ssh-watch-upload-webpack-plugin","version":"1.1.0","description":"[Forked - published on NPM under @alexrah namespace] A webpack plugin that watches your changed files and uploads the newly compiled assets to an external server via SSH","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["webpack","plugin","ssh","upload","ssh-watch-upload-webpack-plugin"],"bugs":{"url":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin"},"homepage":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin","repository":{"type":"git","url":"git+https://github.com/alexrah/ssh-watch-upload-webpack-plugin.git"},"author":{"name":"Daniel Lerman","email":"dev@dlerman.com","url":"https://github.com/dlerm"},"license":"MIT","dependencies":{"chalk":"^4.1.0","node-ssh":"^13.1.0","open":"^7.3.0"},"_id":"@alexrah/ssh-watch-upload-webpack-plugin@1.1.0","gitHead":"761543bccb67214b8dd8e088b475a20b2a200d3c","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ZD7OrrWzyBCrWS9gRbSK/UC++cPbEhC6U1VTF9005ceHTUzjhXO0ZxtyIQ3jDC1i9QQXDl9huH503+zPToGj8Q==","shasum":"6dd446cd048905f6cbe62179ca4470ed69b303f5","tarball":"https://registry.npmjs.org/@alexrah/ssh-watch-upload-webpack-plugin/-/ssh-watch-upload-webpack-plugin-1.1.0.tgz","fileCount":4,"unpackedSize":8605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHyJM/hiZkMTuP+3G6RtOfzRbj+WCOcNg1In1QJs7BoQIhAIid8itMTjriTkxYSB2RLOWbAW80LLAh8XKx90L1/gWP"}]},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"directories":{},"maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssh-watch-upload-webpack-plugin_1.1.0_1712009757653_0.4116453055199967"},"_hasShrinkwrap":false},"1.1.1":{"name":"@alexrah/ssh-watch-upload-webpack-plugin","version":"1.1.1","description":"[Forked - published on NPM under @alexrah namespace] A webpack plugin that watches your changed files and uploads the newly compiled assets to an external server via SSH","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["webpack","plugin","ssh","upload","ssh-watch-upload-webpack-plugin"],"bugs":{"url":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin"},"homepage":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin","repository":{"type":"git","url":"git+https://github.com/alexrah/ssh-watch-upload-webpack-plugin.git"},"author":{"name":"Daniel Lerman","email":"dev@dlerman.com","url":"https://github.com/dlerm"},"license":"MIT","dependencies":{"chalk":"^4.1.0","node-ssh":"^13.1.0","open":"^7.3.0"},"_id":"@alexrah/ssh-watch-upload-webpack-plugin@1.1.1","gitHead":"bca76a7e2ede0a6c255f93f7fd3c52e213c78754","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-+S+X2nyY+ONYfXyrPUMQ56wvrIrYfl48KnLC0MUN0qW7ZM/xtIJCGQ9oEACAuly5REFxopg+HfcZomoehYd6Fw==","shasum":"97f4fda9a45e2b9414a5a7b38a0d1be1973ae141","tarball":"https://registry.npmjs.org/@alexrah/ssh-watch-upload-webpack-plugin/-/ssh-watch-upload-webpack-plugin-1.1.1.tgz","fileCount":4,"unpackedSize":8645,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRYZ1dPvLeRw3kXX6hG5o/fRHK5q9/yTgR/tYoN7ixFAiApbolE2dzGjrt1NGdJPsh6r+GOnE06m9Tu4GO05buMxg=="}]},"_npmUser":{"name":"alexrah","email":"alexrah@gmail.com"},"directories":{},"maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssh-watch-upload-webpack-plugin_1.1.1_1712011212463_0.43622536389258837"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-12T22:58:07.705Z","1.0.5":"2022-09-12T22:58:08.375Z","modified":"2024-04-01T22:40:12.755Z","1.0.6":"2022-09-12T23:00:51.946Z","1.1.0":"2024-04-01T22:15:57.828Z","1.1.1":"2024-04-01T22:40:12.609Z"},"maintainers":[{"name":"alexrah","email":"alexrah@gmail.com"}],"description":"[Forked - published on NPM under @alexrah namespace] A webpack plugin that watches your changed files and uploads the newly compiled assets to an external server via SSH","homepage":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin","keywords":["webpack","plugin","ssh","upload","ssh-watch-upload-webpack-plugin"],"repository":{"type":"git","url":"git+https://github.com/alexrah/ssh-watch-upload-webpack-plugin.git"},"author":{"name":"Daniel Lerman","email":"dev@dlerman.com","url":"https://github.com/dlerm"},"bugs":{"url":"https://github.com/alexrah/ssh-watch-upload-webpack-plugin"},"license":"MIT","readme":"# SSH Watch Upload Webpack Plugin\n\nA plugin that watches your files and uploads the newly compiled assets to an external server via SSH\n\n## Install\n\n```bash\nnpm i @alexrah/ssh-watch-upload-webpack-plugin\n```\n\n```bash\nyarn add --dev @alexrah/ssh-watch-upload-webpack-plugin\n```\n\n## Usage\n\nThe plugin will hook into Webpack and upload emitted assets to a destination server using a basic SSH connection. Add the plugin to your Webpack config like this:\n\n**webpack.config.js**\n\n```js\nconst SSHWatchUploadWebpackPlugin = require('ssh-watch-upload-webpack-plugin');\n\nmodule.exports = {\n  entry: ...,\n  output: ...,\n  plugins: [\n    ...,\n    new SSHWatchUploadWebpackPlugin({\n      mode: ...,\n      host: ...,\n      port: ...,\n      username: ...,\n      passphrase: ...,\n      privateKeyPath: ...,\n      uploadPath: ...,\n      domain: ...,\n      openDomain: ...,\n    }),\n  ],\n};\n```\n\nOnce configured, you can run Webpack in watch mode to activate the plugin:\n\n```bash\nnpx webpack -w\n```\n\n```bash\nyarn webpack -w\n```\n\nAlternatively, you can enable watch mode via the Webpack config:\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  entry: ...,\n  output: ...,\n  watch: true, // Enable watch mode\n  plugins: [\n    ...,\n    new SSHWatchUploadWebpackPlugin({...}),\n  ],\n};\n```\n\nWhen activated you will see the terminal generating logs:\n\n```bash\n[SSHWatchUpload] [22:01:48] Connected to server\n[SSHWatchUpload] [22:01:49] Watching for changes...\n```\n\nAfter editing and saving a file while in watch mode you will see upload confirmation logs:\n\n```bash\n[SSHWatchUpload] [22:30:57] Uploading main.js...\n[SSHWatchUpload] [22:30:57] Upload complete: main.js\n```\n\n## Options\n\nYou can pass a hash of configuration options to `ssh-watch-upload-webpack-plugin`.\nAllowed values are as follows:\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**mode**|String|''|Webpack build mode (production \\| development)|\n|**host**|String|''|External server SSH domain|\n|**port**|Number|null|Port used to connect to the external server|\n|**username**|String|''|Username used to connect to the external server|\n|**passphrase**|String|''|Passphrase used to connect to the external server|\n|**privateKeyPath**|String|''|File path of the SHH private key file|\n|**uploadPath**|String|''|Path on the external server where files should be uploaded|\n|**domain**|String|''|Public facing domain of the server|\n|**openDomain**|Boolean|false|Flag to enable the browser to automatically open the domain once connected|\n","readmeFilename":"README.md"}