Git Product home page Git Product logo

test-firebase-tools's Introduction

Alright - so the new extension emulator code lives on a separate branch: https://github.com/firebase/firebase-tools/tree/launch.extensions-emulator To get that branch running on your machine: If you haven't done so before, git clone https://github.com/firebase/firebase-tools.git Then, go into that directory, and run git checkout launch.extensions-emulator Then, npm i and finally npm link At this point, when you run a firebase command, you'll be using the code from that branch Now, you need to go to a firebase project directory, and add some extensions To do that, go to firebase.json, and add an extensions section, like so:

Kirill Cherkashin, 12:16 PM I did the linking, mostly need help with getting extensions in

Joe Hanley, 12:17 PM "extensions": { "translate": "firebase/firestore-translate-text", "httptest": "joehanley/[email protected]", }

Joe Hanley, 12:18 PM, Edited Then, you need to create {instanceId}.env files to configure each extension, and place them in the 'extensions' directory of your firebase project directory So, for example: extensions/translate.env:LOCATION=us-west1 LANGUAGES=en,es,de,fr COLLECTION_PATH=translations INPUT_FIELD_NAME=input OUTPUT_FIELD_NAME=translated and extensions/httptest.env:LOCATION=us-west1 GREETING=hey what's up

Joe Hanley, 12:21 PM, Edited At the end, you should have a directory structure that looks like:- firebase.json

  • extensions/ ---- translate.env ---- httptest.env Then you can just run the usual emulators commands, and it will download + spin up your extensions BTW - make sure you pull the latest changes from the launch.extensions-emulator branch - I merged in some changes from master yesterday evening, and broke things, and I just fixed them this morning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.