UNPKG

@iobroker/create-adapter

Version:

Command line utility to create customized ioBroker adapters

24 lines (21 loc) 1.36 kB
"use strict"; const templateFunction = answers => { const devcontainer = answers.tools && answers.tools.includes("devcontainer"); if (!devcontainer) { return; } const template = ` # Devcontainer readme This directory allows you to develop your adapter in a dedicated Docker container. To get started and for requirements, please read the getting started section at https://code.visualstudio.com/docs/remote/containers#_getting-started Once you're done with that, VSCode will prompt you to reopen the adapter directory in a container. This takes a while. Afterward, you can access the admin UI by the forwarded port **Ports** panel in VS Code. 1. Open the **Ports** panel in VS Code (look for the "Ports" tab in the bottom panel or use the Command Palette with \`Ctrl+Shift+P\` and search for "Ports: Focus on Ports View"). 2. Locate the forwarded port for the admin UI (usually dynamically assigned). 3. Click the link in the **Ports** panel to open the admin UI in your browser. By default, the admin UI is available at \`http://localhost:<forwarded-port>\`. To change the port, edit \`devcontainer.json\` to have a different \`forwardPorts\` configuration for \`nginx\`. `; return template.trim(); }; templateFunction.customPath = ".devcontainer/README.md"; module.exports = templateFunction; //# sourceMappingURL=README.md.js.map