@deltasource/gulp-loopback-sdk-angular-ds
v1.0.1
Published
Delta Source gulp plugin for auto-generating Angular $resource services for LoopBack
Downloads
5
Readme
gulp-loopback-sdk-angular
gulp plugin for auto-generating Angular $resource services for LoopBack. This is a port of the Grunt plugin here
Install
$ npm install --save-dev gulp-loopback-sdk-angular
Usage
var gulp = require('gulp');
var rename = require('gulp-rename');
var loopbackAngular = require('gulp-loopback-sdk-angular');
gulp.task('default', function () {
return gulp.src('./server/app.js')
.pipe(loopbackAngular())
.pipe(rename('lb-services.js'))
.pipe(gulp.dest('./client/js'));
});
API
loopbackAngular(options)
options
options.ngModuleName
Type: String
Default: lbServices
Name for the generated AngularJS module.
options.apiUrl
Type: String
Default: The value configured in the LoopBack application via app.set('restApiRoot') or /api
Everything Else
http://docs.strongloop.com/display/LB/AngularJS+JavaScript+SDK
License
MIT © Zi Ming Lin