drupal-bower
v0.0.4
Published
Node module to automatically manage Drupal 8 libraries after a Bower install/uninstall command.
Downloads
11
Readme
About
This module only add libraries to the Drupal theme file (*.libraries.yml) after a bower installation
Install
Install with npm
$ npm install drupal-bower --save
Install it globally
$ npm install -g drupal-bower
How to use
Update your .bowerrc file with those lines:
- If you installed it inside your project:
"scripts": {
"postinstall": "node ./node_modules/drupal-bower/bin/drupal-bower.js install %",
"preuninstall": "node ./node_modules/drupal-bower/bin/drupal-bower.js uninstall %"
}
- If you installed it globally
"scripts": {
"postinstall": "DrupalBower install %",
"preuninstall": "DrupalBower uninstall %"
}
Todos
- Manage dependencies
- Refacto (First node module, a little bit messy)