atticoos / gulp-ng-config

:wrench: Create AngularJS constants from a JSON config file
MIT License
173 stars 35 forks source link

Not always CONSTANTS. #37

Closed laranicolas closed 8 years ago

laranicolas commented 9 years ago

Option to generate angular config file with values instead constants.

angular.module('myApp.config', []) .value('string', "my string");

atticoos commented 9 years ago

Cool, I'm thinking about adding an option type that can either be value or constant, and default to constant, :+1: ?

laranicolas commented 9 years ago

Awesome! Because I need to modify config values and how they are constants, I can't!

Thanks!

atticoos commented 8 years ago

Added in #46!

You can now use

gulpNgConfig('name', {
  type: 'value'
})

This will be available in the 1.3 release :+1:

laranicolas commented 8 years ago

Awesome! Thanks @ajwhite