basecamp-guide
Version:
Task automator for the Basecamp Framework.
43 lines (35 loc) • 1.15 kB
JavaScript
// Dependecies
var p = require('path');
var fs = require('fs');
var Colors = require('colors');
var FileSys = require('../FileSystem.js');
var Exec = require('child_process').execSync;
/**
* Config & Settings for the basecamp-design package.
*
* Installs composer package.
*
*
*/
var ModulesInstallCommand = {
fire : function() {
// Helpers
var exportPaths = {
root : this.config.exportPaths.root,
vue : p.join(this.config.exportPaths.root, this.config.exportPaths.vue)
};
// Install patrikkernke/basecamp-modules package
console.log('Adding Basecamp-Modules Package ...'.bold);
var output = Exec('composer require patrikkernke/basecamp-modules:~v0.0.1').toString();
console.log(output.grey);
console.log('Update composer autoload...'.bold);
var output = Exec('composer dump-autoload').toString();
console.log(output.grey);
},
/*
* config-property will be injected from the
* CommandLineTool while adding the command
*/
config : {},
}
module.exports = ModulesInstallCommand;