mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore: rename project type from bonfire to jsProject (#46823)
* change bonfire in index.js * change bonfire in build.js * change bonfire in challenge-types.js * change bonfire in test-challenges.js * add jsProject to constants.js
This commit is contained in:
@@ -4,7 +4,7 @@ const backend = 2;
|
||||
const zipline = 3;
|
||||
const frontEndProject = 3;
|
||||
const backEndProject = 4;
|
||||
const bonfire = 5;
|
||||
const jsProject = 5;
|
||||
const modern = 6;
|
||||
const step = 7;
|
||||
const quiz = 8;
|
||||
@@ -30,7 +30,7 @@ exports.challengeTypes = {
|
||||
frontEndProject,
|
||||
backEndProject,
|
||||
pythonProject,
|
||||
bonfire,
|
||||
jsProject,
|
||||
modern,
|
||||
step,
|
||||
quiz,
|
||||
@@ -57,13 +57,13 @@ exports.isProject = challengeType => {
|
||||
exports.pathsMap = {
|
||||
[html]: 'html',
|
||||
[js]: 'js',
|
||||
[bonfire]: 'js'
|
||||
[jsProject]: 'js'
|
||||
};
|
||||
// determine the component to view for each challenge
|
||||
exports.viewTypes = {
|
||||
[html]: 'classic',
|
||||
[js]: 'classic',
|
||||
[bonfire]: 'classic',
|
||||
[jsProject]: 'classic',
|
||||
[frontEndProject]: 'frontend',
|
||||
[backEndProject]: 'backend',
|
||||
[pythonProject]: 'frontend',
|
||||
@@ -81,7 +81,7 @@ exports.viewTypes = {
|
||||
exports.submitTypes = {
|
||||
[html]: 'tests',
|
||||
[js]: 'tests',
|
||||
[bonfire]: 'tests',
|
||||
[jsProject]: 'tests',
|
||||
// requires just a single url
|
||||
// like codepen.com/my-project
|
||||
[frontEndProject]: 'project.frontEnd',
|
||||
|
||||
Reference in New Issue
Block a user