careerscertificationcommunitycurriculumd3educationfreecodecamphacktoberfestjavascriptlearn-to-codemathnodejsnonprofitsprogrammingreactteachers
4b1c5ebc7a
The original test was too rigid, and many users were forced to use one solution, usually map, to complete the challenge. The test is changed here to allow for multiple solutions to the problem, including the use of either single or double quotes when naming a class. BREAKING CHANGE: None |
||
---|---|---|
.github | ||
challenges | ||
docs | ||
formattingConversion | ||
math-challenges | ||
requiresTests | ||
schema | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.npmignore | ||
.prettierrc | ||
.travis.yml | ||
CHANGELOG.md | ||
LICENSE.md | ||
README.md | ||
addAssertsToTapTest.js | ||
challengeTitles.js | ||
commitizen.config.js | ||
commitlint.config.js | ||
create-challenge-bundle.js | ||
getChallenges.js | ||
gulpfile.js | ||
index.js | ||
mongoIds.js | ||
package-entry.js | ||
package-lock.json | ||
package.json | ||
repack.js | ||
test-challenges.js | ||
unpack.js | ||
unpacked.css | ||
unpacked.js | ||
unpackedChallenge.js | ||
utils.js |
README.md
freeCodeCamp Curriculum
This package contains the "seed" files used in the freeCodeCamp Curriculum.
Installation
npm i @freecodecamp/curriculum
# or
yarn add @freecodecamp/curriculum
Usage
import { getChallenges } from '@freecodecamp/curriculum';
// fetch an array of blocks
// i.e. basic CSS, functional programming, etc.
getChallenges()
block
Structure
{
"name": "ES6",
"order": 2,
"time": "5 hours",
"helpRoom": "Help",
"challenges": [/*<challenge>*/],
"fileName": "02-javascript-algorithms-and-data-structures/es6.json",
"superBlock": "javascript-algorithms-and-data-structures",
"superOrder": 2
}
challenge
Structure
{
"id": "ObjectId()",
"title": "Declare a Read-Only Variable with the const Keyword",
"description": [
"A Description of the challenge and what is required to pass"
],
"tests": [
{
"text": "should return \"foo\"",
"testString": "a stringified function using Chai asserts"
}
],
"challengeType": 1,
"translations": {},
"files": {
"indexjs": {
"key": "indexjs",
"ext": "js",
"name": "index",
"contents": [
"Initial editor seed"
],
"head": [
"A place for test set up",
"Can be thought of as mocha's beforeEach()"
],
"tail": [
"A place for test tear down",
"Can be thought of as mocha's afterEach()"
]
}
}
},