{"_id":"serverless-plugin-scripts","_rev":"2-5285f5cdd32fab83e8668be3299fea3b","name":"serverless-plugin-scripts","description":"Add scripting capabilities to the Serverless Framework","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"serverless-plugin-scripts","version":"1.0.2","description":"Add scripting capabilities to the Serverless Framework","keywords":["serverless","plugin","script","shell","customize","command","hook","CLI"],"author":{"name":"Manuel Vila","email":"mvila@3base.com"},"license":"MIT","reveal":true,"files":["lib"],"main":"lib/index.js","repository":{"type":"git","url":"git://github.com/mvila/serverless-plugin-scripts.git"},"scripts":{"compile":"babel src --out-dir lib","prepublish":"npm run compile","release":"npm run lint && npm run compile && npm test && npm version $npm_config_release_type && git push --follow-tags && npm publish","release-patch":"npm run release --release-type=patch","release-minor":"npm run release --release-type=minor","release-major":"npm run release --release-type=major","lint":"eslint .","test":"echo \"Warning: no test specified\" && exit 0"},"dependencies":{},"devDependencies":{"babel-cli":"^6.18.0","babel-eslint":"^7.1.1","babel-preset-es2015":"^6.18.0","eslint":"^3.13.1","eslint-config-next":"^0.1.13"},"gitHead":"56eaf23f05e822e5c9f591e5330ba8a2546edba0","bugs":{"url":"https://github.com/mvila/serverless-plugin-scripts/issues"},"homepage":"https://github.com/mvila/serverless-plugin-scripts#readme","_id":"serverless-plugin-scripts@1.0.2","_shasum":"21808c3cfd0a1a84e48c0660b0f6f370b5665486","_from":".","_npmVersion":"4.0.5","_nodeVersion":"6.6.0","_npmUser":{"name":"mvila","email":"mvila@3base.com"},"dist":{"shasum":"21808c3cfd0a1a84e48c0660b0f6f370b5665486","tarball":"https://registry.npmjs.org/serverless-plugin-scripts/-/serverless-plugin-scripts-1.0.2.tgz","integrity":"sha512-+OL9fFz5r6BXNHfpu9MDLehS/haC0fy/T3V5uJsTfLAnNsn+PzM6BmvefUfWG372hBT7piTbywB1Vl1+4LmI5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsbZmYZmtVYr7vH4b8Eol4cSve+c+Y1X5Jsuq5eVst1wIhAKg/+0INb9P6vznyzJcels2znjgNQc+ynFmQDbH4NzAF"}]},"maintainers":[{"name":"mvila","email":"mvila@3base.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/serverless-plugin-scripts-1.0.2.tgz_1484023913718_0.6587656473275274"}}},"readme":"# serverless-plugin-scripts [![npm version](https://img.shields.io/npm/v/serverless-plugin-scripts.svg)](https://www.npmjs.com/package/serverless-plugin-scripts)\n\nAdd scripting capabilities to the [Serverless Framework](https://serverless.com/framework/).\n\n## Installation\n\nInstall the plugin in your Serverless (v1.0 or higher) project:\n\n```\nnpm install --save serverless-plugin-scripts\n```\n\nAnd activate it by adding the following configuration to your `serverless.yml` file:\n\n```yaml\nplugins:\n  - serverless-plugin-scripts\n```\n\n## Usage\n\n### Custom commands\n\nTo add a custom command to the Serverless CLI, just define a `custom.scripts.commands` property in your `serverless.yml` file:\n\n```yaml\ncustom:\n  scripts:\n    commands:\n      hello: echo Hello from ${self:service} service!\n```\n\nYou can now run `serverless hello` to execute the `hello` command.\n\n### Simple hooks\n\nIt is possible to define simple hooks for existing Serverless CLI commands by adding a `custom.scripts.hooks` property in your `serverless.yml` file:\n\n```yaml\ncustom:\n  scripts:\n    hooks:\n      'deploy:createDeploymentArtifacts': npm run compile\n```\n\nThe next time you run `serverless deploy`, your script will be automatically invoked during the `deploy:createDeploymentArtifacts` lifecycle event.\n\nTo find out all existing lifecycle events, check out the [Serverless Framework documentation](https://serverless.com/framework/docs/).\n\n## Author\n\nCreated and maintained by [Manuel Vila](https://github.com/mvila).\n\n## License\n\nMIT\n","maintainers":[{"name":"mvila","email":"mvila@3base.com"}],"time":{"modified":"2022-06-26T18:07:58.970Z","created":"2017-01-10T04:51:55.398Z","1.0.2":"2017-01-10T04:51:55.398Z"},"homepage":"https://github.com/mvila/serverless-plugin-scripts#readme","keywords":["serverless","plugin","script","shell","customize","command","hook","CLI"],"repository":{"type":"git","url":"git://github.com/mvila/serverless-plugin-scripts.git"},"author":{"name":"Manuel Vila","email":"mvila@3base.com"},"bugs":{"url":"https://github.com/mvila/serverless-plugin-scripts/issues"},"license":"MIT","readmeFilename":"README.md"}