({
stepNum,
challengeType,
challengeId,
projectPath = getProjectPath(),
challengeSeeds = [],
isFirstChallenge = false,
challengeLang
}: Options)
| 50 | } |
| 51 | |
| 52 | const createStepFile = ({ |
| 53 | stepNum, |
| 54 | challengeType, |
| 55 | challengeId, |
| 56 | projectPath = getProjectPath(), |
| 57 | challengeSeeds = [], |
| 58 | isFirstChallenge = false, |
| 59 | challengeLang |
| 60 | }: Options) => { |
| 61 | const template = getStepTemplate({ |
| 62 | challengeId, |
| 63 | challengeSeeds, |
| 64 | stepNum, |
| 65 | challengeType, |
| 66 | isFirstChallenge, |
| 67 | challengeLang |
| 68 | }); |
| 69 | |
| 70 | fs.writeFileSync(`${projectPath}${challengeId.toString()}.md`, template); |
| 71 | }; |
| 72 | |
| 73 | const createChallengeFile = ( |
| 74 | filename: string, |
no test coverage detected