Merge pull request #15 from Bouncey/feat/backendView

Add backend view
This commit is contained in:
Stuart Taylor
2018-04-16 12:04:25 +01:00
committed by Mrugesh Mohapatra
parent 4b7dc90763
commit 5f0068e9c8
23 changed files with 1311 additions and 541 deletions

View File

@@ -2,7 +2,7 @@ const crypto = require('crypto');
function createChallengeNodes(challenge, reporter) {
if (typeof challenge.description[0] !== 'string') {
reporter.panic(`
reporter.warn(`
${challenge.title} has a description that will break things!

View File

@@ -45,6 +45,7 @@ that delivers challenge files to the plugin
const { source } = pluginOptions;
const createAndProcessNodes = () =>
source()
.filter(node => node.challengeType !== 7)
.map(nodes => nodes.map(node => createChallengeNodes(node, reporter)))
.map(nodes => nodes.map(node => createNode(node)))
.subscribe();