sda
Version:
Software development assistant
97 lines • 2.54 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.template = {
aliases: {
ic: 'inlineCommand',
cwp: 'commandWithParams',
cwpp: 'commandWithParamsPlaceholder'
},
commands: {
inlineCommand: 'inline',
inlineArrayCommand: ['inline1', 'inline2'],
regularCommand: {
cmd: 'regular'
},
regularArrayCommand: {
cmd: ['regular1', 'regular2']
},
commandWithAbsoluteFolder: {
cmd: 'withFolder',
cwd: 'C:\\testX\\testY'
},
commandWithRelativeFolder: {
cmd: 'withFolder',
cwd: 'test1\\test2'
},
commandWithFilePath: {
filePath: 'someFilePath'
},
commandWithFilePathAndInterpreter: {
filePath: 'someFilePath',
interpreter: 'node'
},
powershellCommand: {
filePath: 'someFilePath',
interpreter: 'powershell'
},
commandWithParams: {
cmd: 'withParams',
validParams: ['-param']
},
commandWithParamsPlaceholder: {
cmd: 'withParams %PARAM% && anotherCommand',
validParams: ['/p']
}
},
id: 'testTemplate'
};
exports.env = {
id: 'testEnv',
path: 'C:\\folderA\\folderB',
template: exports.template,
templateId: 'testTemplate',
};
exports.config = {
templates: {
testTemplate: exports.template
},
environments: {
testEnv: {
path: 'C:\\folderA\\folderB',
templateId: 'testTemplate'
}
}
};
exports.configWithDefault = {
templates: {
testTemplate: exports.template,
default: {
aliases: {
dc: 'defaultCommand',
ic: 'TEMPLATE_SHOULD_OVERRIDE'
},
commands: {
defaultCommand: 'default',
inlineCommand: 'TEMPLATE_SHOULD_OVERRIDE'
}
}
},
environments: {
testEnv: {
path: 'C:\\folderA\\folderB',
templateId: 'testTemplate'
}
}
};
exports.badConfig = {
templates: {
testTemplate: exports.template
},
environments: {
badEnv: {
path: 'C:\\folderA\\folderB',
templateId: 'badTemplate'
}
}
};
//# sourceMappingURL=Constants.js.map