Skip to content

Commit e3511f2

Browse files
ojeytonwilliamsraisedadead
authored andcommitted
chore: rename challenge-md-parser
1 parent f4efb13 commit e3511f2

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

change_volumes_owner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ chown node:staff api-server/node_modules
55
chown node:staff client/node_modules
66
chown node:staff client/plugins/fcc-create-nav-data/node_modules
77
chown node:staff curriculum/node_modules
8-
chown node:staff tools/challenge-md-parser/node_modules
8+
chown node:staff tools/challenge-parser/node_modules
99
chown node:staff tools/scripts/seed/node_modules

curriculum/getChallenges.acceptance.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
// const path = require('path');
77

8-
// const { parseMarkdown } = require('../tools/challenge-md-parser');
8+
// const { parseMarkdown } = require('../tools/challenge-parser');
99
// const { parseTranslation } = require('./getChallenges');
1010

1111
// /* eslint-disable max-len */
1212
// const {
1313
// SIMPLE_TRANSLATION
14-
// } = require('../tools/challenge-md-parser/translation-parser/__mocks__/mock-comments');
14+
// } = require('../tools/challenge-parser/translation-parser/__mocks__/mock-comments');
1515
// /* eslint-enable max-len */
1616

1717
describe('translation parser', () => {

curriculum/getChallenges.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ const path = require('path');
22
const { findIndex, reduce, toString } = require('lodash');
33
const readDirP = require('readdirp');
44
const yaml = require('js-yaml');
5-
const { parseMD } = require('../tools/challenge-md-parser/mdx');
5+
const { parseMD } = require('../tools/challenge-parser/mdx');
66
const fs = require('fs');
77
const util = require('util');
88
/* eslint-disable max-len */
99
const {
1010
translateCommentsInChallenge
11-
} = require('../tools/challenge-md-parser/translation-parser/translation-parser');
11+
} = require('../tools/challenge-parser/translation-parser/translation-parser');
1212
/* eslint-enable max-len*/
1313

1414
const { isAuditedCert } = require('../utils/is-audited');

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"client",
55
"client/plugins/*",
66
"curriculum",
7-
"tools/challenge-md-parser",
8-
"tools/challenge-md-parser/mdx",
7+
"tools/challenge-parser",
8+
"tools/challenge-parser/mdx",
99
"tools/scripts/seed",
1010
"tools/scripts/build",
1111
"tools/formatter",

tools/challenge-md-parser/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/challenge-md-parser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@freecodecamp/challenge-md-parser",
2+
"name": "@freecodecamp/challenge-parser",
33
"version": "2.0.0",
44
"description": "",
55
"main": "index.js",

tools/formatter/add-seed-and-solution/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const fs = require('fs');
33
const path = require('path');
44
const { getText } = require('./get-challenge-text');
55
const { challengeToString } = require('./create-challenge-string');
6-
const { parseMD } = require('../../challenge-md-parser/mdx');
6+
const { parseMD } = require('../../challenge-parser/mdx');
77

88
const challengeDir = '../../../curriculum/challenges/';
99
const enChalDir = path.resolve(__dirname, challengeDir, 'english');

tools/formatter/add-seed-and-solution/plugins/question-to-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const { root } = require('mdast-builder');
2-
const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings');
2+
const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings');
33
const {
44
splitOnThematicBreak
5-
} = require('../../../challenge-md-parser/mdx/plugins/utils/split-on-thematic-break');
5+
} = require('../../../challenge-parser/mdx/plugins/utils/split-on-thematic-break');
66

77
const { stringifyMd } = require('./text-to-data');
88

tools/formatter/add-seed-and-solution/plugins/tests-to-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const chunk = require('lodash/chunk');
2-
const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings');
2+
const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings');
33
const { stringifyMd } = require('./text-to-data');
44

55
function plugin() {

tools/formatter/add-seed-and-solution/plugins/text-to-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const stringify = require('remark-stringify');
22
const { root } = require('mdast-builder');
33
const unified = require('unified');
4-
const getAllBetween = require('../../../challenge-md-parser/mdx/plugins/utils/between-headings');
4+
const getAllBetween = require('../../../challenge-parser/mdx/plugins/utils/between-headings');
55

66
const stringifyMd = nodes =>
77
unified()

tools/scripts/ci/ensure-challenge-formatting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const readdirp = require('readdirp-walk');
22
const { has, isEmpty, isNumber } = require('lodash');
33
const ora = require('ora');
44

5-
const { parseMarkdown } = require('../../challenge-md-parser');
5+
const { parseMarkdown } = require('../../challenge-parser');
66
const { challengeRoot, checkFrontmatter } = require('./md-testing-utils');
77

88
const scrimbaUrlRE = /^https:\/\/scrimba\.com\//;

0 commit comments

Comments
 (0)