@iobroker/create-adapter
Version:
Command line utility to create customized ioBroker adapters
22 lines (20 loc) • 625 B
JavaScript
;
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 = `
#!/bin/bash
cd /workspace
echo "Installing all dependencies..."
npm install
npm run watch:parcel
`;
return template.trim().replace(/\r\n/g, "\n");
};
templateFunction.customPath = ".devcontainer/parcel/run.sh";
templateFunction.noReformat = true;
module.exports = templateFunction;
//# sourceMappingURL=run.sh.js.map