Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Stemming from #1989402: Chicken and egg: What is first, module or package?, it would be great to provide users who are not CLI-capable an application or service to automatically build the dependencies for them.
Comments
Comment #1
cpliakas CreditAttribution: cpliakas commentedI swear I saw a GitHub project that is geared towards this, just can't find it ATM.
Comment #2
cpliakas CreditAttribution: cpliakas commentedGrunt might also be an option that already exists.
http://blog.elenakolevska.com/using-grunt-with-laravel-and-bootstrap/
Comment #3
cpliakas CreditAttribution: cpliakas commentedGrunt actually seems like a decent option. It still requires some CLI work, however it can be configured to automatically listen to and update dependencies when Composer Manager writes a
composer.json
file. There is also a project https://github.com/willerce/spock which is a GUI for Grunt. Not sure if that will help break CLI dependency.The hardcoded Gruntfile I used is below, placed in the directory containing
composer.json
. We would likely have to create an extension module that adds some way to send configuration options to Grunt if we wanted to ship something Generic. If you are using the snippet below, you will have to download Composer and modify thecomposerLocation
accordingly.package.json
Gruntfile.js
Commands and tasks to get up and running:
npm install -g grunt-cli
cd /path/to/composer/dir
npm install grunt-contrib-watch --save-dev
npm install grunt-composer --save-dev
grunt
Now dependencies will be updated every time
composer.json
changes.Comment #4
cpliakas CreditAttribution: cpliakas commentedMaybe https://github.com/rogerwang/node-webkit can help with the above technique to make it more distributable.
Comment #5
markhalliwell