Commit Graph

10 Commits

Author SHA1 Message Date
Davide Cavalca
53057fc311 nodejs-packaging-bundler: recursively bundle modules for all packages found 2022-10-18 19:54:26 -07:00
Davide Cavalca
1e45404676 nodejs-packaging-bundler: optionally use a local tarball instead of npm 2022-07-02 09:08:17 -07:00
josef radinger
b1c10eec41 fix typos 2022-01-02 19:51:00 +00:00
Benjamin A. Beasley
fb332bd0ea In nodejs-packaging-bundler, use %{_sourcedir} for output
Fixes RHBZ#1974709
2021-06-22 07:52:40 -04:00
Benjamin A. Beasley
5385bed950 Actually use the value of OUTPUT_DIR when copying bundled sources in nodejs-packaging-bundler 2021-06-22 07:50:42 -04:00
Stephen Gallagher
e7b09b6fec bundler: Add warning for deps missing license tag
Resolves: rhbz#1920223

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2021-06-02 18:17:12 +00:00
Stephen Gallagher
7aed687bf8 bundler: Handle deprecated license metadata
Adds support for archaic forms of the license metadata in
package.json where the license field is an object rather than a
string.

Also removes the need to post-process the 'null' entries.

Resolves: rhbz#1920206

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2021-06-02 18:17:12 +00:00
Michel Alexandre Salim
7d1699cedc
nodejs-packaging-bundler: sanitize package name
The NPM package name might contain invalid characters, e.g.
`@bitwarden/cli`.

Normalize the generated bundles by converting `/` to `-`.

```
specs/nodejs on  master
❯ ~/src/fedora/pkgs-others/nodejs-packaging/nodejs-packaging-bundler @bitwarden/cli
...
    Successful dev dependences download
'@bitwarden-cli-1.13.3-bundled-licenses.txt' -> '/home/michel/rpmbuild/SOURCES/@bitwarden-cli-1.13.3-bundled-licenses.txt'
'@bitwarden-cli-1.13.3-nm-dev.tgz' -> '/home/michel/rpmbuild/SOURCES/@bitwarden-cli-1.13.3-nm-dev.tgz'
'@bitwarden-cli-1.13.3-nm-prod.tgz' -> '/home/michel/rpmbuild/SOURCES/@bitwarden-cli-1.13.3-nm-prod.tgz'
```

Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
2021-01-18 09:39:00 -08:00
Troy Dawson
05a9e58997 Fix null when there is no .licenses found.
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2021-01-11 13:54:15 -08:00
Troy Dawson
5b7b3fce5d Add nodejs-packaging-bundler file
Add nodejs-packaging-bundler subpackage in spec file
Update README.md with comments about nodejs-packaging-bundler
  and an example spec file that uses bundling

Signed-off-by: Troy Dawson <tdawson@redhat.com>
2021-01-08 09:39:42 -08:00