{"id":16886229,"url":"https://github.com/mvila/serverless-plugin-scripts","last_synced_at":"2025-04-06T07:12:40.159Z","repository":{"id":15611971,"uuid":"78498222","full_name":"mvila/serverless-plugin-scripts","owner":"mvila","description":"Add scripting capabilities to the Serverless Framework","archived":false,"fork":false,"pushed_at":"2022-05-27T10:21:21.000Z","size":5,"stargazers_count":125,"open_issues_count":2,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T06:05:00.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-10T04:41:37.000Z","updated_at":"2025-01-20T18:27:55.000Z","dependencies_parsed_at":"2022-07-21T21:18:51.708Z","dependency_job_id":null,"html_url":"https://github.com/mvila/serverless-plugin-scripts","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fserverless-plugin-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fserverless-plugin-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fserverless-plugin-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fserverless-plugin-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvila","download_url":"https://codeload.github.com/mvila/serverless-plugin-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445671,"owners_count":20939958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:38:46.873Z","updated_at":"2025-04-06T07:12:40.132Z","avatar_url":"https://github.com/mvila.png","language":"JavaScript","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## Caution\n\n**This project is in maintenance mode, and it will not get any new features.**\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 about existing lifecycle events, check out [this page](https://gist.github.com/HyperBrain/50d38027a8f57778d5b0f135d80ea406).\n\n## Author\n\nCreated and maintained by [Manuel Vila](https://github.com/mvila).\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvila%2Fserverless-plugin-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvila%2Fserverless-plugin-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvila%2Fserverless-plugin-scripts/lists"}