1.1.4 • Published 10 years ago
web-component-shards v1.1.4
web-component-shards
Builds a multi-page app with shared dependencies.
Definitions
Endpoint
An HTML file containing the complete dependencies and implementation for one or more pages of a web application. An example E-Commerce app could have three endpoints, shop.html, orders.html, and cart.html. Each of these files must be stored in the same directory structure, with some shared dependencies(at least polymer.html).
Usage
wcs <options>
-h,--helpPrint usage.-b,--bowerdir stringBower components directory. Defaults to 'bower_components'-r,--root stringRoot directory against which URLs in inputs are resolved. If not specified, then the current working directory is used.-e,--endpoints string[]Application endpoints to vulcanize.-i,--shared_import stringName of the programatically created common dependency file. Defaults to 'shared.html'-s,--sharing_threshold numberNumber of endpoints an import must be found in to be added to 'shared_import'. For example, 2 will include all imports found in at least 2 endpoints, and 1 will include all dependencies of any endpoint. Defaults to 2.-d,--dest_dir stringDestination for vulcanized application. Defaults to 'dist/'.-w,--workdir stringTemporary directory for holding in-process files. DANGER: this directory will be deleted upon tool success. Defaults to 'tmp/'