2022-01-25 11:34:16 +01:00
|
|
|
import { getLastStepFileContent } from './helpers/get-last-step-file-content';
|
|
|
|
import { getProjectPath } from './helpers/get-project-path';
|
|
|
|
import { reorderSteps, createStepFile } from './utils';
|
2020-08-25 02:35:46 -07:00
|
|
|
|
2020-08-27 18:57:51 -07:00
|
|
|
const projectPath = getProjectPath();
|
2021-03-31 09:19:46 -06:00
|
|
|
const { nextStepNum, challengeSeeds } = getLastStepFileContent();
|
2020-08-25 02:35:46 -07:00
|
|
|
|
2021-03-31 09:19:46 -06:00
|
|
|
createStepFile({ stepNum: nextStepNum, projectPath, challengeSeeds });
|
2020-08-25 02:35:46 -07:00
|
|
|
console.log(`Sucessfully added step #${nextStepNum}`);
|
|
|
|
reorderSteps();
|