diff --git a/change_volumes_owner.sh b/change_volumes_owner.sh index dcaa6f1d7d..e8d2e056a2 100644 --- a/change_volumes_owner.sh +++ b/change_volumes_owner.sh @@ -5,5 +5,5 @@ chown node:staff api-server/node_modules chown node:staff client/node_modules chown node:staff client/plugins/fcc-create-nav-data/node_modules chown node:staff curriculum/node_modules -chown node:staff tools/challenge-md-parser/node_modules +chown node:staff tools/challenge-parser/node_modules chown node:staff tools/scripts/seed/node_modules diff --git a/curriculum/getChallenges.acceptance.test.js b/curriculum/getChallenges.acceptance.test.js index d9e3a15208..ba9dca7339 100644 --- a/curriculum/getChallenges.acceptance.test.js +++ b/curriculum/getChallenges.acceptance.test.js @@ -5,13 +5,13 @@ // const path = require('path'); -// const { parseMarkdown } = require('../tools/challenge-md-parser'); +// const { parseMarkdown } = require('../tools/challenge-parser'); // const { parseTranslation } = require('./getChallenges'); // /* eslint-disable max-len */ // const { // SIMPLE_TRANSLATION -// } = require('../tools/challenge-md-parser/translation-parser/__mocks__/mock-comments'); +// } = require('../tools/challenge-parser/translation-parser/__mocks__/mock-comments'); // /* eslint-enable max-len */ describe('translation parser', () => { diff --git a/curriculum/getChallenges.js b/curriculum/getChallenges.js index 0b6967c251..9e17716623 100644 --- a/curriculum/getChallenges.js +++ b/curriculum/getChallenges.js @@ -2,13 +2,13 @@ const path = require('path'); const { findIndex, reduce, toString } = require('lodash'); const readDirP = require('readdirp'); const yaml = require('js-yaml'); -const { parseMD } = require('../tools/challenge-md-parser/mdx'); +const { parseMD } = require('../tools/challenge-parser/mdx'); const fs = require('fs'); const util = require('util'); /* eslint-disable max-len */ const { translateCommentsInChallenge -} = require('../tools/challenge-md-parser/translation-parser/translation-parser'); +} = require('../tools/challenge-parser/translation-parser/translation-parser'); /* eslint-enable max-len*/ const { isAuditedCert } = require('../utils/is-audited'); diff --git a/lerna.json b/lerna.json index 14a6bfad01..0596a421b9 100644 --- a/lerna.json +++ b/lerna.json @@ -4,8 +4,8 @@ "client", "client/plugins/*", "curriculum", - "tools/challenge-md-parser", - "tools/challenge-md-parser/mdx", + "tools/challenge-parser", + "tools/challenge-parser/mdx", "tools/scripts/seed", "tools/scripts/build", "tools/formatter", diff --git a/tools/challenge-md-parser/package-lock.json b/tools/challenge-md-parser/package-lock.json index ade5e17d15..26e6e80cca 100644 --- a/tools/challenge-md-parser/package-lock.json +++ b/tools/challenge-md-parser/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@freecodecamp/challenge-md-parser", + "name": "@freecodecamp/challenge-parser", "version": "2.0.0", "lockfileVersion": 1, "requires": true, diff --git a/tools/challenge-md-parser/package.json b/tools/challenge-md-parser/package.json index b5242c1548..ffb013bbc9 100644 --- a/tools/challenge-md-parser/package.json +++ b/tools/challenge-md-parser/package.json @@ -1,5 +1,5 @@ { - "name": "@freecodecamp/challenge-md-parser", + "name": "@freecodecamp/challenge-parser", "version": "2.0.0", "description": "", "main": "index.js", diff --git a/tools/formatter/add-seed-and-solution/index.js b/tools/formatter/add-seed-and-solution/index.js index cbfdc34998..041fcb206a 100644 --- a/tools/formatter/add-seed-and-solution/index.js +++ b/tools/formatter/add-seed-and-solution/index.js @@ -3,7 +3,7 @@ const fs = require('fs'); const path = require('path'); const { getText } = require('./get-challenge-text'); const { challengeToString } = require('./create-challenge-string'); -const { parseMD } = require('../../challenge-md-parser/mdx'); +const { parseMD } = require('../../challenge-parser/mdx'); const challengeDir = '../../../curriculum/challenges/'; const enChalDir = path.resolve(__dirname, challengeDir, 'english'); diff --git a/tools/formatter/add-seed-and-solution/plugins/question-to-data.js b/tools/formatter/add-seed-and-solution/plugins/question-to-data.js index 1245995423..cd42a27d97 100644 --- a/tools/formatter/add-seed-and-solution/plugins/question-to-data.js +++ b/tools/formatter/add-seed-and-solution/plugins/question-to-data.js @@ -1,8 +1,8 @@ const { root } = require('mdast-builder'); -const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings'); +const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings'); const { splitOnThematicBreak -} = require('../../../challenge-md-parser/mdx/plugins/utils/split-on-thematic-break'); +} = require('../../../challenge-parser/mdx/plugins/utils/split-on-thematic-break'); const { stringifyMd } = require('./text-to-data'); diff --git a/tools/formatter/add-seed-and-solution/plugins/tests-to-data.js b/tools/formatter/add-seed-and-solution/plugins/tests-to-data.js index 9d2f89d09c..96f23e5873 100644 --- a/tools/formatter/add-seed-and-solution/plugins/tests-to-data.js +++ b/tools/formatter/add-seed-and-solution/plugins/tests-to-data.js @@ -1,5 +1,5 @@ const chunk = require('lodash/chunk'); -const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings'); +const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings'); const { stringifyMd } = require('./text-to-data'); function plugin() { diff --git a/tools/formatter/add-seed-and-solution/plugins/text-to-data.js b/tools/formatter/add-seed-and-solution/plugins/text-to-data.js index ba5ebf1ee9..7fc9a57fe8 100644 --- a/tools/formatter/add-seed-and-solution/plugins/text-to-data.js +++ b/tools/formatter/add-seed-and-solution/plugins/text-to-data.js @@ -1,7 +1,7 @@ const stringify = require('remark-stringify'); const { root } = require('mdast-builder'); const unified = require('unified'); -const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings'); +const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings'); const stringifyMd = nodes => unified() diff --git a/tools/scripts/ci/ensure-challenge-formatting.js b/tools/scripts/ci/ensure-challenge-formatting.js index 98246ff3ac..28ff726252 100644 --- a/tools/scripts/ci/ensure-challenge-formatting.js +++ b/tools/scripts/ci/ensure-challenge-formatting.js @@ -2,7 +2,7 @@ const readdirp = require('readdirp-walk'); const { has, isEmpty, isNumber } = require('lodash'); const ora = require('ora'); -const { parseMarkdown } = require('../../challenge-md-parser'); +const { parseMarkdown } = require('../../challenge-parser'); const { challengeRoot, checkFrontmatter } = require('./md-testing-utils'); const scrimbaUrlRE = /^https:\/\/scrimba\.com\//;