15 lines
375 B
JavaScript
15 lines
375 B
JavaScript
module.exports = function (grunt) {
|
|
var { exec } = require('child_process');
|
|
var { resolve } = require('path');
|
|
|
|
grunt.registerTask('build:installNpmDeps', function () {
|
|
grunt.file.mkdir('build/kibana/node_modules');
|
|
|
|
exec('npm install --production --no-optional', {
|
|
cwd: grunt.config.process('<%= root %>/build/kibana')
|
|
}, this.async());
|
|
});
|
|
};
|
|
|
|
|