{"_id":"@amaplex-software/gulp-slack","_rev":"1-2be7a01c6a9fa7208bb5401ec6ab8ca2","name":"@amaplex-software/gulp-slack","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.2":{"name":"@amaplex-software/gulp-slack","version":"0.1.2","description":"Post messages to Slack","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"node-slack":"git+https://github.com/Auoja/node-slack.git#v2.0","through2":"0.4.x"},"repository":{"type":"git","url":"git://github.com/Auoja/gulp-slack.git"},"keywords":["gulp","gulpplugin","slack"],"author":{"name":"Anton Auoja","email":"antonauoja@gmail.com"},"licenses":[{"type":"MIT","url":"http://github.com/Auoja/gulp-slack/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/Auoja/gulp-slack/issues"},"homepage":"https://github.com/Auoja/gulp-slack","_id":"@amaplex-software/gulp-slack@0.1.2","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-lJpHgqOV7AuyeZSbE9S2SDemSgg6xXgSZendv+qN7Wr1VaLcJK7YJDI8ouY2iFJk57E8BzcF1+UimwyWcrcc+w==","shasum":"ad57e87702709337596dc557845a57c2b06d254b","tarball":"https://registry.npmjs.org/@amaplex-software/gulp-slack/-/gulp-slack-0.1.2.tgz","fileCount":4,"unpackedSize":4725,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzBdR7KIjk+I7bin568REa4eQBN/1pwUfysi4/ipEXIAiEAlPx5IPMSXEVet8Cjdbtr5lBETG4AqXx0oAAUFtZXGWI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidRYYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruAw/5AFuglygdTbh4LTCmWTI32K9Acb2rvXN+Rufj8OJvwxRJUaEt\r\nPXWKmONYXaGcQKO3oA7Y1RO66BbSxFbdfFVBBP2AOp5qJnBPg9KjCIQ1cHny\r\ndbaor18J3NTsIsnpZZhThSLZoKERgROGwfT5FJORoHi+TQQKTLwT8gwQZauu\r\nog/xrdUUTb7wBpl2W6ugxyKsm1oi+pGOJ4/dHyD/4g7/IONIlAJ4tV4oVJpA\r\nvJ1PIixdzLBwaDgdKtjigpZFqhg43qlj26PsS2h9arbkk4y5HWPaMHKGU/Z3\r\nf38CXCDP+XOOW19+US6/1KVlU3kkfWUh0DUwJo3CpqEM+eIWHJ+qfQ3pXN5W\r\nrkAzBsWwali7rdicLuqIqj8xNQO6ECz4Wwiv5X2d355SU/j6YaLrqoQBGJRf\r\n3CUgvxqcRHnr4asF59AQnrE2Ay9KhVDzTQkAi4zpmGdRgOCRaHTDl/tVuAF1\r\nqFdWNIuaRyRGLNoxz8xkd8HUse2Z9xUItChZhd45PPyAYNWOb+4Qcco4Ef2G\r\n7hYLqrNZ6eUi4rWrTQnSQeLTEUwzlqZr/hwTtWuBx4xZ/fC+DAzpelIyHKFg\r\nFO1dO2a6suwVRi7d4/iTTw07FgSrijuy9/XUY+oFQssdVtzwReMQvLL0ct9S\r\nmRgLqPb/V19/j7GI/Dd4j5XiIDkm2xuB9V0=\r\n=WUS3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adrien-fery","email":"contact@adrien-fery.com"},"directories":{},"maintainers":[{"name":"adrien-fery","email":"contact@adrien-fery.com"},{"name":"grumpy-cat","email":"thomas.vasbinder@amanote.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-slack_0.1.2_1651840535856_0.13989160342798468"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-06T12:35:35.803Z","0.1.2":"2022-05-06T12:35:36.002Z","modified":"2024-05-14T19:58:36.649Z"},"maintainers":[{"email":"contact@adrien-fery.com","name":"adrien-fery"}],"description":"Post messages to Slack","homepage":"https://github.com/Auoja/gulp-slack","keywords":["gulp","gulpplugin","slack"],"repository":{"type":"git","url":"git://github.com/Auoja/gulp-slack.git"},"author":{"name":"Anton Auoja","email":"antonauoja@gmail.com"},"bugs":{"url":"https://github.com/Auoja/gulp-slack/issues"},"readme":"#gulp-slack\n\nSimple gulp plugin to post information to Slack.\n\n##Usage\n\n###Basic use\n\n```javascript\n\nvar sftp = require('gulp-sftp');\nvar slack = require('gulp-slack')({\n    url: '*Your Webhook URL*',\n    channel: '#foo', // Optional\n    user: 'bar', // Optional\n    icon_url: 'http://foo.com/bar.jpg', // Optional\n    icon_emoji: ':bowtie:' // Optional\n});\n\ngulp.task('deploy', function () {\n    return gulp.src('src/*')\n        .pipe(sftp({\n            host: 'website.com',\n            user: 'johndoe',\n            pass: '1234'\n        }))\n        .pipe(slack('Deployed latest build'));\n});\n\n```\n\n###Attachments\n\nTo display a richly-formatted message attachment in Slack, you need to pass an attachments array to gulp-slack. Each element of this array should contain the following parameters:\n\n```javascript\n\n{\n    'fallback': 'Required text summary of the attachment that is shown by clients that understand attachments but choose not to show them.',\n    'text': 'Optional text that should appear within the attachment',\n    'pretext': 'Optional text that should appear above the formatted data',\n    'color': '#36a64f', // Can either be one of 'good', 'warning', 'danger', or any hex color code\n    // Fields are displayed in a table on the message\n    'fields': [\n    {\n        'title': 'Required Field Title', // The title may not contain markup and will be escaped for you\n        'value': 'Text value of the field. May contain standard message markup and must be escaped as normal. May be multi-line.',\n        'short': false // Optional flag indicating whether the `value` is short enough to be displayed side-by-side with other values\n    }\n}\n\n```\n\nExample:\n\n```javascript\n\nvar sftp = require('gulp-sftp');\nvar slack = require('gulp-slack')({\n    url: '*Your Webhook URL*',\n    channel: '#foo', // Optional\n    user: 'bar', // Optional\n    icon_url: 'http://foo.com/bar.jpg', // Optional\n    icon_emoji: ':bowtie:' // Optional\n});\n\ngulp.task('deploy', function () {\n    return gulp.src('src/*')\n        .pipe(sftp({\n            host: 'website.com',\n            user: 'johndoe',\n            pass: '1234'\n        }))\n        .pipe(slack([\n            {\n                'fallback': 'Latest build available <https://website.com/|here>',\n                'pretext': 'Latest build available <https://website.com/|here>',\n                'color': '#daa520',\n                'fields': [\n                    {\n                        'title': 'Notes',\n                        'value': 'Gulp is awesome!'\n                    }\n                ]\n            }\n        ]));\n});\n\n```\n","readmeFilename":"README.md"}