UNPKG

@iobroker/create-adapter

Version:

Command line utility to create customized ioBroker adapters

23 lines (19 loc) 598 B
"use strict"; const templateFunction = answers => { const devcontainer = answers.tools && answers.tools.includes("devcontainer"); const needsParcel = answers.adminUi === "react" || answers.tabReact === "yes"; if (!devcontainer || !needsParcel) { return; } const template = ` FROM node:12 RUN mkdir -p /usr/app COPY *.sh /usr/app/ RUN chmod +x /usr/app/*.sh CMD /bin/bash -c "/usr/app/run.sh" `; return template.trim(); }; templateFunction.customPath = ".devcontainer/parcel/Dockerfile"; module.exports = templateFunction; //# sourceMappingURL=_Dockerfile.js.map