gulp-blaze
v0.1.2
Published
Blaze compiler simplifies building security rules for Firebase.
Downloads
5
Maintainers
Readme
gulp-blaze
Gulp wrapper for firebase's blaze compiler
Usage
npm install --save gulp-blaze
var gulp = require('gulp'),
blaze = require('gulp-blaze');
gulp.task('compile:rules', function () {
gulp.src('path/to/rules.yaml')
.pipe(blaze({
debug: true
}))
.pipe(gulp.dest('compiled/rules.json'));
});
Development
Notes:
- The source code is written in EcmaScript 6 and resides in
src/
directory. - Run
npm run compile
after installing dependencies to compile build. - Run
npm test
to run tests. - Install
pre-commit-hook
by runningln -s ../../pre-commit-hook .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
to automate builds.