cdinto it, and call
firebase.jsonfile should look something like this:
firebase deployto deploy your new project.
firebase deployagain if necessary.
package.jsonfile, so let's initialize our project for Node.js as well and set up our deploy pipeline.
./functions/because you ran
firebase initand initialized the functions. The following steps will add new
npm-related files in your root directory (
./package.jsonand such). This is intended, because both folders will act as separate NPM packages.
npm -g install firebase tools. Now that we have a local
package.jsonfile, let's install it locally as well.
package.jsonscripts will run using the local version instead of the global version. This is super helpful if you copy your code to a machine that doesn't have Firebase Tools installed globally.
scriptsattribute and created scripts for each kind of deploy that we could use. We won't need to call
firebase deploydirectly anymore. Instead we'll call
npm run deployor
npm run deploy:hosting.
npm run deploy:hostingto test it out!
firestore.indexes.json. These files contain security rules and index specifications.
storage.rules, which you'll use to secure Firebase Storage.
/functionsfolder to make sure that all of the right NPM packages are installed and that
/functions/index.jsexports valid Cloud Functions.