{"id":26068366,"url":"https://github.com/minutebase/ember-cli-deploy-notify-firebase","last_synced_at":"2025-04-11T18:07:54.390Z","repository":{"id":42062913,"uuid":"43524380","full_name":"minutebase/ember-cli-deploy-notify-firebase","owner":"minutebase","description":"Notify Firebase of deploys","archived":false,"fork":false,"pushed_at":"2017-12-27T16:13:07.000Z","size":15,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-11T18:06:57.473Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minutebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-01T22:23:38.000Z","updated_at":"2016-03-19T22:41:30.000Z","dependencies_parsed_at":"2022-08-12T03:50:21.092Z","dependency_job_id":null,"html_url":"https://github.com/minutebase/ember-cli-deploy-notify-firebase","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-cli-deploy-notify-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-cli-deploy-notify-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-cli-deploy-notify-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minutebase%2Fember-cli-deploy-notify-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minutebase","download_url":"https://codeload.github.com/minutebase/ember-cli-deploy-notify-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456370,"owners_count":21106603,"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":"2025-03-08T22:25:21.926Z","updated_at":"2025-04-11T18:07:54.313Z","avatar_url":"https://github.com/minutebase.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-deploy-notify-firebase\n\n\u003e An ember-cli-deploy plugin to update a path in Firebase on activation\n\n[![](https://ember-cli-deploy.github.io/ember-cli-deploy-version-badges/plugins/ember-cli-deploy-notify-firebase.svg)](http://ember-cli-deploy.github.io/ember-cli-deploy-version-badges/)\n\nThis plugin updates a path in Firebase with the latest version information when the deploy is activated.\n\n## Why would I want to do that?\n\nThe main use-case is to display a notification to your users when a version changes so they can reload to get changes.\n\n## What is an ember-cli-deploy plugin?\n\nA plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.\n\nFor more information on what plugins are and how they work, please refer to the [Plugin Documentation][1].\n\n## Quick Start\nTo get up and running quickly, do the following:\n\n- Ensure [ember-cli-deploy-build][2] is installed and configured.\n\n- Install this plugin\n\n```bash\n$ ember install ember-cli-deploy-notify-firebase\n```\n\n- Place the following configuration into `config/deploy.js`\n\n```javascript\nENV.firebase {\n  app: '\u003cyour-firebase-app\u003e',\n  token: '\u003cyour-firebase-token\u003e'\n}\n```\n\n- Run the pipeline \u0026 activate a deploy\n\n```bash\n$ ember deploy --activate\n```\n\nor\n\n```bash\n$ ember deploy\n$ ember activate \u003cversion\u003e\n```\n\n## Installation\nRun the following command in your terminal:\n\n```bash\nember install ember-cli-deploy-notify-firebase\n```\n\n## ember-cli-deploy Hooks Implemented\n\nFor detailed information on what plugin hooks are and how they work, please refer to the [Plugin Documentation][1].\n\n- `didActivate`\n\n## Configuration Options\n\nFor detailed information on how configuration of plugins works, please refer to the [Plugin Documentation][1].\n\n### app\n\nThe Firebase app to notify, the subdomain in https://\u003capp\u003e.firebaseio.com\n\n*Default:* `null`\n\n### token\n\nA security token to authenticate with.\n\n*Default:* `null`\n\n### path\n\nThe path to update in Firebase.\n\n*Default:* `'/release'`\n\n### payload\n\nThe data to update in Firebase.\n\nBy default this will contain the revision key and a timestamp.\n\n*Default:*\n\n```json\n{\n  \"revision\": \"\u003crevisionKey\u003e\",\n  \"at\": \"\u003ctimestamp\u003e\"\n}\n```\n\n### How do I activate a revision?\n\nA user can activate a revision by either:\n\n- Passing a command line argument to the `deploy` command:\n\n```bash\n$ ember deploy --activate=true\n```\n\n- Running the `deploy:activate` command:\n\n```bash\n$ ember deploy:activate \u003crevision-key\u003e\n```\n\n- Setting the `activateOnDeploy` flag in `deploy.js`\n\n```javascript\nENV.pipeline {\n  activateOnDeploy: true\n}\n```\n\n## Prerequisites\n\nThe following properties are expected to be present on the deployment `context` object:\n\n- `revisionData.revisionKey`    (provided by [ember-cli-deploy-revision-data][4])\n- `commandLineArgs.revisionKey` (provided by [ember-cli-deploy][3])\n\n## Running Tests\n\n- `npm test`\n\n[1]: http://ember-cli.github.io/ember-cli-deploy/plugins \"Plugin Documentation\"\n[2]: https://github.com/ember-cli-deploy/ember-cli-deploy-build \"ember-cli-deploy-build\"\n[3]: https://github.com/ember-cli/ember-cli-deploy \"ember-cli-deploy\"\n[4]: https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data \"ember-cli-deploy-revision-data\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-cli-deploy-notify-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminutebase%2Fember-cli-deploy-notify-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminutebase%2Fember-cli-deploy-notify-firebase/lists"}