chore: rename challenge-md-parser

This commit is contained in:
Oliver Eyton-Williams
2021-02-01 17:46:27 +01:00
committed by Mrugesh Mohapatra
parent f4efb13a21
commit e3511f2930
11 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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', () => {

View File

@ -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');

View File

@ -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",

View File

@ -1,5 +1,5 @@
{
"name": "@freecodecamp/challenge-md-parser",
"name": "@freecodecamp/challenge-parser",
"version": "2.0.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "@freecodecamp/challenge-md-parser",
"name": "@freecodecamp/challenge-parser",
"version": "2.0.0",
"description": "",
"main": "index.js",

View File

@ -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');

View File

@ -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');

View File

@ -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() {

View File

@ -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()

View File

@ -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\//;