From 9f80ccd8b2402796107b2cc6cd9966741b9f914a Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Wed, 8 Mar 2023 17:32:54 +0530 Subject: [PATCH] fix(tools): rename and update curriculum scripts (#49620) --- client/utils/build-challenges.js | 2 +- ...ges.acceptance.test.js => get-challenges.acceptance.test.js} | 2 +- curriculum/{getChallenges.js => get-challenges.js} | 0 curriculum/{getChallenges.test.js => get-challenges.test.js} | 2 +- curriculum/test/test-challenges.js | 2 +- tools/challenge-auditor/index.ts | 2 +- tools/scripts/build/build-curriculum.ts | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename curriculum/{getChallenges.acceptance.test.js => get-challenges.acceptance.test.js} (97%) rename curriculum/{getChallenges.js => get-challenges.js} (100%) rename curriculum/{getChallenges.test.js => get-challenges.test.js} (99%) diff --git a/client/utils/build-challenges.js b/client/utils/build-challenges.js index c6e0e4bac9c..fc091383c64 100644 --- a/client/utils/build-challenges.js +++ b/client/utils/build-challenges.js @@ -9,7 +9,7 @@ const { CHALLENGES_DIR, META_DIR, getChallengesDirForLang -} = require('../../curriculum/getChallenges'); +} = require('../../curriculum/get-challenges'); const { curriculumLocale } = envData; diff --git a/curriculum/getChallenges.acceptance.test.js b/curriculum/get-challenges.acceptance.test.js similarity index 97% rename from curriculum/getChallenges.acceptance.test.js rename to curriculum/get-challenges.acceptance.test.js index 5eb378a54c9..0b633863e2d 100644 --- a/curriculum/getChallenges.acceptance.test.js +++ b/curriculum/get-challenges.acceptance.test.js @@ -5,7 +5,7 @@ // const path = require('path'); // const { parseMarkdown } = require('../tools/challenge-parser'); -// const { parseTranslation } = require('./getChallenges'); +// const { parseTranslation } = require('./get-challenges'); // /* eslint-disable max-len */ // const { diff --git a/curriculum/getChallenges.js b/curriculum/get-challenges.js similarity index 100% rename from curriculum/getChallenges.js rename to curriculum/get-challenges.js diff --git a/curriculum/getChallenges.test.js b/curriculum/get-challenges.test.js similarity index 99% rename from curriculum/getChallenges.test.js rename to curriculum/get-challenges.test.js index d40ad6b317e..94db24b56f0 100644 --- a/curriculum/getChallenges.test.js +++ b/curriculum/get-challenges.test.js @@ -4,7 +4,7 @@ const { generateChallengeCreator, hasEnglishSource, createCommentMap -} = require('./getChallenges'); +} = require('./get-challenges'); const EXISTING_CHALLENGE_PATH = 'challenge.md'; const MISSING_CHALLENGE_PATH = 'no/challenge.md'; diff --git a/curriculum/test/test-challenges.js b/curriculum/test/test-challenges.js index 31526bb7394..5258e426cff 100644 --- a/curriculum/test/test-challenges.js +++ b/curriculum/test/test-challenges.js @@ -41,7 +41,7 @@ const testEvaluator = const { getLines } = require('../../utils/get-lines'); -const { getChallengesForLang, getMetaForBlock } = require('../getChallenges'); +const { getChallengesForLang, getMetaForBlock } = require('../get-challenges'); const { challengeSchemaValidator } = require('../schema/challengeSchema'); const { testedLang, getSuperOrder } = require('../utils'); const ChallengeTitles = require('./utils/challenge-titles'); diff --git a/tools/challenge-auditor/index.ts b/tools/challenge-auditor/index.ts index 72e6fb50630..27f37781904 100644 --- a/tools/challenge-auditor/index.ts +++ b/tools/challenge-auditor/index.ts @@ -8,7 +8,7 @@ const envPath = resolve(__dirname, '../../.env'); config({ path: envPath }); import { availableLangs } from '../../config/i18n'; -import { getChallengesForLang } from '../../curriculum/getChallenges'; +import { getChallengesForLang } from '../../curriculum/get-challenges'; import { SuperBlocks } from '../../config/certification-settings'; import { getAuditedSuperBlocks } from '../../config/superblock-order'; diff --git a/tools/scripts/build/build-curriculum.ts b/tools/scripts/build/build-curriculum.ts index 3424d2b3d7d..e6b28659a2b 100644 --- a/tools/scripts/build/build-curriculum.ts +++ b/tools/scripts/build/build-curriculum.ts @@ -1,7 +1,7 @@ import fs from 'fs'; import path from 'path'; -import { getChallengesForLang } from '../../../curriculum/getChallenges'; +import { getChallengesForLang } from '../../../curriculum/get-challenges'; import { buildExtCurriculumData, Curriculum