@ecedi/drupal-js-cli
v0.0.3
Published
A CLI for install dependencies of drupal or just npm lib
Downloads
24
Readme
Drupal JS Librairies CLI
This CLI is for use npm for all package js in drupal 8/9, you don't need to use composer
Installation
In project
npm install @ecedi/drupal-js-cli
Global (recommended)
npm install -g @ecedi/drupal-js-cli
Commands line
djl init
: Initialization of libraires from config-drupal-librariesdjl install <package_name>
: Install package npm and move it to librairies folder (if you need)--dl
: option Boolean for enabled installation in drupal librairies--dlf
: option String for give folder name in drupal librairies (is required if you use --dl)
djl remove <package_name>
: remove package from npm and librairies folder (if you need)--dl
: option Boolean for enabled remove the library from drupal librairies
Developers
You need to copy config-drupal-libraries.example.json
to config-drupal-libraries.json
with empty object