1.0.11 • Published 4 years ago

@oxygenxml/js-license-aggregator v1.0.11

Weekly downloads
182
License
-
Repository
-
Last release
4 years ago

JS License Aggregator

Generates an XML file describing thrid-party components of the NPM dependencies.

Install

yarn add --dev @oxygenxml/js-license-aggregator

Usage

You can use it as an async function in a Gulp build.

let {genThirdPartyComponentsXml} = require('@oxygenxml/js-license-aggregator')

await genThirdPartyComponentsXml({
  path: '.'
})

// or you can use it with browserify if the bundle is generated with full paths

await genThirdPartyComponentsXml({
  browserifyBundles: ['build/app.js', 'build/polyfills.js']
})

Or just add it as a postinstall script in the `package.json file:

"scripts": {
  "postinstall": "aggregate-licenses"
}

How it works

The plugin generates a third-party-components.xml file by following these steps: 1. Determine the components used in the package.json 2. For each component, copy the definition in the existing thrid-party-components.xml if one exists 3. For each new component, creates a draft definition (marked with the 'draft' attribute)

You should manually check the draft definitions and remove the draft attribute once you filled in the details.

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago