Problem/Motivation
The bundled rrule.js library is currently committed as raw vendor files in lib/rrule.js/. There is no lockfile or documented update process, so it is hard to tell which upstream release the files came from or how maintainers should update them.
Composer is not a great fit for this because the dependency is JavaScript, not PHP. Keeping JavaScript dependencies managed with npm gives maintainers a clearer update path without changing how site builders install the module.
Proposed resolution
Add npm tooling for project maintainers:
- Add
package.jsonandpackage-lock.jsonwithrruleas a development dependency. - Copy the built
rrule.jsartifact intolib/rrule.js/duringnpm install. - Keep the built file committed so Composer and drupal.org installs continue to work without Node.
- Document the update workflow in
CONTRIBUTING.md. - Add
node_modules/to.gitignore.
The intent is that npm is only used by maintainers when updating the bundled library. End users installing the module should see no change.
Issue fork date_recur_interactive-3592907
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments