drupal-bower

0.0.4 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i drupal-bower

Weekly Downloads

1

Version

0.0.4

License

ISC

Last publish

Collaborators

  • romainlepolh