Skip to content

Commit

Permalink
Fixed inconsistencies in merging
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyash-x committed May 11, 2023
1 parent 9fb6488 commit 2f9aea7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion exp_build/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getAssessmentPath(src, units) {
let paths = getAssessmentPath(nextSrc, unit.units);
assessmentPath.push(...paths);
}
if (unit["content-type"] === "assesment" || unit["content-type"] === "assessment") {
if(unit["content-type"] === ContentTypes.ASSESMENT || unit["content-type"] === ContentTypes.ASSESSMENT){
const quiz = path.resolve(src, unit.source);
assessmentPath.push(quiz);
}
Expand Down
4 changes: 0 additions & 4 deletions logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ module.exports.addInfo = function () {
log.add(new winston.transports.Console({level: "info",format: combine(colorize({all: true}),timestamp(),vlabsDefaultFormat), handleExceptions: true}))
}

module.exports.addInfo = function () {
log.add(new winston.transports.Console({level: "info",format: combine(colorize({all: true}),timestamp(),myFormat), handleExceptions: true}))
}

module.exports.debug = module.exports.log = function () {
log.debug.apply(log, formatLogArguments(arguments))
}
Expand Down
15 changes: 8 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
const fs = require("fs");
const shell = require("shelljs");
const { BuildEnvs, validBuildEnv } = require("./enums.js");
const { BuildEnvs, validBuildEnv, ContentTypes } = require("./enums.js");
const { run } = require("./exp_build/exp_gen.js");
const minimist = require("minimist");
const Config = require("./config.js");
Expand Down Expand Up @@ -290,12 +290,6 @@ function main() {
}
}

module.exports = {
build,
validate,
clean,
deployLocal
}

// call main function if this file is run directly
if (require.main === module) {
Expand All @@ -318,3 +312,10 @@ if (require.main === module) {
// node main.js clean ../
// Deploy
// node main.js deploy ../

module.exports = {
build,
validate,
clean,
deployLocal
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f9aea7

Please sign in to comment.