2021-07-07 00:22:12 +00:00
|
|
|
const { getProjectPath } = require('./helpers/get-project-path');
|
2020-08-28 01:57:51 +00:00
|
|
|
const {
|
2021-07-07 00:22:12 +00:00
|
|
|
getLastStepFileContent
|
|
|
|
} = require('./helpers/get-last-step-file-content');
|
|
|
|
const { reorderSteps, createStepFile } = require('./utils');
|
2020-08-25 09:35:46 +00:00
|
|
|
|
2020-08-28 01:57:51 +00:00
|
|
|
const projectPath = getProjectPath();
|
2021-03-31 15:19:46 +00:00
|
|
|
const { nextStepNum, challengeSeeds } = getLastStepFileContent();
|
2020-08-25 09:35:46 +00:00
|
|
|
|
2021-03-31 15:19:46 +00:00
|
|
|
createStepFile({ stepNum: nextStepNum, projectPath, challengeSeeds });
|
2020-08-25 09:35:46 +00:00
|
|
|
console.log(`Sucessfully added step #${nextStepNum}`);
|
|
|
|
reorderSteps();
|