firebase-bolt-compiler
Compiles Firebase Bolt files to TypeScript, Flow, & more
Last updated 3 years ago by wcandillon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install firebase-bolt-compiler 
SYNC missed versions from official npm registry.

Firebase Bolt Compiler

CircleCI npm

Compiles Firebase Bolt files to TypeScript, Flow, and more.

This package is a rewrite of firebase-bolt-transpiler in TypeScript. It uses the same AST types from the original firebase-bolt package providing more safety and flexibility to generate different code artifacts.

Installation

yarn install firebase-bolt-compiler

Usage

firebase-bolt-compiler < rules.bolt

Example

Using the following rules.bolt file as an input:

path /users/{uid} is Users {
  read() { true }
  write() { isCurrentUser(uid) }
}

type Users extends User[] {}

type User {
  firstName: String;
  lastName: String;
}

Will generate the TypeScript code below:

type Users = { [key: string]: User };

export interface User {
    firstName: string;
    lastName: string;
}

Current Tags

  • 1.2.9                                ...           latest (3 years ago)

15 Versions

  • 1.2.9                                ...           3 years ago
  • 1.2.8                                ...           3 years ago
  • 1.2.7                                ...           3 years ago
  • 1.2.6                                ...           3 years ago
  • 1.2.5                                ...           3 years ago
  • 1.2.4                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 0
Last Month 8
Dependencies (7)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |