ilib-resbundler
v1.1.0
Published
convert JSON type of resources to JS files
Downloads
2
Readme
ilib-resbundler
resbundler is a command-line utility that generates js files from json type of resources
Installation
Use npm install ilib-resbundler
or yarn add ilib-resbundler
to install the scanner.
Then, make sure that node_modules/.bin is in your path.
If your app is packaged with npm or yarn and has a package.json, put the following in your "devDependencies" property:
"ilib-resbundler": "^1.0.0",
Usage
- Include all data in one
js
file.
Following command, Output fiile name would beilib-translation.js
resbundler.js --assembly=assembled --compilation=compiled --resDir=resources --outDir=result
or
resbundler.js -a assembled -c compiled -r resources --o result
- Generate
js
files per locale.
Following command, Output file would beko-KR.js, es-ES.js
resbundler.js --assembly=dynamic --compiled=compiled --resDir=resources --outDir=result --locales=ko-KR,es-ES
or
resbundler.js -a dynamic -c compiled -r resources -o result -l ko-KR,es-ES
Release Notes
1.1.0
Update option usage
1.0.1
Update to add excutable resbundler
file that would install into the PATH
1.0.0
Initial release