# @talend/scripts-build-cdn

> Give a CLI to build a CDN for js and css with unpkg like structures

Latest version **11.2.0** (published 2024-06-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @talend/scripts-build-cdn
pnpm add @talend/scripts-build-cdn
yarn add @talend/scripts-build-cdn
bun add @talend/scripts-build-cdn
```

Provides the command `talend-cdn`.

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 11.2.0 |
| Published | 2024-06-13 |
| First published | 2020-09-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 22.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 159 |
| Author | Talend Frontend |
| Maintainers | talend-frontend |
| Keywords | talend |

## Links

- npm: https://www.npmjs.com/package/@talend/scripts-build-cdn
- Repository: github.com/Talend/ui
- npm.io page: https://npm.io/package/@talend/scripts-build-cdn

## Dependencies (14)

- [cpx2](https://npm.io/package/cpx2.md) ^3.0.2
- [execa](https://npm.io/package/execa.md) ^4.1.0
- [queue](https://npm.io/package/queue.md) ^6.0.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [rimraf](https://npm.io/package/rimraf.md) ^5.0.7
- [semver](https://npm.io/package/semver.md) ^7.6.2
- [webpack](https://npm.io/package/webpack.md) ^5.92.0
- [commander](https://npm.io/package/commander.md) ^6.2.1
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^4.10.0
- [@yarnpkg/lockfile](https://npm.io/package/@yarnpkg/lockfile.md) ^1.1.0
- [@talend/module-to-cdn](https://npm.io/package/@talend/module-to-cdn.md) ^9.11.0
- [webpack-bundle-analyzer](https://npm.io/package/webpack-bundle-analyzer.md) ^4.10.2
- [@talend/scripts-config-cdn](https://npm.io/package/@talend/scripts-config-cdn.md) ^10.12.0
- [@talend/babel-plugin-import-d3](https://npm.io/package/@talend/babel-plugin-import-d3.md) ^0.5.0

## Recent versions

- 11.2.0 (latest) — 2024-06-13
- 10.0.0-alpha.1 (next) — 2021-02-12
- 11.1.3 — 2024-03-12
- 11.1.2 — 2024-02-29
- 11.1.1 — 2024-02-02
- 11.1.0 — 2023-11-15
- 11.0.1 — 2023-04-05
- 11.0.0 — 2022-07-01
- 10.0.0 — 2022-03-10
- 9.7.6 — 2022-01-28
- 9.7.5 — 2021-09-10
- 9.7.4 — 2021-09-08
- 9.7.3 — 2021-09-06
- 9.7.2 — 2021-09-02
- 9.7.1 — 2021-04-20
- … 80 more at https://npm.io/package/@talend/scripts-build-cdn/versions

## README

# Build CDN scripts

Let's download UMD files from https://unpkg.com and/or build your own custom UMDs!


## Getting started

To use this CLI you just have to add `@talend/scripts-build-cdn` in your project.

Once installed this package add the command `talend-cdn` to the node_modules/.bin folder.

An example of usage is available at [github/Talend/cdn-content](https://github.com/Talend/cdn-content)


## Context

You should not let your app rely on unpkg which is provided for free. As a company, you want to master your toolchain and your produced content. This script has been created for this reason: **build your own CDN**.

Up to you to rely on whatever distribution network service like Netlify or CloudFlare or any other option.

# How to use

talend-cdn command accepts two subcommands:

* download
* build

Both have their options

```bash
$> talend-cdn download -d -e ';@angular;' --versions ../../../ui/versions/dependencies.json
```

| command | option  | default | description |
| -- | -- | -- | -- |
| download | -e --exclude | '' | exclude patterns from the global list |
| download | --versions | '' | path to a dependencies.json file containing the minimum version you want |
| download | -v --verbose | false | display more information in the output |

---
_Source: https://npm.io/package/@talend/scripts-build-cdn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
