{"id":13991972,"url":"https://github.com/jthegedus/firebase-functions-es6-example","last_synced_at":"2025-07-22T15:30:47.791Z","repository":{"id":83212184,"uuid":"89478137","full_name":"jthegedus/firebase-functions-es6-example","owner":"jthegedus","description":"Use ES6 to develop Cloud Functions for Firebase today!","archived":true,"fork":false,"pushed_at":"2018-02-04T05:37:02.000Z","size":67,"stargazers_count":20,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-29T12:38:00.611Z","etag":null,"topics":["cloud-function-for-firebase","cloud-functions","es6","firebase","firebase-functions","google-cloud-functions","serverless"],"latest_commit_sha":null,"homepage":"https://codeburst.io/es6-in-cloud-functions-for-firebase-959b35e31cb0","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jthegedus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-26T12:27:43.000Z","updated_at":"2023-01-28T21:10:11.000Z","dependencies_parsed_at":"2023-03-01T20:31:14.777Z","dependency_job_id":null,"html_url":"https://github.com/jthegedus/firebase-functions-es6-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jthegedus/firebase-functions-es6-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-es6-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-es6-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-es6-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-es6-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jthegedus","download_url":"https://codeload.github.com/jthegedus/firebase-functions-es6-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-es6-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266520570,"owners_count":23942287,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cloud-function-for-firebase","cloud-functions","es6","firebase","firebase-functions","google-cloud-functions","serverless"],"created_at":"2024-08-09T14:01:42.807Z","updated_at":"2025-07-22T15:30:47.456Z","avatar_url":"https://github.com/jthegedus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# [DEPRECATED] ES6+ in Cloud Functions for Firebase\n\nThis example is deprecated in favour of [ES6+ in Cloud Functions 2](https://medium.com/@jthegedus/es6-in-cloud-functions-for-firebase-2-415d15205468) and it's folder in my [blog-examples](https://github.com/jthegedus/blog-examples/tree/master/firebase-functions-es6-babel) repo.\n\n---\n\nUse ES6+ to develop Cloud Functions for Firebase today!\n\nHere is the accompanying [Medium post](https://medium.com/@jthegedus/es6-in-cloud-functions-for-firebase-959b35e31cb0).\n\n## TLDR;\n\nDevelop your Coud Functions in a different directory to the default `./functions` directory. I suggest `./functionsES6`. Then use `babel-cli`, `babel-preset-es2015` and `rimraf` with some npm scripts to transpile to ES2015 into the default `./functions` directory on deploy (`yarn deploy`).\n\nFiles of interest:\n\n* Root [package.json](https://github.com/jthegedus/firebase-functions-es6-example/blob/master/package.json)\n* Cloud Functions [package.json](https://github.com/jthegedus/firebase-functions-es6-example/blob/master/functionsES6/package.json)\n* Cloud Functions [index.js](https://github.com/jthegedus/firebase-functions-es6-example/blob/master/functionsES6/index.js)\n\n## Installation\n\n```\ngit clone https://github.com/jthegedus/firebase-functions-es6-example\ncd firebase-functions-es6-example\nyarn install\n```\n\n## Deploy to Firebase\n\n```\nyarn deploy\n```\n\nN.B.: You will need to connect the project to your Firebase project. Edit the name in [.firebaserc](https://github.com/jthegedus/firebase-functions-es6-example/blob/master/.firebaserc)\n\n## A note on Code Compatibility\n\nEverything was tested on Ubuntu 17.04. If you wish for Windows native support please [submit an issue](https://github.com/jthegedus/firebase-functions-es6-example/issues/new) so we can work on a Windows branch. Please report any macOS errors as I do not have access to a device to test. [My development environment can be found here](https://github.com/jthegedus/dotfiles).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthegedus%2Ffirebase-functions-es6-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjthegedus%2Ffirebase-functions-es6-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthegedus%2Ffirebase-functions-es6-example/lists"}