@tririga/tri-bundler
v1.2.2
Published
A tool for bundling Polymer 3 TRIRIGA UX views.
Downloads
72
Readme
tri-bundler
A tool for bundling a Polymer 3 TRIRIGA UX view into a single output component file.
Installation
$ npm install @tririga/tri-bundler -gSynopsis
$ tri-bundler Options
-u, --user userThe user name of your TRIRIGA user. Required.-p, --password passwordThe password for your TRIRIGA user. Required.--url urlThe URL of the TRIRIGA server. It must include the context path. Required.--basicuser userThe user name for basic authentication.--basicpassword passwordThe user password for basic authentication.-v, --view view_nameThe name of the view to be bundled. Required.--component fileThe root component filename of the view you want to bundle. Required.--output fileThe output component filename that will be generated after bundling. Required.--compile-es5Compile the bundled file to Javascript ES5. Optional.--unique-svg-idsAssign unique IDs to all TRIRIGA SVG icon elements in the bundled file. Optional.--versionPrint tri-bundler version.-q, --quietDo not print any non-error message to the console.-h, --helpPrint this help information.
Usage
Bundle the Polymer 3 my-ux-view
$ tri-bundler -u myUserName -p myPassword --url http://someHostName:9080/someContext -v my-ux-view --component my-ux-view-dev.js --output my-ux-view.jsBundle the Polymer 3 my-ux-view with a relative directory path
$ tri-bundler -u myUserName -p myPassword --url http://someHostName:9080/someContext -v my-ux-view --component my-ux-view-dev.js --output output/my-ux-view.jsBundle the Polymer 3 my-ux-view with unique-svg-ids flag
$ tri-bundler -u myUserName -p myPassword --url http://someHostName:9080/someContext -v my-ux-view --component my-ux-view-dev.js --output my-ux-view.js --unique-svg-ids
[!WARNING]
If you are using the--unique-svg-idsoption, ensure that you specify the TRIRIGA icon set prefix (for example,<triplat-icon icon="ibm:attachment">instead of<triplat-icon icon="attachment">). Omitting the prefix will cause the build process to fail to resolve and update icons correctly.
