mirror of
https://github.com/pure-css/pure.git
synced 2024-12-10 23:44:26 +00:00
22 lines
673 B
JavaScript
22 lines
673 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function (grunt) {
|
||
|
grunt.registerTask('bower_install', 'Installs Bower dependencies.', function () {
|
||
|
var bower = require('bower'),
|
||
|
done = this.async();
|
||
|
|
||
|
bower.commands.install()
|
||
|
.on('log', function (data) {
|
||
|
if (data.id !== 'install') { return; }
|
||
|
grunt.log.writeln('bower ' + data.id.cyan + ' ' + data.message);
|
||
|
})
|
||
|
.on('end', function (results) {
|
||
|
if (!Object.keys(results).length) {
|
||
|
grunt.log.writeln('No bower packages to install.');
|
||
|
}
|
||
|
|
||
|
done();
|
||
|
});
|
||
|
});
|
||
|
};
|