🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@databutton/firebase-types

Package Overview
Dependencies
Maintainers
2
Versions
1310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@databutton/firebase-types

This repo contains firestore types, functions and rules for Databutton.

1.12.1
Source
npm
Version published
Weekly downloads
1.4K
4.94%
Maintainers
2
Weekly downloads
 
Created
Source

Databutton Firebase

This repo contains firestore types, functions and rules for Databutton.

Contributing

This repo runs TypeScript and is a pure ESM project. This basically means that you have to write import x from 'x'; and you can no longer write const x = require('x');

In addition, all imports needs to be relative paths and include file-ending (.js). This is also the case when importing TypeScript files because the imports are used after the TypeScript has been transpiled into JavaScript.

For more info, check out this guide on writing pure ESM packages

Developing

yarn install

Running tests

yarn test:rules

Linting

yarn lint

Running locally

Note: You need Google Credentials

yarn shell

Execute firebase scripts (for migration etch.)

Set up GOOGLE_APPLICATION_CREDENTIALS from the following guide: https://firebase.google.com/docs/admin/setup#initialize-sdk and add the environment variable to the file <PROJECT_ROOT>/.env

Modify the src/run.ts-file to do what you want.

Execute the script running this command

yarn execute

FAQs

Package last updated on 17 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts