2020-08-27 18:57:51 -07:00
|
|
|
const {
|
2021-07-06 19:22:12 -05:00
|
|
|
getLastStepFileContent
|
|
|
|
} = require('./helpers/get-last-step-file-content');
|
2021-08-02 15:39:40 +02:00
|
|
|
const { getProjectPath } = require('./helpers/get-project-path');
|
2021-07-06 19:22:12 -05:00
|
|
|
const { reorderSteps, createStepFile } = require('./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();
|