#958867 add an option to add-node-component to embed build only modules in debian/build_modules #958867
- Package:
- pkg-js-tools
- Source:
- pkg-js-tools
- Submitter:
- Pirate Praveen
- Date:
- 2020-12-17 18:09:03 UTC
- Severity:
- wishlist
It'd be a nice addition to automate this.
Le 26/04/2020 à 07:20, Pirate Praveen a écrit : Hi, could you describe more? Download and install in debian/build_modules ? From npm registry ? form source ?
Same logic as adding components, try source first and fallback to npmregistry if that fails. Give options to force npmregistry. Currently it is, 1. Check version in package.json/package-lock.json/yarn.lock 2a. Go to npmjs.com -> github/source -> tags page -> download tar.gz OR 2b. npm view foo@x.y.z dist.tarball -> wget 3. Extract tar -> copy to debian/build_modules 4. Update debian/copyright
Design proposition: $ add-node-component --test foo $ add-node-component --build bar will download compatible versions and push then in debian dir: -> debian/build_modules/bar -> debian/tests/test_module/foo