UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

45 lines 1.83 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils"); const AbstractFeature_1 = __importDefault(require("../AbstractFeature")); class VsCodeFeature extends AbstractFeature_1.default { nameReadable = 'VSCode'; description = 'Create settings and install VSCode extensions'; code = 'vscode'; actionsDir = spruce_skill_utils_1.diskUtil.resolvePath(__dirname, 'actions'); fileDescriptions = [ { path: '.vscode/launch.json', description: 'Sets you up for debugging in Visual Studio Code.', shouldOverwriteWhenChanged: true, confirmPromptOnFirstWrite: 'Want me to setup debugging for you?', }, { path: '.vscode/settings.json', description: 'Ties everything together for optimal team productivity.', shouldOverwriteWhenChanged: true, confirmPromptOnFirstWrite: 'Want me to setup vscode settings for building, testing and linting on save?', }, { path: '.vscode/tasks.json', description: 'command+shift+t to open the Test Reporter, build watch on load, etc.', shouldOverwriteWhenChanged: true, confirmPromptOnFirstWrite: 'Want me to start watchers when you start vscode?', }, ]; isInstalled = async () => { const command = this.Service('command'); try { await command.execute('which code'); } catch (err) { return false; } return true; }; } exports.default = VsCodeFeature; //# sourceMappingURL=VsCodeFeature.js.map