@byuweb/byu-web-component-build
Build toolchain for BYU Web Components
Last updated 6 months ago by arasmus8 .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @byuweb/byu-web-component-build 
SYNC missed versions from official npm registry.

web-component-build

NPM version

Build toolchain for BYU Web Components.

This tool will generate module bundles for a set of web component javascript files using rollup, resolving any imported modules.

Installation

npm install --save-dev byu-web-component-build

Usage

npx byu-web-component-build

Command-line Arguments

Argument Short Option Long Option Description
Config File Location -c path to config file --config-file path to config file The path to the config file. Defaults to project root directory/byu-web-component-build.config.js
Watch -w --watch Set this flag to watch for changes to the source files. Defaults to false.

Configuration

By default, all .js files in the components directory will be bundled and output to the dist directory with -bundle added to the file name. These defaults can be changed by including a file named byu-web-component-build.config.js in your project root.

If you provide a componentLocation in the config file, another script will be generated which will load the web component polyfills before loading your components.

Example configuration file

module.exports = {
    sourceDir: 'src/web-components',
    destDir: 'www/components',
    componentLocation: 'https://cdn.example.com/components/latest'
}

Configuration File Options

Name required default description
sourceDir N 'components' Directory with files to bundle
destDir N 'dist' Directory in which to output files

Current Tags

  • 2.1.3                                ...           latest (6 months ago)

10 Versions

  • 2.1.3                                ...           6 months ago
  • 2.1.2                                ...           6 months ago
  • 2.1.1                                ...           6 months ago
  • 2.1.0                                ...           8 months ago
  • 2.0.0                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |