# distjs **Repository Path**: mirrors_mikeal/distjs ## Basic Information - **Project Name**: distjs - **Description**: Distribute standalone WebComponents w/ npm. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # distjs Distribute standalone WebComponents w/ npm

Usage: ``` > npm install distjs > distjs install ``` Or, you can manually enable in your package.json. ``` { ... "scripts": { "prepublishOnly": "distjs", ... } } ``` Before each npm publish `distjs` will build standealone scripts in a `dist/` directory. These scripts dynamically load a WebComponents polyfill before requiring your package. The dist files will be named `${pkgname}.js` and `${pkgname}.min.js`. This means that people can use your new elements with a simple script include from one of the many npm content CDN's. Example: ```html ```