gulp-resx-convert
A .resx file converter for gulp. Supports multiple output formats, including JSON, Typescript and C# constants class
Installation
Add this module as a development dependency:
npm install --save-dev gulp-resx-convert
Usage
This gulp plugin supports converting .resx files to multiple file types.
var resxConverter = ; gulp;
Types from Resx
To specify the type to use in output instead of a string, use the Comment property in the .resx file to describe the type as in the followin example:
"csharp":"int" "typescript":"number" "raw":true
Setting the raw value to true means that the converter will output the value directly during assignment, without wrapping it in quotes. This should be used when the value is a number, boolean etc.
Notes
This plugin does not handle scenarios where file names contain spaces or invalid characters. Please use gulp-rename before converting the files.
Documentation
Additional documentation may be found in the Project Wiki