gulp-ng-config-provider

  • var gulp = require(‘gulp’); var config = require(‘gulp-ng-config’); var concat = require(‘gulp-concat’); gulp.task(‘js’, function (cb) { return gulp.src([‘app
  • Generates and adds a new ngConfig module with a ConfigProvider service to your AngularJS 1 Gulp build.
  • The plugin takes an array of configuration parameters to extract from an .env file (or process.env ) and generates a new module with those parameters.
  • Gulp Angular Config Provider
  • This lets you have environment specific configuration within an AngularJS 1 application, without having to commit in your sensitive configuration properties.

Generates a AngularJS 1 configuration provider based on process variables

@nodenpm: gulp-ng-config-provider (0.0.1): Generates a AngularJS 1 configuration provider based o…

Generates and adds a new ngConfig module with a ConfigProvider service to your AngularJS 1 Gulp build.

) and generates a new module with those parameters. This lets you have environment specific configuration within an AngularJS 1 application, without having to commit in your sensitive configuration properties.

var gulp = require(‘gulp’); var config = require(‘gulp-ng-config’); var concat = require(‘gulp-concat’); gulp.task(‘js’, function (cb) { return gulp.src([‘app/**/*.module.js’, ‘app/**/*.js’]) .pipe(config([‘MyVar’, ‘MyProp’])) .pipe(‘app.js’); });

Combine open-source packages with your private code and publish to a private registry behind the firewall. npm ♥ enterprise developers

gulp-ng-config-provider

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.