diff --git a/lib/init/features/functions.js b/lib/init/features/functions.js index 83056ee9..6d520ca1 100644 --- a/lib/init/features/functions.js +++ b/lib/init/features/functions.js @@ -19,11 +19,12 @@ module.exports = function(setup, config) { setup.functions = {}; return config.askWriteProjectFile('functions/package.json', { name: 'functions', - description: 'Firebase Functions', + description: 'Cloud Functions for Firebase', dependencies: { 'firebase-admin': '^4.0.5', - 'firebase-functions': 'https://storage.googleapis.com/firebase-preview-drop/node/firebase-functions/firebase-functions-preview.latest.tar.gz' - } + 'firebase-functions': '^0.5' + }, + private: true }).then(function() { return config.askWriteProjectFile('functions/index.js', INDEX_TEMPLATE); }).then(function() { diff --git a/templates/init/functions/index.js b/templates/init/functions/index.js index bde2fae8..7d7dee27 100644 --- a/templates/init/functions/index.js +++ b/templates/init/functions/index.js @@ -1,8 +1,8 @@ var functions = require('firebase-functions'); // // Start writing Firebase Functions -// // https://firebase.google.com/preview/functions/write-firebase-functions -// +// // https://firebase.google.com/functions/write-firebase-functions +// // exports.helloWorld = functions.https.onRequest((request, response) => { // response.send("Hello from Firebase!"); // })