guzart / gulp-ng-constant

Gulp plugin for dynamic generation of angular constant modules.
MIT License
109 stars 26 forks source link

Allow constants to be defined in .yaml in addition to .json files #16

Closed derek-pavao closed 9 years ago

derek-pavao commented 9 years ago

I prefer to use YAML files for configuration over JSON files.

Instead of parsing the file.contents with JSON.parse, I changed it to use the js-yaml node module to do the parsing.

This will allow the file to be defined in YAML format or JSON format, since JSON is valid YAML.

Thoughts?

guzart commented 9 years ago

Excellent, I too like using YAML for configuration. Thank you.

derek-pavao commented 9 years ago

Awesome, thanks for accepting the PR.

vikasgarghb commented 9 years ago

I downloaded the latest version of this module from npm but I didn't find the yaml support in there. When will it be available.

guzart commented 9 years ago

Hi @vikasgarghb, you can use the development version in your project by specifying the repository instead of a version in the package.json, hope this link can help, https://docs.npmjs.com/files/package.json#git-urls-as-dependencies

I want to add other features, before releasing a new version.