UNPKG

@softwareventures/maintain-project

Version:

Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited

8 lines 560 B
import { insert } from "../fs-stage/fs-stage.js"; import { projectTemplateId } from "../template/project-template-id.js"; import { copyFromTemplate } from "../template/copy.js"; export function writeIdeaModuleIml(project) { const imlFilename = project.target === "webapp" ? "template-webpack-project.iml" : "template-node-project.iml"; return async (fsStage) => copyFromTemplate(projectTemplateId(project), ".idea", imlFilename).then(file => insert(fsStage, `.idea/${project.npmPackage.name}.iml`, file)); } //# sourceMappingURL=write-module-iml.js.map