ilib-resbundler

1.1.0 • Public • Published

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

  1. Include all data in one js file.
    Following command, Output fiile name would be ilib-translation.js
resbundler.js --assembly=assembled --compilation=compiled --resDir=resources --outDir=result

or

resbundler.js -a assembled -c compiled -r resources --o result
  1. Generate js files per locale.
    Following command, Output file would be ko-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

/ilib-resbundler/

    Package Sidebar

    Install

    npm i ilib-resbundler

    Weekly Downloads

    1

    Version

    1.1.0

    License

    Apache-2.0

    Unpacked Size

    19.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • goun