Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Last active October 9, 2017 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthegedus/b83fde88382da9964f86589992f74ab7 to your computer and use it in GitHub Desktop.
Save jthegedus/b83fde88382da9964f86589992f74ab7 to your computer and use it in GitHub Desktop.
Cloud Functions for Firebase - ES6 pkg json
{
"name": "firebase-functions-es6-example",
"version": "1.0.0",
"description": "Use ES6 to develop Cloud Functions for Firebase today!",
"repository": "https://github.com/jthegedus/firebase-functions-es6-example.git",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"rimraf": "^2.6.2",
},
"scripts": {
"deploy": "yarn run package-functions && firebase deploy",
"prepackage-functions": "rimraf functions",
"package-functions":
"babel 'functionsES6' --out-dir 'functions' --presets=es2015 --copy-files --ignore 'node_modules'",
"postpackage-functions": "cd functions && yarn",
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment