deepify
Version:
DEEP Development Tools
62 lines (50 loc) • 889 B
JavaScript
/**
* Created by AlexanderC on 12/1/15.
*/
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NpmRun = undefined;
var _Bin = require('./Bin');
var _NpmInstall = require('./NpmInstall');
class NpmRun extends _NpmInstall.NpmInstall {
/**
* @param {*} args
*/
constructor(...args) {
super(...args);
this._cmd = null;
}
/**
*
* @param {Array} args
* @returns {*}
* @private
*/
_newInstance(...args) {
let instance = super._newInstance(...args);
instance._cmd = this._cmd;
return instance;
}
/**
* @param {String} cmd
*/
set cmd(cmd) {
this._cmd = cmd;
}
/**
* @returns {String}
*/
get cmd() {
return this._cmd;
}
/**
* @returns {String}
* @private
*/
get _mainCmd() {
return `${_Bin.Bin.npm} run ${this._cmd}`;
}
}
exports.NpmRun = NpmRun;