Hi Jean-Marie and Richard,

I must improve the npm support for our use cases but need some fundamental decisions to proceed. I need to build express and angular applications from git repositories.

I have the following changes in my pipeline until now:
- Support npm packages with missing execute mode for directories
- Reduce command calls in npm run
- Add support for local tarball and local link sources
- Rework crunch license to recognize more variants
- Move known license checksums to CSV file
- Pass README as fallback to guess license if a license is missing
- Add support to pass build arguments to npm install
- Add support to run build scripts with native packages
- Parallelize the populate of the npm cache

The build (install) of npm packages leads to problems because of old versions in the dependency tree. For example, older versions of packages are incompatible with the Node.js version and older versions of node-gyp require Python 2.

I see three solutions to integrate npm packages:
- Build npm packages from the npm project outside of OE and only fetch the data. - Fork the npm project repository and fix everything inside the fork. Use the fork direct or create patches from the fork to build inside OE. - Create recipes per project and incompatible version to fix everything in OE and reduce redundancy.

The last solution keeps everything in OE and benefit from the existing OE functions like download proxy as well as license, CVE and version check. But it increases the initial costs and makes only sense if there is an interest in an meta-nodejs layer.

Regards
  Stefan

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#156640): 
https://lists.openembedded.org/g/openembedded-core/message/156640
Mute This Topic: https://lists.openembedded.org/mt/86089523/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to