Official support for npm

Created on 14 February 2021, almost 4 years ago
Updated 20 August 2023, over 1 year ago

Problem/Motivation

More and more modules have npm dependencies. Installing such dependencies require manual changes (in composer.json) or using unsupported solutions (like asset-packagist).
These solutions are wrong for various reasons
- hard to define
- hard to install
- hard to update
- and might be insecure

Steps to reproduce

asset-packagist:
Many distributions use asset-packagist: Lightning , Varbase
Steps to configure asset-packagist
Problems:
- asset-packagist seems unmaintained
- npm packages should not be managed with composer #3198245: Composer script: enable-asset-packagist

example solutions requiring manual changes:
project dependency visualizer complicated install, currently using unmaintained library
project chosen complicated install, currently using unofficial, deprecated library
copy-files-from-to manually defined assets, no relation to Drupal projects
Problems:
- need to inform and educate the user about the installation
- the configuration is not user friendly, and can lead to issues
- manual changes required to update the package, which might result using insecure release

Proposed resolution

Develop an official npm package management solution for Drupal, which is as good and easy to use as composer.

Remaining tasks

Discuss the solution, create child issues.

---

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Closed: duplicate

Version

11.0 🔥

Component
Javascript 

Last updated 3 days ago

Created by

🇭🇺Hungary pasqualle 🇭🇺 Budapest

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024