0.0.4 • Published 7 years ago
drupal-bower v0.0.4
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)