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:
Ilenia
2022-07-11 14:28:29 +02:00
committed by GitHub
parent 237f11be8b
commit f61b227665
5 changed files with 12 additions and 10 deletions
+5 -5
View File
@@ -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',